|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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 1534 of file world.qc.
References FOREACH_CLIENT, INGAME, and IS_PLAYER.
Referenced by WinningCondition_Invasion().
| bool Invasion_CheckPlayers | ( | ) |
Definition at line 314 of file sv_invasion.qc.
Referenced by invasion_DelayedInit().
| bool Invasion_CheckWinner | ( | ) |
Definition at line 243 of file sv_invasion.qc.
References 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, round_handler_GetEndTime, round_handler_Init(), Send_Notification(), and time.
Referenced by invasion_DelayedInit().
Definition at line 482 of file sv_invasion.qc.
References autocvar_g_invasion_round_timelimit, autocvar_g_invasion_type, autocvar_g_invasion_warmup, cvar_set(), entity(), independent_players, inv_maxrounds, inv_roundcnt, INV_TYPE_HUNT, INV_TYPE_ROUND, INV_TYPE_STAGE, Invasion_CheckPlayers(), Invasion_CheckWinner(), Invasion_RoundStart(), invasion_ScoreRules(), 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 503 of file sv_invasion.qc.
References InitializeEntity(), INITPRIO_GAMETYPE, 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, entity(), g_invasion_spawns, IL_EACH, RandomSelection_AddEnt, RandomSelection_chosen_ent, RandomSelection_Init(), and time.
Referenced by invasion_SpawnChosenMonster().
| void Invasion_RoundStart | ( | ) |
Definition at line 319 of file sv_invasion.qc.
References autocvar_g_invasion_monster_count, FOREACH_CLIENT, inv_maxcurrent, inv_maxrounds, inv_maxspawned, inv_monsterskill, inv_numkilled, inv_numspawned, inv_roundcnt, IS_PLAYER, max(), numplayers, and rint().
Referenced by invasion_DelayedInit().
| void invasion_ScoreRules | ( | ) |
Definition at line 474 of file sv_invasion.qc.
References GameRules_score_enabled, GameRules_scoring, and SFL_SORT_PRIO_PRIMARY.
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_roundcnt, inv_warning_shown, invasion_GetWaveEntity(), invasion_PickSpawn(), LOG_TRACE, Monster::m_maxs, Monster::m_mins, MONSTERFLAG_MINIBOSS, MoveToRandomMapLocation(), NULL, Q3SURFACEFLAG_SKY, RandomSelection_chosen_string, RandomSelection_Init(), spawn, spawn_point, spawnmonster(), STATUSEFFECT_REMOVE_NORMAL, and StatusEffects_remove().
Referenced by invasion_SpawnMonsters().
Definition at line 236 of file sv_invasion.qc.
References invasion_PickMonster(), and invasion_SpawnChosenMonster().
Referenced by Invasion_CheckWinner().
| MUTATOR_HOOKFUNCTION | ( | inv | , |
| AccuracyTargetValid | ) |
Definition at line 443 of file sv_invasion.qc.
References entity(), frag_target, IS_MONSTER, M_ARGV, MUT_ACCADD_INDIFFERENT, and MUT_ACCADD_INVALID.
| MUTATOR_HOOKFUNCTION | ( | inv | , |
| AllowMobButcher | ) |
| MUTATOR_HOOKFUNCTION | ( | inv | , |
| AllowMobSpawning | ) |
Definition at line 452 of file sv_invasion.qc.
References M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | inv | , |
| BotShouldAttack | ) |
Definition at line 426 of file sv_invasion.qc.
References entity(), IS_MONSTER, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | inv | , |
| CheckRules_World | ) |
Definition at line 459 of file sv_invasion.qc.
References autocvar_g_invasion_type, CheckRules_World(), INV_TYPE_ROUND, M_ARGV, and WinningCondition_Invasion().
| MUTATOR_HOOKFUNCTION | ( | inv | , |
| Damage_Calculate | ) |
Definition at line 409 of file sv_invasion.qc.
References entity(), frag_damage, frag_force, frag_target, IS_PLAYER, M_ARGV, and vector.
| MUTATOR_HOOKFUNCTION | ( | inv | , |
| MonsterDies | ) |
Definition at line 339 of file sv_invasion.qc.
References autocvar_g_invasion_type, entity(), frag_target, GameRules_scoring_add, inv_maxcurrent, inv_numkilled, INV_TYPE_ROUND, IS_PLAYER, M_ARGV, MONSTERFLAG_RESPAWNED, and SAME_TEAM.
| MUTATOR_HOOKFUNCTION | ( | inv | , |
| MonsterSpawn | ) |
Definition at line 362 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, NULL, and Send_Notification().
| MUTATOR_HOOKFUNCTION | ( | inv | , |
| PlayerRegen | ) |
Definition at line 394 of file sv_invasion.qc.
| MUTATOR_HOOKFUNCTION | ( | inv | , |
| PlayerSpawn | ) |
Definition at line 400 of file sv_invasion.qc.
References entity(), g_bot_targets, IL_REMOVE(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | inv | , |
| SetStartItems | ) |
Definition at line 434 of file sv_invasion.qc.
References autocvar_g_invasion_type, INV_TYPE_ROUND, start_armorvalue, and start_health.
| MUTATOR_HOOKFUNCTION | ( | inv | , |
| SV_StartFrame | ) |
Definition at line 385 of file sv_invasion.qc.
References autocvar_g_invasion_type, inv_maxspawned, inv_numkilled, INV_TYPE_ROUND, monsters_killed, and monsters_total.
| spawnfunc | ( | invasion_spawnpoint | ) |
Definition at line 65 of file sv_invasion.qc.
References g_invasion, g_invasion_spawns, and IL_PUSH().
| spawnfunc | ( | invasion_wave | ) |
Definition at line 58 of file sv_invasion.qc.
References g_invasion, g_invasion_waves, and IL_PUSH().
| 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.
Definition at line 25 of file sv_invasion.qc.
References ceil(), count, entity(), 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, bprint(), 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().