|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "sv_survival.qh"Go to the source code of this file.
Macros | |
| #define | STATUS_SEND_HUNTERS 2 |
| #define | STATUS_SEND_RESET 1 |
| #define STATUS_SEND_HUNTERS 2 |
Definition at line 14 of file sv_survival.qc.
Referenced by Surv_CheckWinner(), and SurvivalStatuses_SendEntity().
| #define STATUS_SEND_RESET 1 |
Definition at line 13 of file sv_survival.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and Surv_RoundStart().
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| AddPlayerScore | ) |
Definition at line 448 of file sv_survival.qc.
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| Bot_FixCount | , | ||
| CBC_ORDER_EXCLUSIVE | ) |
Definition at line 461 of file sv_survival.qc.
References CBC_ORDER_EXCLUSIVE, FOREACH_CLIENT, INGAME_JOINED, IS_PLAYER, IS_REAL_CLIENT, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| BotShouldAttack | ) |
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| CalculateRespawnTime | ) |
Definition at line 455 of file sv_survival.qc.
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| ClientCommand_Spectate | ) |
Definition at line 471 of file sv_survival.qc.
References autocvar_sv_spectate, entity(), INGAME, IS_OBSERVER, IS_SPEC, M_ARGV, MUT_SPECCMD_CONTINUE, MUT_SPECCMD_FORCE, and Send_Notification().
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| ClientDisconnect | ) |
Definition at line 400 of file sv_survival.qc.
References ClientDisconnect, entity(), IS_DEAD, IS_PLAYER, M_ARGV, and surv_LastPlayerForTeam_Notify().
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| ClientObituary | ) |
Definition at line 258 of file sv_survival.qc.
References autocvar_g_survival_punish_teamkill, entity(), frag_target, GiveFrags(), IS_PLAYER, M_ARGV, and SURV_STATUS_HUNTER.
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| ForbidSpawn | ) |
Definition at line 288 of file sv_survival.qc.
References allowed_to_spawn, entity(), INGAME, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| GiveFragsForKill | , | ||
| CBC_ORDER_FIRST | ) |
Definition at line 439 of file sv_survival.qc.
References CBC_ORDER_FIRST, entity(), M_ARGV, round_handler_IsActive, round_handler_IsRoundStarted, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| MakePlayerObserver | ) |
Definition at line 409 of file sv_survival.qc.
References eliminatedPlayers, entity(), FRAGS_PLAYER_OUT_OF_GAME, INGAME, INGAME_STATUS_CLEAR, IS_DEAD, IS_PLAYER, M_ARGV, surv_LastPlayerForTeam_Notify(), and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| MatchEnd_BeforeScores | ) |
Definition at line 341 of file sv_survival.qc.
References MatchEnd_RestoreSpectatorStatus().
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| PlayerDies | ) |
Definition at line 372 of file sv_survival.qc.
References allowed_to_spawn, autocvar_g_survival_punish_teamkill, bot_clearqueue(), Damage(), DMG_NOWEP, eliminatedPlayers, entity(), frag_target, IS_BOT_CLIENT, IS_PLAYER, ITEM_DAMAGE_NEEDKILL, M_ARGV, RESPAWN_FORCE, RESPAWN_SILENT, round_handler_IsActive, round_handler_IsRoundStarted, surv_LastPlayerForTeam_Notify(), time, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| PlayerSpawn | ) |
Definition at line 277 of file sv_survival.qc.
References eliminatedPlayers, entity(), INGAME_STATUS_JOINED, INGAME_STATUS_SET, M_ARGV, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| PutClientInServer | ) |
Definition at line 300 of file sv_survival.qc.
References allowed_to_spawn, CS(), eliminatedPlayers, entity(), INGAME, INGAME_STATUS_JOINING, INGAME_STATUS_SET, IS_PLAYER, jointime, M_ARGV, PutClientInServer, Send_Notification(), time, TRANSMUTE, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| reset_map_global | ) |
Definition at line 335 of file sv_survival.qc.
References allowed_to_spawn.
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| reset_map_players | ) |
Definition at line 318 of file sv_survival.qc.
References bot_relinkplayerlist(), CS(), FOREACH_CLIENT, INGAME, INGAME_STATUS_JOINED, INGAME_STATUS_SET, IS_BOT_CLIENT, PutClientInServer, STATUS_SEND_RESET, survivalStatuses, and TRANSMUTE.
| MUTATOR_HOOKFUNCTION | ( | surv | , |
| Scores_CountFragsRemaining | ) |
Definition at line 433 of file sv_survival.qc.
| bool Surv_CheckPlayers | ( | ) |
Definition at line 197 of file sv_survival.qc.
References allowed_to_spawn, FOREACH_CLIENT, IS_DEAD, IS_PLAYER, and missing_teams_mask.
Referenced by surv_Initialize().
| float Surv_CheckWinner | ( | ) |
Definition at line 78 of file sv_survival.qc.
References allowed_to_spawn, autocvar_g_survival_round_enddelay, autocvar_g_survival_round_timelimit, autocvar_g_survival_warmup, FOREACH_CLIENT, game_stopped, IS_DEAD, IS_PLAYER, min(), nades_RemovePlayer(), NULL, round_handler_GetEndDelayTime, round_handler_GetEndTime, round_handler_Init(), round_handler_ResetEndDelayTime, round_handler_SetEndDelayTime, Send_Notification(), STATUS_SEND_HUNTERS, SURV_STATUS_HUNTER, SURV_STATUS_PREY, Surv_UpdateScores(), survivalStatuses, and time.
Referenced by surv_Initialize().
| void surv_Initialize | ( | ) |
Definition at line 239 of file sv_survival.qc.
References allowed_to_spawn, autocvar_g_survival_round_timelimit, autocvar_g_survival_warmup, EliminatedPlayers_Init(), GameRules_scoring, round_handler_Init(), round_handler_Spawn(), SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_SECONDARY, Surv_CheckPlayers(), Surv_CheckWinner(), surv_isEliminated(), Surv_RoundStart(), and SurvivalStatuses_Init().
Referenced by REGISTER_MUTATOR().
Definition at line 230 of file sv_survival.qc.
References entity(), FRAGS_PLAYER_OUT_OF_GAME, INGAME_JOINED, INGAME_JOINING, and IS_DEAD.
Referenced by surv_Initialize().
Definition at line 347 of file sv_survival.qc.
References entity(), FOREACH_CLIENT, IS_DEAD, IS_PLAYER, NULL, and survival_status.
Referenced by surv_LastPlayerForTeam_Notify().
Definition at line 362 of file sv_survival.qc.
References entity(), round_handler_IsActive, round_handler_IsRoundStarted, Send_Notification(), surv_LastPlayerForTeam(), and warmup_stage.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| void Surv_RoundStart | ( | ) |
Definition at line 162 of file sv_survival.qc.
References allowed_to_spawn, autocvar_g_survival_hunter_count, boolean, bound(), floor(), FOREACH_CLIENT, FOREACH_CLIENT_RANDOM, IS_DEAD, IS_PLAYER, Send_Notification(), STATUS_SEND_RESET, SURV_STATUS_HUNTER, SURV_STATUS_PREY, survivalStatuses, and warmup_stage.
Referenced by surv_Initialize().
Definition at line 56 of file sv_survival.qc.
References autocvar_g_survival_reward_survival, FOREACH_CLIENT, GameRules_scoring_add, IS_DEAD, IS_PLAYER, SURV_STATUS_HUNTER, and SURV_STATUS_PREY.
Referenced by Surv_CheckWinner().
| void SurvivalStatuses_Init | ( | ) |
Definition at line 46 of file sv_survival.qc.
References backtrace, Net_LinkEntity(), new_pure, survivalStatuses, and SurvivalStatuses_SendEntity().
Referenced by surv_Initialize().
Definition at line 16 of file sv_survival.qc.
References BIT, dest, entity(), INGAME, maxclients, MSG_ENTITY, nextent(), serialize, STATUS_SEND_HUNTERS, SURV_STATUS_HUNTER, and WriteHeader.
Referenced by SurvivalStatuses_Init().
| float autocvar_g_survival_hunter_count = 0.25 |
Definition at line 3 of file sv_survival.qc.
Referenced by Surv_RoundStart().
Definition at line 6 of file sv_survival.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 7 of file sv_survival.qc.
Referenced by Surv_UpdateScores().
| float autocvar_g_survival_round_enddelay |
Definition at line 8 of file sv_survival.qc.
Referenced by Surv_CheckWinner().
| float autocvar_g_survival_round_timelimit = 120 |
Definition at line 4 of file sv_survival.qc.
Referenced by Surv_CheckWinner(), and surv_Initialize().
| float autocvar_g_survival_warmup = 10 |
Definition at line 5 of file sv_survival.qc.
Referenced by Surv_CheckWinner(), and surv_Initialize().
| entity survivalStatuses |
Definition at line 10 of file sv_survival.qc.
Referenced by MUTATOR_HOOKFUNCTION(), Surv_CheckWinner(), Surv_RoundStart(), and SurvivalStatuses_Init().