Xonotic
|
#include "sv_invasion.qh"
#include <common/mapobjects/triggers.qh>
#include <common/monsters/sv_spawn.qh>
#include <common/monsters/sv_spawner.qh>
#include <common/monsters/sv_monsters.qh>
#include <common/mutators/mutator/status_effects/_mod.qh>
#include <server/bot/api.qh>
#include <server/world.qh>
#include <server/teamplay.qh>
Go to the source code of this file.
void ClearWinners | ( | ) |
Definition at line 1422 of file world.qc.
Referenced by spawnfunc(), and WinningCondition_Invasion().
bool Invasion_CheckPlayers | ( | ) |
Definition at line 382 of file sv_invasion.qc.
Referenced by invasion_DelayedInit().
bool Invasion_CheckWinner | ( | ) |
Definition at line 266 of file sv_invasion.qc.
References APP_TEAM_NUM, autocvar_g_invasion_round_timelimit, autocvar_g_invasion_spawn_delay, autocvar_g_invasion_warmup, entity(), FOREACH_CLIENT, g_monsters, GameRules_scoring_add, GetResource(), IL_CLEAR, IL_EACH, inv_lastcheck, inv_maxcurrent, inv_maxspawned, inv_numkilled, inv_numspawned, invasion_SpawnMonsters(), IS_PLAYER, MON_FLAG_SUPERMONSTER, Monster_Remove(), NULL, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, RES_HEALTH, round_handler_GetEndTime, round_handler_Init(), teamplay, and time.
Referenced by invasion_DelayedInit().
Definition at line 573 of file sv_invasion.qc.
References autocvar_g_invasion_round_timelimit, autocvar_g_invasion_teams, autocvar_g_invasion_type, autocvar_g_invasion_warmup, BITS, bound(), cvar_set(), independent_players, inv_maxrounds, inv_roundcnt, INV_TYPE_HUNT, INV_TYPE_ROUND, INV_TYPE_STAGE, Invasion_CheckPlayers(), Invasion_CheckWinner(), Invasion_RoundStart(), invasion_ScoreRules(), invasion_teams, round_handler_Init(), and round_handler_Spawn().
Referenced by invasion_Initialize().
Definition at line 156 of file sv_invasion.qc.
References best, entity(), g_invasion_waves, IL_EACH, and NULL.
Referenced by invasion_SpawnChosenMonster().
void invasion_Initialize | ( | ) |
Definition at line 601 of file sv_invasion.qc.
References InitializeEntity(), invasion_DelayedInit(), and NULL.
Referenced by REGISTER_MUTATOR().
Definition at line 126 of file sv_invasion.qc.
References autocvar_g_invasion_zombies_only, FOREACH, MON_FLAG_HIDDEN, MON_FLAG_SUPERMONSTER, MONSTER_SIZE_QUAKE, MONSTER_TYPE_FLY, MONSTER_TYPE_PASSIVE, MONSTER_TYPE_SWIM, MONSTER_TYPE_UNDEAD, RandomSelection_AddEnt, RandomSelection_chosen_ent, and RandomSelection_Init().
Referenced by invasion_SpawnMonsters().
entity invasion_PickSpawn | ( | ) |
Definition at line 143 of file sv_invasion.qc.
References autocvar_g_invasion_spawnpoint_spawn_delay, g_invasion_spawns, IL_EACH, RandomSelection_AddEnt, RandomSelection_chosen_ent, RandomSelection_Init(), and time.
Referenced by invasion_SpawnChosenMonster().
void Invasion_RoundStart | ( | ) |
Definition at line 387 of file sv_invasion.qc.
References autocvar_g_invasion_monster_count, DistributeEvenly_Get(), DistributeEvenly_Init(), FOREACH_CLIENT, inv_maxcurrent, inv_maxrounds, inv_maxspawned, inv_monsters_perteam, inv_monsterskill, inv_numkilled, inv_numspawned, inv_roundcnt, invasion_teams, IS_PLAYER, max(), NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, rint(), and teamplay.
Referenced by invasion_DelayedInit().
Definition at line 562 of file sv_invasion.qc.
References GameRules_score_enabled(), GameRules_scoring, SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_SECONDARY, and ST_INV_KILLS.
Referenced by invasion_DelayedInit().
Definition at line 174 of file sv_invasion.qc.
References DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_DONOTENTER, DPCONTENTS_LAVA, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SKY, DPCONTENTS_SLIME, DPCONTENTS_SOLID, entity(), FOREACH_WORD, g_monster_targets, IL_REMOVE(), inv_maxrounds, inv_monsters_perteam, inv_roundcnt, inv_warning_shown, invasion_GetWaveEntity(), invasion_PickSpawn(), invasion_teams, LOG_TRACE, Monster::m_maxs, Monster::m_mins, monster_setupcolors(), MONSTERFLAG_MINIBOSS, MoveToRandomMapLocation(), NULL, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, Q3SURFACEFLAG_SKY, RandomSelection_AddFloat, RandomSelection_chosen_float, RandomSelection_chosen_string, RandomSelection_Init(), spawn(), spawn_point, spawnmonster(), STATUSEFFECT_REMOVE_NORMAL, Team_ColorRGB(), and teamplay.
Referenced by invasion_SpawnMonsters().
Definition at line 259 of file sv_invasion.qc.
References invasion_PickMonster(), and invasion_SpawnChosenMonster().
Referenced by Invasion_CheckWinner().
MUTATOR_HOOKFUNCTION | ( | inv | , |
MonsterDies | |||
) |
Definition at line 416 of file sv_invasion.qc.
References autocvar_g_invasion_type, entity(), GameRules_scoring_add, inv_maxcurrent, inv_monsters_perteam, inv_numkilled, INV_TYPE_ROUND, IS_PLAYER, M_ARGV, MONSTERFLAG_RESPAWNED, SAME_TEAM, ST_INV_KILLS, teamplay, and TeamScore_AddToTeam().
MUTATOR_HOOKFUNCTION | ( | inv | , |
MonsterSpawn | |||
) |
Definition at line 444 of file sv_invasion.qc.
References autocvar_g_invasion_type, DPCONTENTS_BODY, DPCONTENTS_BOTCLIP, DPCONTENTS_MONSTERCLIP, DPCONTENTS_SOLID, entity(), inv_maxcurrent, inv_monsterskill, inv_numspawned, INV_TYPE_HUNT, M_ARGV, MON_FLAG_SUPERMONSTER, MONSTERFLAG_RESPAWNED, MONSTERFLAG_SPAWNED, and NULL.
MUTATOR_HOOKFUNCTION | ( | inv | , |
SV_StartFrame | |||
) |
Definition at line 467 of file sv_invasion.qc.
References autocvar_g_invasion_type, inv_maxspawned, inv_numkilled, INV_TYPE_ROUND, monsters_killed, and monsters_total.
MUTATOR_HOOKFUNCTION | ( | inv | , |
PlayerRegen | |||
) |
Definition at line 476 of file sv_invasion.qc.
MUTATOR_HOOKFUNCTION | ( | inv | , |
PlayerSpawn | |||
) |
Definition at line 482 of file sv_invasion.qc.
References entity(), g_bot_targets, IL_REMOVE(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | inv | , |
Damage_Calculate | |||
) |
MUTATOR_HOOKFUNCTION | ( | inv | , |
BotShouldAttack | |||
) |
Definition at line 508 of file sv_invasion.qc.
References entity(), IS_MONSTER, and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | inv | , |
SetStartItems | |||
) |
Definition at line 516 of file sv_invasion.qc.
References autocvar_g_invasion_type, INV_TYPE_ROUND, start_armorvalue, and start_health.
MUTATOR_HOOKFUNCTION | ( | inv | , |
AccuracyTargetValid | |||
) |
Definition at line 525 of file sv_invasion.qc.
References entity(), IS_MONSTER, M_ARGV, MUT_ACCADD_INDIFFERENT, and MUT_ACCADD_INVALID.
MUTATOR_HOOKFUNCTION | ( | inv | , |
AllowMobSpawning | |||
) |
MUTATOR_HOOKFUNCTION | ( | inv | , |
CheckRules_World | |||
) |
Definition at line 541 of file sv_invasion.qc.
References autocvar_g_invasion_type, INV_TYPE_ROUND, M_ARGV, and WinningCondition_Invasion().
MUTATOR_HOOKFUNCTION | ( | inv | , |
TeamBalance_CheckAllowedTeams | , | ||
CBC_ORDER_EXCLUSIVE | |||
) |
MUTATOR_HOOKFUNCTION | ( | inv | , |
AllowMobButcher | |||
) |
spawnfunc | ( | target_invasion_roundend | ) |
Definition at line 45 of file sv_invasion.qc.
References count, g_invasion, g_invasion_roundends, IL_PUSH(), target_invasion_roundend_use(), use, and victent_present.
spawnfunc | ( | invasion_wave | ) |
Definition at line 58 of file sv_invasion.qc.
References g_invasion, g_invasion_waves, and IL_PUSH().
spawnfunc | ( | invasion_spawnpoint | ) |
Definition at line 65 of file sv_invasion.qc.
References ClearWinners(), g_invasion, g_invasion_spawns, and IL_PUSH().
Definition at line 25 of file sv_invasion.qc.
References ceil(), count, FOREACH_CLIENT, IS_PLAYER, IS_REAL_CLIENT, min(), and winning.
Referenced by spawnfunc().
int WinningCondition_Invasion | ( | ) |
Definition at line 76 of file sv_invasion.qc.
References autocvar_g_invasion_type, ClearWinners(), FOREACH_CLIENT, g_invasion_roundends, g_monsters, IL_EACH, inv_endreached, INV_TYPE_HUNT, INV_TYPE_STAGE, IS_DEAD, IS_PLAYER, MONSTERFLAG_RESPAWNED, NULL, SetWinners(), WINNING_NO, WINNING_YES, and WinningConditionHelper().
Referenced by MUTATOR_HOOKFUNCTION().
int autocvar_g_invasion_monster_count |
Definition at line 16 of file sv_invasion.qc.
Referenced by Invasion_RoundStart().
float autocvar_g_invasion_round_timelimit |
Definition at line 13 of file sv_invasion.qc.
Referenced by Invasion_CheckWinner(), and invasion_DelayedInit().
float autocvar_g_invasion_spawn_delay |
Definition at line 18 of file sv_invasion.qc.
Referenced by Invasion_CheckWinner().
float autocvar_g_invasion_spawnpoint_spawn_delay |
Definition at line 14 of file sv_invasion.qc.
Referenced by invasion_PickSpawn().
float autocvar_g_invasion_warmup |
Definition at line 15 of file sv_invasion.qc.
Referenced by Invasion_CheckWinner(), and invasion_DelayedInit().
bool autocvar_g_invasion_zombies_only |
Definition at line 17 of file sv_invasion.qc.
Referenced by invasion_PickMonster().
bool inv_endreached |
Definition at line 21 of file sv_invasion.qc.
Referenced by WinningCondition_Invasion().
bool inv_warning_shown |
Definition at line 23 of file sv_invasion.qc.
Referenced by invasion_SpawnChosenMonster().
bool victent_present |
Definition at line 20 of file sv_invasion.qc.
Referenced by spawnfunc().