\r
postinit = false;\r
\r
- calledgrabbers = 0;\r
+ calledhooks = 0;\r
\r
teams = Sort_Spawn();\r
players = Sort_Spawn();\r
\r
if not(isdemo())\r
{\r
- if not(calledgrabbers & GRABBER_START)\r
+ if not(calledhooks & HOOK_START)\r
+ {\r
localcmd("\n_cl_hook_gamestart nop;");\r
- if not(calledgrabbers & GRABBER_END)\r
+ if(g_campaign) // this is a server cvar used in the client code, but g_campaign is always local, so it should be safe\r
+ localcmd("\n_cl_hook_campaign_gamestart nop;");\r
+ }\r
+ if not(calledhooks & HOOK_END)\r
+ {\r
localcmd("\ncl_hook_gameend;");\r
+ if(g_campaign)\r
+ localcmd("\ncl_hook_campaign_gameend;");\r
+ }\r
}\r
}\r
\r
if not(isdemo())\r
{\r
localcmd("\n_cl_hook_gamestart ", GametypeNameFromType(gametype), ";");\r
- calledgrabbers |= GRABBER_START;\r
+ if(g_campaign)\r
+ localcmd("\n_cl_hook_campaign_gamestart ", GametypeNameFromType(gametype), ";");\r
+ calledhooks |= HOOK_START;\r
}\r
}\r
// CSQC_Parse_StuffCmd : Provides the stuffcmd string in the first parameter that the server provided. To execute standard behavior, simply execute localcmd with the string.\r
strunzone(forcefog);\r
forcefog = strzone(ReadString());\r
\r
+ g_campaign = ReadCoord();\r
+\r
armorblockpercent = ReadByte() / 255.0;\r
\r
g_weaponswitchdelay = ReadByte() / 255.0;\r
\r
+ g_vore = ReadCoord();\r
g_balance_vore_swallow_limit = ReadCoord();\r
- g_vore_showpreyhealth = ReadCoord();\r
\r
if(!postinit)\r
PostInit();\r
if not(playerslots[e])\r
return;\r
playerslots[e].plhealth = ph;\r
- playerslots[e].pleater = pn;\r
+ playerslots[e].plpredator = pn;\r
}\r
\r
void Net_VoteDialog(float highlight) {\r