• Home
  • Raw
  • Download

Lines Matching refs:sv

74 		if (!sv.active)  in Host_Status_f()
90 print ("map: %s\n", sv.name); in Host_Status_f()
294 if (!sv.active) in Host_Map_f()
330 if (!sv.active || cls.demoplayback) in Host_Changelevel_f()
355 if (!sv.active || cls.demoplayback) in Host_Changelevel_f()
380 if (cls.demoplayback || !sv.active) in Host_Restart_f()
385 strcpy (mapname, sv.name); // must copy out, because it gets cleared in Host_Restart_f()
388 strcpy(startspot, sv.startspot); in Host_Restart_f()
482 if (!sv.active) in Host_Savegame_f()
538 fprintf (f, "%s\n", sv.name); in Host_Savegame_f()
539 fprintf (f, "%f\n",sv.time); in Host_Savegame_f()
545 if (sv.lightstyles[i]) in Host_Savegame_f()
546 fprintf (f, "%s\n", sv.lightstyles[i]); in Host_Savegame_f()
553 for (i=0 ; i<sv.num_edicts ; i++) in Host_Savegame_f()
638 if (!sv.active) in Host_Loadgame_f()
643 sv.paused = true; // pause until all clients connect in Host_Loadgame_f()
644 sv.loadgame = true; in Host_Loadgame_f()
651 sv.lightstyles[i] = (char*) Hunk_Alloc (strlen(str)+1); in Host_Loadgame_f()
652 strcpy (sv.lightstyles[i], str); in Host_Loadgame_f()
701 sv.num_edicts = entnum; in Host_Loadgame_f()
702 sv.time = time; in Host_Loadgame_f()
725 sprintf (name, "%s/%s.gip", com_gamedir, sv.name); in SaveGamestate()
741 fprintf (f, "%s\n", sv.name); in SaveGamestate()
742 fprintf (f, "%f\n", sv.time); in SaveGamestate()
748 if (sv.lightstyles[i]) in SaveGamestate()
749 fprintf (f, "%s\n", sv.lightstyles[i]); in SaveGamestate()
755 for (i=svs.maxclients+1 ; i<sv.num_edicts ; i++) in SaveGamestate()
809 if (!sv.active) in LoadGamestate()
819 sv.lightstyles[i] = Hunk_Alloc (strlen(str)+1); in LoadGamestate()
820 strcpy (sv.lightstyles[i], str); in LoadGamestate()
862 sv.time = time; in LoadGamestate()
883 if (!sv.active || cls.demoplayback) in Host_Changelevel2_f()
950 MSG_WriteByte (&sv.reliable_datagram, svc_updatename); in Host_Name_f()
951 MSG_WriteByte (&sv.reliable_datagram, host_client - svs.clients); in Host_Name_f()
952 MSG_WriteString (&sv.reliable_datagram, host_client->name); in Host_Name_f()
1189 MSG_WriteByte (&sv.reliable_datagram, svc_updatecolors); in Host_Color_f()
1190 MSG_WriteByte (&sv.reliable_datagram, host_client - svs.clients); in Host_Color_f()
1191 MSG_WriteByte (&sv.reliable_datagram, host_client->colors); in Host_Color_f()
1213 pr_global_struct->time = sv.time; in Host_Kill_f()
1236 sv.paused ^= 1; in Host_Pause_f()
1238 if (sv.paused) in Host_Pause_f()
1248 MSG_WriteByte (&sv.reliable_datagram, svc_setpause); in Host_Pause_f()
1249 MSG_WriteByte (&sv.reliable_datagram, sv.paused); in Host_Pause_f()
1275 SZ_Write (&host_client->message, sv.signon.data, sv.signon.cursize); in Host_PreSpawn_f()
1305 if (sv.loadgame) in Host_Spawn_f()
1308 sv.paused = false; in Host_Spawn_f()
1327 pr_global_struct->time = sv.time; in Host_Spawn_f()
1331 if ((Sys_FloatTime() - host_client->netconnection->connecttime) <= sv.time) in Host_Spawn_f()
1343 MSG_WriteFloat (&host_client->message, sv.time); in Host_Spawn_f()
1363 MSG_WriteString (&host_client->message, sv.lightstyles[i]); in Host_Spawn_f()
1441 if (!sv.active) in Host_Kick_f()
1682 for (i=0 ; i<sv.num_edicts ; i++) in FindViewthing()
1819 if (!sv.active) in Host_Startdemos_f()
1835 if (!sv.active && cls.demonum != -1 && !cls.demoplayback) in Host_Startdemos_f()