|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "sv_keepaway.qh"#include <common/checkextension.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.
Macros | |
| #define | BALL_XYDIST 24 |
| #define | BALL_XYSPEED 100 |
| #define BALL_XYDIST 24 |
Referenced by ka_BallThink_Carried(), and tka_BallThink_Carried().
| #define BALL_XYSPEED 100 |
Referenced by ka_BallThink_Carried(), and tka_BallThink_Carried().
Definition at line 324 of file sv_keepaway.qc.
References entity(), g_kaballs, IL_EACH, NULL, org, and vector.
Referenced by havocbot_role_ka_collector().
Definition at line 351 of file sv_keepaway.qc.
References ballcarried, entity(), 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 void().
Definition at line 374 of file sv_keepaway.qc.
References ballcarried, entity(), 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 void().
| if | ( | ! | IS_PLAYERfrag_attacker)||!IS_PLAYER(frag_target | ) |
References frag_target.
| if | ( | frag_attacker. | ballcarried | ) |
Definition at line 470 of file sv_keepaway.qc.
References autocvar_g_keepaway_ballcarrier_damage, autocvar_g_keepaway_ballcarrier_force, frag_target, M_ARGV, and vector.
Definition at line 32 of file sv_keepaway.qc.
References autocvar_g_keepawayball_tracking, entity(), IS_INVISIBLE, IS_SPEC, owner, and warmup_stage.
Referenced by ka_TouchEvent().
runs (only) while a player is carrying the ball
Definition at line 90 of file sv_keepaway.qc.
References alpha, autocvar_g_keepaway_score_timepoints, BALL_XYDIST, BALL_XYSPEED, cnt, entity(), float2int_decimal_fld, frametime, GameRules_scoring_add, GameRules_scoring_add_float2int, makevectors, nextthink, owner, time, v_forward, and vec3.
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 108 of file sv_keepaway.qc.
References entity(), ITEM_DAMAGE_NEEDKILL, ka_RespawnBall(), and vector.
Referenced by ka_DropEvent(), and ka_SpawnBalls().
Definition at line 191 of file sv_keepaway.qc.
References ATTEN_NONE, autocvar_g_keepawayball_respawntime, autocvar_g_keepawayball_tracking, CH_TRIGGER, crandom, DAMAGE_YES, entity(), g_damagedbycontents, IL_PUSH(), ka_DamageEvent(), ka_EventLog(), ka_PlayerReset(), ka_RespawnBall(), MOVETYPE_BOUNCE, navigation_dynamicgoal_set(), NULL, Send_Notification(), set_movetype(), setthink, SOLID_TRIGGER, sound, SPRITERULE_DEFAULT, time, VOL_BASE, warmup_stage, waypointsprite_attachedforcarrier, WaypointSprite_Ping(), WaypointSprite_Spawn(), and WaypointSprite_UpdateRule().
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 44 of file sv_keepaway.qc.
References autocvar_sv_eventlog, entity(), ftos(), GameLogEcho(), NULL, and strcat().
Referenced by ka_DropEvent(), and ka_TouchEvent().
Definition at line 291 of file sv_keepaway.qc.
References entity(), g_kaballs, game_starttime, IL_EMPTY, ka_RemoveBalls(), ka_SpawnBalls(), nextthink, and time.
Referenced by REGISTER_MUTATOR().
Definition at line 184 of file sv_keepaway.qc.
References entity(), GameRules_scoring_vip, NULL, and WaypointSprite_Kill().
Referenced by ka_DropEvent(), and ka_RemoveBalls().
| void ka_RemoveBalls | ( | ) |
Definition at line 244 of file sv_keepaway.qc.
References g_kaballs, IL_EACH, ka_PlayerReset(), and WaypointSprite_DetachCarrier().
Referenced by ka_Handler_CheckBall().
Definition at line 50 of file sv_keepaway.qc.
References angles, ATTEN_NONE, autocvar_g_keepawayball_effects, autocvar_g_keepawayball_respawntime, autocvar_g_keepawayball_tracking, CH_TRIGGER, DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_DONOTENTER, DPCONTENTS_LAVA, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SKY, DPCONTENTS_SLIME, DPCONTENTS_SOLID, effects, entity(), game_stopped, ka_RespawnBall(), MoveToRandomMapLocation(), MOVETYPE_BOUNCE, navigation_dynamicgoal_set(), nextthink, NULL, origin, Q3SURFACEFLAG_SKY, SelectSpawnPoint(), Send_Effect(), set_movetype(), setthink, sound, team, time, vector, velocity, VOL_BASE, warmup_stage, waypointsprite_attachedforcarrier, WaypointSprite_Ping(), and WaypointSprite_Spawn().
Referenced by ka_DamageEvent(), ka_DropEvent(), ka_RespawnBall(), ka_SpawnBalls(), and ka_TouchEvent().
| void ka_SpawnBalls | ( | ) |
Definition at line 256 of file sv_keepaway.qc.
References autocvar_g_keepawayball_count, autocvar_g_keepawayball_damageforcescale, autocvar_g_keepawayball_trail_color, DAMAGE_YES, entity(), FL_ITEM, g_damagedbycontents, g_items, g_kaballs, IL_PUSH(), ka_DamageEvent(), ka_RespawnBall(), ka_TouchEvent(), MOVETYPE_BOUNCE, navigation_dynamicgoal_init(), NULL, set_movetype(), setmodel, settouch, and SOLID_TRIGGER.
Referenced by ka_Handler_CheckBall().
Definition at line 114 of file sv_keepaway.qc.
References ATTEN_NONE, ATTEN_NORM, autocvar_g_keepaway_ballcarrier_maxballs, ballcarried, CH_TRIGGER, cnt, DAMAGE_NO, damagedbycontents, entity(), func_null(), g_damagedbycontents, game_stopped, GameRules_scoring_add, GameRules_scoring_vip, IL_REMOVE(), IS_DEAD, IS_INDEPENDENT_PLAYER, IS_PLAYER, ka_ballcarrier_waypointsprite_visible_for_player(), ka_BallThink_Carried(), ka_EventLog(), ka_RespawnBall(), MOVETYPE_NONE, navigation_dynamicgoal_unset(), nextthink, NULL, origin, owner, previous_owner, Q3SURFACEFLAG_NOIMPACT, scale, Send_Effect(), Send_Notification(), set_movetype(), setthink, solid, SOLID_NOT, sound, SPRITERULE_DEFAULT, takedamage, time, toucher, trace_dphitq3surfaceflags, velocity, VOL_BASE, wait, WaypointSprite_AttachCarrier(), waypointsprite_attachedforcarrier, WaypointSprite_Kill(), WaypointSprite_Ping(), and WaypointSprite_UpdateRule().
Referenced by ka_SpawnBalls().
Definition at line 312 of file sv_keepaway.qc.
References checkpvs(), entity(), origin, view_ofs, and WaypointSprite_getviewentity().
| MODEL | ( | KA_BALL | , |
| "models/orbs/orbblue.md3" | ) |
| MUTATOR_HOOKFUNCTION | ( | ka | , |
| GiveFragsForKill | ) |
Definition at line 429 of file sv_keepaway.qc.
References M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ka | , |
| PlayerDies | ) |
Definition at line 402 of file sv_keepaway.qc.
References autocvar_g_keepaway_noncarrier_warn, autocvar_g_keepaway_score_bckill, autocvar_g_keepaway_score_killac, entity(), frag_target, GameRules_scoring_add, IS_PLAYER, ka_DropEvent(), M_ARGV, and Send_Notification().
| MUTATOR_HOOKFUNCTION | ( | ka | , |
| PlayerPreThink | ) |
Definition at line 441 of file sv_keepaway.qc.
References BITSET, entity(), KA_CARRYING, M_ARGV, NULL, PlayerPreThink, and STAT.
| MUTATOR_HOOKFUNCTION | ( | ka | , |
| PlayerUseKey | ) |
Definition at line 449 of file sv_keepaway.qc.
References entity(), ka_DropEvent(), M_ARGV, MUTATOR_RETURNVALUE, and PlayerUseKey().
| MUTATOR_HOOKFUNCTION | ( | ka | , |
| reset_map_global | ) |
Definition at line 80 of file sv_keepaway.qc.
References FOREACH_CLIENT.
| MUTATOR_HOOKFUNCTION | ( | ka | , |
| Scores_CountFragsRemaining | ) |
Definition at line 435 of file sv_keepaway.qc.
References autocvar_g_keepaway_score_timepoints.
| vector autocvar_g_keepaway_ballcarrier_damage |
Definition at line 16 of file sv_keepaway.qc.
Referenced by if().
| vector autocvar_g_keepaway_ballcarrier_force |
Definition at line 17 of file sv_keepaway.qc.
Referenced by if().
| float autocvar_g_keepaway_ballcarrier_highspeed |
Definition at line 15 of file sv_keepaway.qc.
| int autocvar_g_keepaway_ballcarrier_maxballs |
Definition at line 14 of file sv_keepaway.qc.
Referenced by ka_TouchEvent().
| vector autocvar_g_keepaway_noncarrier_damage |
Definition at line 18 of file sv_keepaway.qc.
| vector autocvar_g_keepaway_noncarrier_force |
Definition at line 19 of file sv_keepaway.qc.
| bool autocvar_g_keepaway_noncarrier_warn |
Definition at line 20 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| int autocvar_g_keepaway_score_bckill |
Definition at line 22 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| int autocvar_g_keepaway_score_killac |
Definition at line 23 of file sv_keepaway.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| int autocvar_g_keepaway_score_timepoints |
Definition at line 24 of file sv_keepaway.qc.
Referenced by ka_BallThink_Carried(), and MUTATOR_HOOKFUNCTION().
| int autocvar_g_keepawayball_count |
Definition at line 25 of file sv_keepaway.qc.
Referenced by ka_SpawnBalls().
| float autocvar_g_keepawayball_damageforcescale |
Definition at line 26 of file sv_keepaway.qc.
Referenced by ka_SpawnBalls().
| int autocvar_g_keepawayball_effects |
Definition at line 27 of file sv_keepaway.qc.
Referenced by ka_RespawnBall().
| float autocvar_g_keepawayball_respawntime |
Definition at line 28 of file sv_keepaway.qc.
Referenced by ka_DropEvent(), and ka_RespawnBall().
| int autocvar_g_keepawayball_tracking |
Definition at line 30 of file sv_keepaway.qc.
Referenced by ka_ballcarrier_waypointsprite_visible_for_player(), ka_DropEvent(), and ka_RespawnBall().
| int autocvar_g_keepawayball_trail_color |
Definition at line 29 of file sv_keepaway.qc.
Referenced by ka_SpawnBalls().
| entity ballcarried |
Definition at line 11 of file sv_keepaway.qc.
Referenced by havocbot_role_ka_carrier(), havocbot_role_ka_collector(), havocbot_role_tka_carrier(), havocbot_role_tka_collector(), ka_TouchEvent(), nexball_setstatus(), and tka_TouchEvent().
| float float2int_decimal_fld |
Definition at line 79 of file sv_keepaway.qc.
Definition at line 464 of file sv_keepaway.qc.
| entity previous_owner |
Definition at line 12 of file sv_keepaway.qc.
Referenced by ka_TouchEvent(), and tka_TouchEvent().
| bool pushable |
Definition at line 240 of file sv_keepaway.qc.