PRVM_DECLARE_function(PutClientInServer)
PRVM_DECLARE_function(RestoreGame)
PRVM_DECLARE_function(LoadTriggered)
+PRVM_DECLARE_function(SaveTriggered)
PRVM_DECLARE_function(RestartTriggered)
PRVM_DECLARE_function(SV_ChangeTeam)
PRVM_DECLARE_function(SV_OnEntityNoSpawnFunction)
PRVM_DECLARE_serverfunction(PutClientInServer)
PRVM_DECLARE_serverfunction(RestoreGame)
PRVM_DECLARE_serverfunction(LoadTriggered)
+PRVM_DECLARE_serverfunction(SaveTriggered)
PRVM_DECLARE_serverfunction(RestartTriggered)
PRVM_DECLARE_serverfunction(SV_ChangeTeam)
PRVM_DECLARE_serverfunction(SV_OnEntityNoSpawnFunction)
Con_Print("ERROR: couldn't open.\n");
return;
}
+
+ if (PRVM_serverfunction(SaveTriggered))
+ {
+ Con_DPrint("Calling SaveTriggered\n");
+ PRVM_serverglobalfloat(time) = sv.time;
+ PRVM_serverglobaledict(self) = PRVM_EDICT_TO_PROG(host_client->edict);
+ prog->ExecuteProgram(prog, PRVM_serverfunction(SaveTriggered), "QC function SaveTriggered is missing");
+ }
FS_Printf(f, "%i\n", SAVEGAME_VERSION);