PRVM_DECLARE_clientfunction(CSQC_Parse_Print)
PRVM_DECLARE_clientfunction(CSQC_Parse_StuffCmd)
PRVM_DECLARE_clientfunction(CSQC_Parse_TempEntity)
+PRVM_DECLARE_clientfunction(CSQC_RendererRestarted)
PRVM_DECLARE_clientfunction(CSQC_Shutdown)
PRVM_DECLARE_clientfunction(CSQC_UpdateView)
PRVM_DECLARE_clientfunction(GameCommand)
PRVM_DECLARE_function(CSQC_Parse_Print)
PRVM_DECLARE_function(CSQC_Parse_StuffCmd)
PRVM_DECLARE_function(CSQC_Parse_TempEntity)
+PRVM_DECLARE_function(CSQC_RendererRestarted)
PRVM_DECLARE_function(CSQC_Shutdown)
PRVM_DECLARE_function(CSQC_UpdateView)
PRVM_DECLARE_function(ClientConnect)
PRVM_DECLARE_function(PlayerPreThink)
PRVM_DECLARE_function(PutClientInServer)
PRVM_DECLARE_function(RestoreGame)
+PRVM_DECLARE_function(LoadTriggered)
+PRVM_DECLARE_function(RestartTriggered)
PRVM_DECLARE_function(SV_ChangeTeam)
PRVM_DECLARE_function(SV_OnEntityNoSpawnFunction)
PRVM_DECLARE_function(SV_OnEntityPostSpawnFunction)
PRVM_DECLARE_serverfunction(PlayerPreThink)
PRVM_DECLARE_serverfunction(PutClientInServer)
PRVM_DECLARE_serverfunction(RestoreGame)
+PRVM_DECLARE_serverfunction(LoadTriggered)
+PRVM_DECLARE_serverfunction(RestartTriggered)
PRVM_DECLARE_serverfunction(SV_ChangeTeam)
PRVM_DECLARE_serverfunction(SV_OnEntityNoSpawnFunction)
PRVM_DECLARE_serverfunction(SV_OnEntityPostSpawnFunction)
Con_Print("Only the server may restart\n");
return;
}
+
+ prvm_prog_t *prog = SVVM_prog;
+ if (PRVM_serverfunction(RestartTriggered))
+ {
+ Con_DPrint("Calling RestartTriggered\n");
+ PRVM_serverglobalfloat(time) = sv.time;
+ prog->ExecuteProgram(prog, PRVM_serverfunction(RestartTriggered), "QC function RestartTriggered is missing");
+ }
if(host.hook.ToggleMenu)
host.hook.ToggleMenu();
Con_Print("load <savename> : load a game\n");
return;
}
+
+ if (PRVM_serverfunction(LoadTriggered))
+ {
+ Con_DPrint("Calling LoadTriggered\n");
+ PRVM_serverglobalfloat(time) = sv.time;
+ PRVM_serverglobaledict(self) = PRVM_EDICT_TO_PROG(host_client->edict);
+ prog->ExecuteProgram(prog, PRVM_serverfunction(LoadTriggered), "QC function LoadTriggered is missing");
+ }
strlcpy (filename, Cmd_Argv(cmd, 1), sizeof(filename));
FS_DefaultExtension (filename, ".sav", sizeof (filename));
Sys_Error("Unable to restore to last working video mode");
}
VID_OpenSystems();
+
+ prvm_prog_t *prog = CLVM_prog;
+ if (PRVM_clientfunction(CSQC_RendererRestarted))
+ {
+ Con_DPrint("Calling CSQC_RendererRestarted\n");
+ prog->ExecuteProgram(prog, PRVM_clientfunction(CSQC_RendererRestarted), "QC function CSQC_RendererRestarted is missing");
+ }
}
const char *vidfallbacks[][2] =