|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | BALL_XYDIST 24 |
| #define | BALL_XYSPEED 100 |
| #define BALL_XYDIST 24 |
| #define BALL_XYSPEED 100 |
| void havocbot_goalrating_tkaball | ( | entity | this, |
| float | ratingscale, | ||
| float | ratingscale_sameteam, | ||
| vector | org ) |
Definition at line 315 of file sv_tka.qc.
References entity(), g_tkaballs, IL_EACH, NULL, org, and vector.
Referenced by havocbot_role_tka_collector().
Definition at line 347 of file sv_tka.qc.
References ballcarried, entity(), havocbot_goalrating_enemyplayers(), havocbot_goalrating_items(), havocbot_goalrating_waypoints(), havocbot_role_tka_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_tka_collector(), and void().
Definition at line 370 of file sv_tka.qc.
References ballcarried, entity(), havocbot_goalrating_enemyplayers(), havocbot_goalrating_items(), havocbot_goalrating_tkaball(), havocbot_role_tka_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_tka_carrier(), and void().
| if | ( | ! | IS_PLAYERfrag_attacker)||!IS_PLAYER(frag_target | ) |
References frag_target.
| if | ( | frag_attacker. | ballcarried | ) |
Definition at line 493 of file sv_tka.qc.
References autocvar_g_tka_ballcarrier_damage, autocvar_g_tka_ballcarrier_force, frag_target, M_ARGV, and vector.
| MODEL | ( | TKA_BALL | , |
| "models/orbs/orbblue.md3" | ) |
| MUTATOR_HOOKFUNCTION | ( | tka | , |
| GiveFragsForKill | ) |
| MUTATOR_HOOKFUNCTION | ( | tka | , |
| PlayerDies | ) |
Definition at line 398 of file sv_tka.qc.
References autocvar_g_tka_noncarrier_warn, autocvar_g_tka_score_bckill, autocvar_g_tka_score_killac, autocvar_g_tka_score_team, DIFF_TEAM, entity(), frag_target, g_tkaballs, GameRules_scoring_add, GameRules_scoring_add_team, IL_EACH, IS_PLAYER, M_ARGV, SAME_TEAM, Send_Notification(), and tka_DropEvent().
| MUTATOR_HOOKFUNCTION | ( | tka | , |
| PlayerPreThink | ) |
Definition at line 443 of file sv_tka.qc.
References entity(), g_tkaballs, IL_EACH, M_ARGV, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, PlayerPreThink, STAT, TKA_BALL_CARRYING, TKA_BALL_DROPPED, TKA_BALL_TAKEN_BLUE, TKA_BALL_TAKEN_PINK, TKA_BALL_TAKEN_RED, and TKA_BALL_TAKEN_YELLOW.
| MUTATOR_HOOKFUNCTION | ( | tka | , |
| PlayerUseKey | ) |
Definition at line 472 of file sv_tka.qc.
References entity(), M_ARGV, MUTATOR_RETURNVALUE, PlayerUseKey(), and tka_DropEvent().
| MUTATOR_HOOKFUNCTION | ( | tka | , |
| reset_map_global | ) |
Definition at line 77 of file sv_tka.qc.
References FOREACH_CLIENT.
| MUTATOR_HOOKFUNCTION | ( | tka | , |
| Scores_CountFragsRemaining | ) |
Definition at line 437 of file sv_tka.qc.
References autocvar_g_tka_score_timepoints.
Definition at line 28 of file sv_tka.qc.
References autocvar_g_tkaball_tracking, entity(), IS_INVISIBLE, IS_SPEC, owner, SAME_TEAM, and warmup_stage.
Referenced by tka_TouchEvent().
runs (only) while a player is carrying the ball
Definition at line 87 of file sv_tka.qc.
References alpha, autocvar_g_tka_score_timepoints, BALL_XYDIST, BALL_XYSPEED, cnt, entity(), float2int_decimal_fld, frametime, GameRules_scoring_add, GameRules_scoring_add_team_float2int, makevectors, nextthink, owner, time, v_forward, and vec3.
Referenced by tka_TouchEvent().
Definition at line 187 of file sv_tka.qc.
References ATTEN_NONE, autocvar_g_tkaball_respawntime, autocvar_g_tkaball_tracking, CH_TRIGGER, crandom, DAMAGE_YES, entity(), MOVETYPE_BOUNCE, navigation_dynamicgoal_set(), NULL, Send_Notification(), set_movetype(), setthink, SOLID_TRIGGER, sound, SPRITERULE_DEFAULT, time, tka_EventLog(), tka_PlayerReset(), tka_RespawnBall(), VOL_BASE, warmup_stage, waypointsprite_attachedforcarrier, WaypointSprite_Ping(), WaypointSprite_Spawn(), and WaypointSprite_UpdateRule().
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 40 of file sv_tka.qc.
References autocvar_sv_eventlog, entity(), ftos(), GameLogEcho(), NULL, and strcat().
Referenced by tka_DropEvent(), and tka_TouchEvent().
Definition at line 282 of file sv_tka.qc.
References entity(), g_tkaballs, game_starttime, IL_EMPTY, nextthink, time, tka_RemoveBalls(), and tka_SpawnBalls().
Definition at line 180 of file sv_tka.qc.
References entity(), GameRules_scoring_vip, NULL, and WaypointSprite_Kill().
Referenced by tka_DropEvent(), and tka_RemoveBalls().
| void tka_RemoveBalls | ( | ) |
Definition at line 238 of file sv_tka.qc.
References g_tkaballs, IL_EACH, tka_PlayerReset(), and WaypointSprite_DetachCarrier().
Referenced by tka_Handler_CheckBall().
Definition at line 47 of file sv_tka.qc.
References angles, ATTEN_NONE, autocvar_g_tkaball_effects, autocvar_g_tkaball_respawntime, autocvar_g_tkaball_tracking, CH_TRIGGER, DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_DONOTENTER, DPCONTENTS_LAVA, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SKY, DPCONTENTS_SLIME, DPCONTENTS_SOLID, effects, entity(), game_stopped, MoveToRandomMapLocation(), MOVETYPE_BOUNCE, navigation_dynamicgoal_set(), nextthink, NULL, origin, Q3SURFACEFLAG_SKY, SelectSpawnPoint(), Send_Effect(), set_movetype(), setthink, sound, team, time, tka_RespawnBall(), vector, velocity, VOL_BASE, warmup_stage, waypointsprite_attachedforcarrier, WaypointSprite_Ping(), and WaypointSprite_Spawn().
Referenced by tka_DropEvent(), tka_RespawnBall(), tka_SpawnBalls(), and tka_TouchEvent().
| void tka_SpawnBalls | ( | ) |
Definition at line 250 of file sv_tka.qc.
References autocvar_g_tkaball_count, autocvar_g_tkaball_damageforcescale, autocvar_g_tkaball_trail_color, DAMAGE_YES, entity(), FL_ITEM, g_items, g_tkaballs, IL_PUSH(), MOVETYPE_BOUNCE, navigation_dynamicgoal_init(), NULL, set_movetype(), setmodel, settouch, SOLID_TRIGGER, tka_RespawnBall(), and tka_TouchEvent().
Referenced by tka_Handler_CheckBall().
Definition at line 105 of file sv_tka.qc.
References ATTEN_NONE, ATTEN_NORM, autocvar_g_tka_ballcarrier_maxballs, ballcarried, CH_TRIGGER, cnt, colormapPaletteColor, DAMAGE_NO, entity(), game_stopped, GameRules_scoring_add, GameRules_scoring_vip, IS_DEAD, IS_INDEPENDENT_PLAYER, IS_PLAYER, MOVETYPE_NONE, navigation_dynamicgoal_unset(), nextthink, NULL, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, origin, owner, previous_owner, Q3SURFACEFLAG_NOIMPACT, scale, Send_Effect(), Send_Notification(), set_movetype(), setthink, solid, SOLID_NOT, sound, SPRITERULE_TEAMPLAY, takedamage, time, tka_ballcarrier_waypointsprite_visible_for_player(), tka_BallThink_Carried(), tka_EventLog(), tka_RespawnBall(), toucher, trace_dphitq3surfaceflags, velocity, VOL_BASE, wait, WaypointSprite_AttachCarrier(), waypointsprite_attachedforcarrier, WaypointSprite_Kill(), WaypointSprite_Ping(), WaypointSprite_UpdateRule(), and WaypointSprite_UpdateSprites().
Referenced by tka_SpawnBalls().
Definition at line 303 of file sv_tka.qc.
References checkpvs(), entity(), origin, view_ofs, and WaypointSprite_getviewentity().
| vector autocvar_g_tka_ballcarrier_damage |
| vector autocvar_g_tka_ballcarrier_force |
| int autocvar_g_tka_ballcarrier_maxballs |
Definition at line 9 of file sv_tka.qc.
Referenced by tka_TouchEvent().
| bool autocvar_g_tka_noncarrier_warn |
Definition at line 15 of file sv_tka.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| int autocvar_g_tka_score_bckill |
Definition at line 17 of file sv_tka.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| int autocvar_g_tka_score_killac |
Definition at line 18 of file sv_tka.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| bool autocvar_g_tka_score_team |
Definition at line 19 of file sv_tka.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| int autocvar_g_tka_score_timepoints |
Definition at line 20 of file sv_tka.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and tka_BallThink_Carried().
| int autocvar_g_tkaball_count |
Definition at line 21 of file sv_tka.qc.
Referenced by tka_SpawnBalls().
| float autocvar_g_tkaball_damageforcescale |
Definition at line 22 of file sv_tka.qc.
Referenced by tka_SpawnBalls().
| int autocvar_g_tkaball_effects |
Definition at line 23 of file sv_tka.qc.
Referenced by tka_RespawnBall().
| float autocvar_g_tkaball_respawntime |
Definition at line 24 of file sv_tka.qc.
Referenced by tka_DropEvent(), and tka_RespawnBall().
| int autocvar_g_tkaball_tracking |
Definition at line 26 of file sv_tka.qc.
Referenced by tka_ballcarrier_waypointsprite_visible_for_player(), tka_DropEvent(), and tka_RespawnBall().
| int autocvar_g_tkaball_trail_color |
Definition at line 25 of file sv_tka.qc.
Referenced by tka_SpawnBalls().