Xonotic
|
#include "sv_keepaway.qh"
#include <common/effects/all.qh>
#include <server/client.qh>
#include <server/gamelog.qh>
#include <server/damage.qh>
#include <server/items/items.qh>
#include <server/world.qh>
Go to the source code of this file.
Definition at line 309 of file sv_keepaway.qc.
References entity(), g_kaballs, IL_EACH, navigation_routerating(), and NULL.
Referenced by havocbot_role_ka_collector().
Definition at line 328 of file sv_keepaway.qc.
References ballcarried, havocbot_goalrating_enemyplayers(), havocbot_goalrating_items(), havocbot_goalrating_waypoints(), havocbot_role_ka_collector(), IS_DEAD, navigation_goalrating_end(), navigation_goalrating_start(), navigation_goalrating_timeout(), navigation_goalrating_timeout_expire(), navigation_goalrating_timeout_set(), and origin.
Referenced by havocbot_role_ka_collector(), and MUTATOR_HOOKFUNCTION().
Definition at line 351 of file sv_keepaway.qc.
References ballcarried, havocbot_goalrating_ball(), havocbot_goalrating_enemyplayers(), havocbot_goalrating_items(), havocbot_role_ka_carrier(), IS_DEAD, navigation_goalrating_end(), navigation_goalrating_start(), navigation_goalrating_timeout(), navigation_goalrating_timeout_expire(), navigation_goalrating_timeout_set(), and origin.
Referenced by havocbot_role_ka_carrier(), and MUTATOR_HOOKFUNCTION().
Definition at line 32 of file sv_keepaway.qc.
References IS_SPEC.
Referenced by ka_TouchEvent().
void ka_DamageEvent | ( | entity | this, |
entity | inflictor, | ||
entity | attacker, | ||
float | damage, | ||
int | deathtype, | ||
.entity | weaponentity, | ||
vector | hitloc, | ||
vector | force | ||
) |
Definition at line 106 of file sv_keepaway.qc.
References ITEM_DAMAGE_NEEDKILL, and ka_RespawnBall().
Referenced by ka_DropEvent(), and ka_SpawnBall().
Definition at line 187 of file sv_keepaway.qc.
References ATTEN_NONE, autocvar_g_keepawayball_respawntime, CH_TRIGGER, crandom, DAMAGE_YES, EF_NODRAW, entity(), g_damagedbycontents, IL_PUSH(), ka_DamageEvent(), ka_EventLog(), ka_PlayerReset(), ka_RespawnBall(), ka_TouchEvent(), MOVETYPE_BOUNCE, navigation_dynamicgoal_set(), NULL, set_movetype(), setorigin(), setthink, sound, SPRITERULE_DEFAULT, time, and VOL_BASE.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 43 of file sv_keepaway.qc.
References autocvar_sv_eventlog, ftos(), GameLogEcho(), NULL, and strcat().
Referenced by ka_DropEvent(), and ka_TouchEvent().
Definition at line 280 of file sv_keepaway.qc.
References g_kaballs, IL_EMPTY, KA_BALL_COUNT, ka_RemoveBalls(), ka_SpawnBalls(), nextthink, and time.
Referenced by ka_Initialize().
void ka_Initialize | ( | ) |
Definition at line 296 of file sv_keepaway.qc.
References g_kaballs, IL_NEW, ka_Handler, ka_Handler_CheckBall(), new_pure, setthink, and time.
Referenced by REGISTER_MUTATOR().
Definition at line 176 of file sv_keepaway.qc.
References autocvar_g_keepaway_ballcarrier_effects, GameRules_scoring_vip(), and NULL.
Referenced by ka_DropEvent(), and ka_RemoveBall().
Definition at line 228 of file sv_keepaway.qc.
References entity(), and ka_PlayerReset().
Referenced by ka_RemoveBalls().
void ka_RemoveBalls | ( | ) |
Definition at line 238 of file sv_keepaway.qc.
References g_kaballs, IL_EACH, and ka_RemoveBall().
Referenced by ka_Handler_CheckBall().
Definition at line 49 of file sv_keepaway.qc.
References angles, ATTEN_NONE, autocvar_g_keepawayball_effects, autocvar_g_keepawayball_respawntime, CH_TRIGGER, DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_DONOTENTER, DPCONTENTS_LAVA, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SKY, DPCONTENTS_SLIME, DPCONTENTS_SOLID, effects, entity(), ka_TouchEvent(), makevectors, MoveToRandomMapLocation(), MOVETYPE_BOUNCE, navigation_dynamicgoal_set(), nextthink, NULL, origin, Q3SURFACEFLAG_SKY, SelectSpawnPoint(), set_movetype(), setorigin(), setthink, sound, team, time, vector(), velocity, and VOL_BASE.
Referenced by ka_DamageEvent(), ka_DropEvent(), ka_SpawnBall(), and ka_TouchEvent().
void ka_SpawnBall | ( | ) |
Definition at line 246 of file sv_keepaway.qc.
References autocvar_g_keepawayball_damageforcescale, autocvar_g_keepawayball_trail_color, DAMAGE_YES, entity(), FL_ITEM, g_damagedbycontents, g_items, g_kaballs, IL_PUSH(), InitializeEntity(), ka_DamageEvent(), ka_RespawnBall(), ka_TouchEvent(), MOVETYPE_BOUNCE, navigation_dynamicgoal_init(), NULL, set_movetype(), setmodel, and SOLID_TRIGGER.
Referenced by ka_SpawnBalls().
Definition at line 271 of file sv_keepaway.qc.
References ka_SpawnBall(), and max().
Referenced by ka_Handler_CheckBall().
Definition at line 90 of file sv_keepaway.qc.
References autocvar_g_keepaway_score_timeinterval, autocvar_g_keepaway_score_timepoints, GameRules_scoring_add, GameRules_scoring_add_float2int, max(), nextthink, owner, time, and timepoints_counter.
Referenced by ka_TouchEvent().
Definition at line 112 of file sv_keepaway.qc.
References ATTEN_NONE, ATTEN_NORM, autocvar_g_keepaway_ballcarrier_effects, autocvar_g_keepawayball_trail_color, CH_TRIGGER, DAMAGE_NO, damagedbycontents, EF_NODRAW, effects, func_null(), g_damagedbycontents, GameRules_scoring_add, GameRules_scoring_vip(), IL_REMOVE(), IS_DEAD, IS_PLAYER, ka_ballcarrier_waypointsprite_visible_for_player(), ka_EventLog(), ka_RespawnBall(), ka_TimeScoring(), MOVETYPE_NONE, navigation_dynamicgoal_unset(), nextthink, NULL, origin, owner, Q3SURFACEFLAG_NOIMPACT, set_movetype(), setorigin(), setthink, sound, SPRITERULE_DEFAULT, takedamage, time, trace_dphitq3surfaceflags, velocity, VOL_BASE, and wait.
Referenced by ka_DropEvent(), ka_RespawnBall(), and ka_SpawnBall().
MODEL | ( | KA_BALL | , |
"models/orbs/orbblue.md3" | |||
) |
MUTATOR_HOOKFUNCTION | ( | ka | , |
reset_map_global | |||
) |
MUTATOR_HOOKFUNCTION | ( | ka | , |
PlayerDies | |||
) |
Definition at line 379 of file sv_keepaway.qc.
References autocvar_g_keepaway_noncarrier_warn, autocvar_g_keepaway_score_bckill, autocvar_g_keepaway_score_killac, entity(), GameRules_scoring_add, IS_PLAYER, ka_DropEvent(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ka | , |
GiveFragsForKill | |||
) |
Definition at line 402 of file sv_keepaway.qc.
References M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ka | , |
Scores_CountFragsRemaining | |||
) |
Definition at line 408 of file sv_keepaway.qc.
References autocvar_g_keepaway_score_timepoints.
MUTATOR_HOOKFUNCTION | ( | ka | , |
PlayerPreThink | |||
) |
MUTATOR_HOOKFUNCTION | ( | ka | , |
PlayerUseKey | |||
) |
Definition at line 422 of file sv_keepaway.qc.
References entity(), ka_DropEvent(), M_ARGV, and MUTATOR_RETURNVALUE.
MUTATOR_HOOKFUNCTION | ( | ka | , |
Damage_Calculate | |||
) |
Definition at line 434 of file sv_keepaway.qc.
References autocvar_g_keepaway_ballcarrier_damage, autocvar_g_keepaway_ballcarrier_force, autocvar_g_keepaway_ballcarrier_selfdamage, autocvar_g_keepaway_ballcarrier_selfforce, autocvar_g_keepaway_noncarrier_damage, autocvar_g_keepaway_noncarrier_force, autocvar_g_keepaway_noncarrier_selfdamage, autocvar_g_keepaway_noncarrier_selfforce, entity(), IS_PLAYER, M_ARGV, and vector().
MUTATOR_HOOKFUNCTION | ( | ka | , |
ClientDisconnect | |||
) |
Definition at line 471 of file sv_keepaway.qc.
References entity(), ka_DropEvent(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ka | , |
MakePlayerObserver | |||
) |
Definition at line 478 of file sv_keepaway.qc.
References entity(), ka_DropEvent(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ka | , |
PlayerPowerups | |||
) |
Definition at line 485 of file sv_keepaway.qc.
References autocvar_g_keepaway_ballcarrier_effects, entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ka | , |
PlayerPhysics_UpdateStats | |||
) |
Definition at line 499 of file sv_keepaway.qc.
References autocvar_g_keepaway_ballcarrier_highspeed, entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ka | , |
BotShouldAttack | |||
) |
MUTATOR_HOOKFUNCTION | ( | ka | , |
HavocBot_ChooseRole | |||
) |
Definition at line 524 of file sv_keepaway.qc.
References entity(), havocbot_role_ka_carrier(), havocbot_role_ka_collector(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ka | , |
DropSpecialItems | |||
) |
Definition at line 535 of file sv_keepaway.qc.
References entity(), ka_DropEvent(), and M_ARGV.
float autocvar_g_keepaway_ballcarrier_damage |
Definition at line 13 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
int autocvar_g_keepaway_ballcarrier_effects |
Definition at line 12 of file sv_keepaway.qc.
Referenced by ka_PlayerReset(), ka_TouchEvent(), and MUTATOR_HOOKFUNCTION().
float autocvar_g_keepaway_ballcarrier_force |
Definition at line 14 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_keepaway_ballcarrier_highspeed |
Definition at line 15 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_keepaway_ballcarrier_selfdamage |
Definition at line 16 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_keepaway_ballcarrier_selfforce |
Definition at line 17 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_keepaway_noncarrier_damage |
Definition at line 18 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_keepaway_noncarrier_force |
Definition at line 19 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_keepaway_noncarrier_selfdamage |
Definition at line 20 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_keepaway_noncarrier_selfforce |
Definition at line 21 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
bool autocvar_g_keepaway_noncarrier_warn |
Definition at line 22 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
int autocvar_g_keepaway_score_bckill |
Definition at line 23 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
int autocvar_g_keepaway_score_killac |
Definition at line 24 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_keepaway_score_timeinterval |
Definition at line 26 of file sv_keepaway.qc.
Referenced by ka_TimeScoring().
int autocvar_g_keepaway_score_timepoints |
Definition at line 25 of file sv_keepaway.qc.
Referenced by ka_TimeScoring(), and MUTATOR_HOOKFUNCTION().
float autocvar_g_keepawayball_damageforcescale |
Definition at line 27 of file sv_keepaway.qc.
Referenced by ka_SpawnBall().
int autocvar_g_keepawayball_effects |
Definition at line 28 of file sv_keepaway.qc.
Referenced by ka_RespawnBall().
float autocvar_g_keepawayball_respawntime |
Definition at line 29 of file sv_keepaway.qc.
Referenced by ka_DropEvent(), and ka_RespawnBall().
int autocvar_g_keepawayball_trail_color |
Definition at line 30 of file sv_keepaway.qc.
Referenced by ka_SpawnBall(), and ka_TouchEvent().
entity ballcarried |
Definition at line 10 of file sv_keepaway.qc.
Referenced by havocbot_role_ka_carrier(), and havocbot_role_ka_collector().
bool pushable |
Definition at line 224 of file sv_keepaway.qc.
float timepoints_counter |
Definition at line 80 of file sv_keepaway.qc.
Referenced by ka_TimeScoring().