GAME_ROGUE,
GAME_NEHAHRA,
GAME_NEXUIZ,
+ GAME_XONOTIC,
GAME_TRANSFUSION,
GAME_GOODVSBAD2,
GAME_TEU,
GAME_BLOODOMNICIDE,
GAME_STEELSTORM, // added by motorsep
GAME_STRAPBOMB, // added by motorsep for Urre
- GAME_XONOTIC,
GAME_COUNT
}
gamemode_t;
if ((val = PRVM_GLOBALFIELDVALUE(prog->globaloffsets.view_angles)))
VectorCopy(cl.viewangles, val->vector);
+ if ((val = PRVM_GLOBALFIELDVALUE(prog->globaloffsets.view_punchangle)))
+ VectorCopy(cl.punchangle, val->vector);
+ if ((val = PRVM_GLOBALFIELDVALUE(prog->globaloffsets.view_punchvector)))
+ VectorCopy(cl.punchvector, val->vector);
prog->globals.client->maxclients = cl.maxclients;
CSQC_END
}
// Additional OPTIONAL Fields and Globals
float intermission;
+vector view_angles; // same as input_angles
+vector view_punchangle;
+vector view_punchvector;
+
/*
==============================================================================
int v_right; // ssqc / csqc
int v_up; // ssqc / csqc
int view_angles; // csqc
+ int view_punchangle; // csqc
+ int view_punchvector; // csqc
int trace_allsolid; // ssqc / csqc
int trace_startsolid; // ssqc / csqc
int trace_fraction; // ssqc / csqc
prog->globaloffsets.v_right = PRVM_ED_FindGlobalOffset("v_right");
prog->globaloffsets.v_up = PRVM_ED_FindGlobalOffset("v_up");
prog->globaloffsets.view_angles = PRVM_ED_FindGlobalOffset("view_angles");
+ prog->globaloffsets.view_punchangle = PRVM_ED_FindGlobalOffset("view_punchangle");
+ prog->globaloffsets.view_punchvector = PRVM_ED_FindGlobalOffset("view_punchvector");
prog->globaloffsets.worldstatus = PRVM_ED_FindGlobalOffset("worldstatus");
prog->globaloffsets.particles_alphamin = PRVM_ED_FindGlobalOffset("particles_alphamin");
prog->globaloffsets.particles_alphamax = PRVM_ED_FindGlobalOffset("particles_alphamax");