X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=pr_edict.c;h=1ef5b19a0cbcc93b8bdba1351373d26e681a8313;hp=0488c176a985883d2bf0ed856974e2e8692c1ee7;hb=e4b3858e7aca0ead91be1d8f675db084d025abad;hpb=b062ccd558c25bab3c796f732c7798684537679b diff --git a/pr_edict.c b/pr_edict.c index 0488c176..1ef5b19a 100644 --- a/pr_edict.c +++ b/pr_edict.c @@ -39,6 +39,7 @@ int type_size[8] = {1,sizeof(string_t)/4,1,3,1,1,sizeof(func_t)/4,sizeof(void * ddef_t *ED_FieldAtOfs (int ofs); qboolean ED_ParseEpair (void *base, ddef_t *key, char *s); +cvar_t pr_checkextension = {"pr_checkextension", "1"}; cvar_t nomonsters = {"nomonsters", "0"}; cvar_t gamecfg = {"gamecfg", "0"}; cvar_t scratch1 = {"scratch1", "0"}; @@ -111,6 +112,7 @@ int eval_colormod; int eval_ping; int eval_movement; int eval_pmodel; +int eval_punchvector; dfunction_t *SV_PlayerPhysicsQC; dfunction_t *EndFrameQC; @@ -158,6 +160,7 @@ void FindEdictFieldOffsets() eval_ping = FindFieldOffset("ping"); eval_movement = FindFieldOffset("movement"); eval_pmodel = FindFieldOffset("pmodel"); + eval_punchvector = FindFieldOffset("punchvector"); // LordHavoc: allowing QuakeC to override the player movement code SV_PlayerPhysicsQC = ED_FindFunction ("SV_PlayerPhysics"); @@ -1288,6 +1291,7 @@ void PR_Init (void) Cmd_AddCommand ("edicts", ED_PrintEdicts); Cmd_AddCommand ("edictcount", ED_Count); Cmd_AddCommand ("profile", PR_Profile_f); + Cvar_RegisterVariable (&pr_checkextension); Cvar_RegisterVariable (&nomonsters); Cvar_RegisterVariable (&gamecfg); Cvar_RegisterVariable (&scratch1);