mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 08:20:40 +00:00
new opcode: state.f. same as state, but takes a 3rd float operand to
specify the step for calculating nextthink. accessed using [frame, think, step] (state is [frame, think])
This commit is contained in:
parent
1fc517f7db
commit
c3f41e3e69
9 changed files with 94 additions and 23 deletions
|
@ -733,6 +733,13 @@ PR_ExecuteProgram (progs_t * pr, func_t fnum)
|
|||
ed->v[pr->fields.frame].float_var = OPA.float_var;
|
||||
ed->v[pr->fields.think].func_var = OPB.func_var;
|
||||
break;
|
||||
case OP_STATE_F:
|
||||
ed = PROG_TO_EDICT (pr, *pr->globals.self);
|
||||
ed->v[pr->fields.nextthink].float_var = *pr->globals.time +
|
||||
OPC.float_var;
|
||||
ed->v[pr->fields.frame].float_var = OPA.float_var;
|
||||
ed->v[pr->fields.think].func_var = OPB.func_var;
|
||||
break;
|
||||
case OP_ADD_I:
|
||||
OPC.integer_var = OPA.integer_var + OPB.integer_var;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue