Xonotic
|
#include "sv_domination.qh"
#include <server/client.qh>
#include <server/command/vote.qh>
#include <server/damage.qh>
#include <server/gamelog.qh>
#include <server/items/items.qh>
#include <server/teamplay.qh>
#include <server/world.qh>
#include <common/mapobjects/platforms.qh>
#include <common/mapobjects/triggers.qh>
Go to the source code of this file.
Definition at line 140 of file sv_domination.qc.
References frame, nextthink, pain_finished, t_length, t_width, and time.
Referenced by dompointthink().
Definition at line 251 of file sv_domination.qc.
References autocvar_g_domination_point_amt, autocvar_g_domination_point_rate, classname, cnt, dompointthink(), dompointtouch(), droptofloor, entity(), find(), FL_ITEM, flags, frags, g_items, goalentity, IL_PUSH(), message, nextthink, NULL, objerror(), origin, setorigin(), setthink, skin, solid, SOLID_TRIGGER, sprite, t_length, t_width, time, total_pps, wait, and waypoint_spawnforitem().
Referenced by spawnfunc().
Definition at line 608 of file sv_domination.qc.
References autocvar_g_domination_default_teams, autocvar_g_domination_round_timelimit, autocvar_g_domination_roundbased, autocvar_g_domination_teams_override, autocvar_g_domination_warmup, bound(), classname, dom_spawnteams(), Domination_CheckPlayers(), Domination_CheckWinner(), domination_roundbased, Domination_RoundStart(), domination_teams, entity(), find(), LOG_TRACE, NULL, round_handler_Init(), round_handler_Spawn(), ScoreRules_dom(), TeamBalance_CheckAllowedTeams(), TeamBalance_Destroy(), TeamBalance_GetAllowedTeams(), and teams.
Referenced by dom_Initialize().
Definition at line 24 of file sv_domination.qc.
References autocvar_sv_eventlog, ftos(), GameLogEcho(), NULL, and strcat().
Referenced by dompoint_captured().
void dom_Initialize | ( | ) |
Definition at line 637 of file sv_domination.qc.
References dom_DelayedInit(), g_domination, g_dompoints, IL_NEW, InitializeEntity(), and NULL.
Referenced by REGISTER_MUTATOR().
Definition at line 586 of file sv_domination.qc.
References entity(), setorigin(), setthink, spawn(), and time.
void dom_spawnteam | ( | string | teamname, |
float | teamcolor, | ||
string | pointmodel, | ||
float | pointskin, | ||
Sound | capsound, | ||
string | capnarration, | ||
string | capmessage | ||
) |
Definition at line 562 of file sv_domination.qc.
References entity(), new_pure, Sound_fixpath, strzone(), and TC.
Referenced by dom_spawnteams().
Definition at line 596 of file sv_domination.qc.
References dom_spawnteam(), NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, TC, and Team_ColoredFullName.
Referenced by dom_DelayedInit().
bool Domination_CheckPlayers | ( | ) |
Definition at line 360 of file sv_domination.qc.
Referenced by dom_DelayedInit().
bool Domination_CheckWinner | ( | ) |
Definition at line 330 of file sv_domination.qc.
References APP_TEAM_NUM, autocvar_g_domination_round_timelimit, autocvar_g_domination_warmup, Domination_count_controlpoints(), NULL, round_handler_GetEndTime, round_handler_Init(), ST_DOM_CAPS, Team_GetWinnerTeam_WithOwnedItems(), TeamScore_AddToTeam(), time, and total_control_points.
Referenced by dom_DelayedInit().
void Domination_count_controlpoints | ( | ) |
Definition at line 309 of file sv_domination.qc.
References entity(), Entity_GetTeam(), Entity_HasValidTeam(), g_dompoints, IL_EACH, NUM_TEAMS, Team_GetNumberOfOwnedItems(), Team_GetTeamFromIndex(), Team_SetNumberOfOwnedItems(), and total_control_points.
Referenced by Domination_CheckWinner().
void Domination_RoundStart | ( | ) |
Definition at line 365 of file sv_domination.qc.
References FOREACH_CLIENT, and IS_PLAYER.
Referenced by dom_DelayedInit().
Definition at line 41 of file sv_domination.qc.
References _sound, ATTEN_NORM, autocvar_g_domination_point_amt, autocvar_g_domination_point_rate, bprint(), captime, CH_TRIGGER, cnt, colormapPaletteColor, delay, dmg_inflictor, dom_EventLog(), domination_roundbased, enemy, entity(), FOREACH_CLIENT, frags, g_dompoints, GameRules_scoring_add, goalentity, IL_EACH, IS_REAL_CLIENT, model, modelindex, NULL, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, owner, pps_blue, pps_pink, pps_red, pps_yellow, set_dom_state(), skin, sprite, SUB_UseTargets(), team, time, total_pps, VOL_BASE, and wait.
Referenced by dompointtouch().
Definition at line 153 of file sv_domination.qc.
References AnimateDomPoint(), autocvar_g_domination_point_amt, autocvar_g_domination_point_rate, delay, domination_roundbased, enemy, frags, GameRules_scoring_add, goalentity, nextthink, NULL, ST_DOM_TICKS, ST_SCORE, TeamScore_AddToTeam(), time, and wait.
Referenced by dom_controlpoint_setup().
Definition at line 197 of file sv_domination.qc.
References captime, classname, cnt, dmg_inflictor, dompoint_captured(), enemy, enemy_playerid, entity(), find(), GetResource(), goalentity, IS_PLAYER, model, modelindex, NULL, owner, RES_HEALTH, round_handler_IsActive, round_handler_IsRoundStarted, skin, sprite, team, and time.
Referenced by dom_controlpoint_setup().
void havocbot_goalrating_controlpoints | ( | entity | this, |
float | ratingscale, | ||
vector | org, | ||
float | sradius | ||
) |
Definition at line 371 of file sv_domination.qc.
References g_dompoints, IL_EACH, and vdist.
Referenced by havocbot_role_dom().
Definition at line 384 of file sv_domination.qc.
References havocbot_goalrating_controlpoints(), havocbot_goalrating_items(), havocbot_goalrating_waypoints(), IS_DEAD, navigation_goalrating_end(), navigation_goalrating_start(), navigation_goalrating_timeout(), navigation_goalrating_timeout_set(), and origin.
Referenced by MUTATOR_HOOKFUNCTION().
MUTATOR_HOOKFUNCTION | ( | dom | , |
TeamBalance_CheckAllowedTeams | |||
) |
Definition at line 402 of file sv_domination.qc.
References classname, domination_teams, entity(), find(), M_ARGV, NULL, string_null, Team_IsValidTeam(), and Team_TeamToBit().
MUTATOR_HOOKFUNCTION | ( | dom | , |
reset_map_players | |||
) |
Definition at line 427 of file sv_domination.qc.
References domination_roundbased, FOREACH_CLIENT, IS_PLAYER, IS_REAL_CLIENT, pps_blue, pps_pink, pps_red, pps_yellow, PutClientInServer(), set_dom_state(), and total_pps.
MUTATOR_HOOKFUNCTION | ( | dom | , |
PlayerSpawn | |||
) |
Definition at line 440 of file sv_domination.qc.
References domination_roundbased, entity(), M_ARGV, and round_handler_IsRoundStarted.
MUTATOR_HOOKFUNCTION | ( | dom | , |
ClientConnect | |||
) |
Definition at line 448 of file sv_domination.qc.
References entity(), M_ARGV, and set_dom_state().
MUTATOR_HOOKFUNCTION | ( | dom | , |
HavocBot_ChooseRole | |||
) |
Definition at line 455 of file sv_domination.qc.
References entity(), havocbot_role_dom(), and M_ARGV.
Definition at line 536 of file sv_domination.qc.
References autocvar_g_domination_disable_frags, domination_roundbased, GameRules_scoring, SFL_SORT_PRIO_PRIMARY, ST_DOM_CAPS, and ST_DOM_TICKS.
Referenced by dom_DelayedInit().
Definition at line 30 of file sv_domination.qc.
References domination_teams, pps_blue, pps_pink, pps_red, pps_yellow, and total_pps.
Referenced by dompoint_captured(), and MUTATOR_HOOKFUNCTION().
spawnfunc | ( | dom_controlpoint | ) |
Definition at line 466 of file sv_domination.qc.
References autocvar_g_domination_point_fullbright, dom_controlpoint_setup(), EF_FULLBRIGHT, EF_LOWPRECISION, effects, g_domination, g_dompoints, IL_PUSH(), nextthink, scale, setthink, and time.
spawnfunc | ( | dom_team | ) |
Definition at line 513 of file sv_domination.qc.
References autocvar_g_domination_teams_override, cnt, dmg, g_domination, model, modelindex, noise, noise1, precache_sound(), and team.
int autocvar_g_domination_default_teams |
Definition at line 15 of file sv_domination.qc.
Referenced by dom_DelayedInit().
bool autocvar_g_domination_disable_frags |
Definition at line 16 of file sv_domination.qc.
Referenced by ScoreRules_dom().
int autocvar_g_domination_point_amt |
Definition at line 17 of file sv_domination.qc.
Referenced by dom_controlpoint_setup(), dompoint_captured(), and dompointthink().
bool autocvar_g_domination_point_fullbright |
Definition at line 18 of file sv_domination.qc.
Referenced by spawnfunc().
float autocvar_g_domination_point_rate |
Definition at line 21 of file sv_domination.qc.
Referenced by dom_controlpoint_setup(), dompoint_captured(), and dompointthink().
float autocvar_g_domination_round_timelimit |
Definition at line 19 of file sv_domination.qc.
Referenced by dom_DelayedInit(), and Domination_CheckWinner().
int autocvar_g_domination_teams_override |
Definition at line 22 of file sv_domination.qc.
Referenced by dom_DelayedInit(), and spawnfunc().
float autocvar_g_domination_warmup |
Definition at line 20 of file sv_domination.qc.
Referenced by dom_DelayedInit(), and Domination_CheckWinner().
bool g_domination |
Definition at line 13 of file sv_domination.qc.
Referenced by dom_Initialize(), and spawnfunc().
int total_control_points |
Definition at line 308 of file sv_domination.qc.
Referenced by Domination_CheckWinner(), and Domination_count_controlpoints().