Xonotic
|
#include "sv_nexball.qh"
#include <server/client.qh>
#include <server/command/vote.qh>
#include <server/gamelog.qh>
#include <server/world.qh>
#include <common/ent_cs.qh>
#include <common/mapobjects/triggers.qh>
#include <common/mutators/base.qh>
Go to the source code of this file.
Definition at line 716 of file sv_nexball.qc.
References autocvar_g_nexball_viewmodel_scale, EF_FLAME, effects, enemy, func_null(), owner, and scale.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 88 of file sv_nexball.qc.
References DropBall(), owner, and ResetBall().
Referenced by SpawnBall().
Definition at line 337 of file sv_nexball.qc.
References _sound, ATTEN_NORM, autocvar_g_nexball_delay_collect, autocvar_g_nexball_delay_idle, CH_TRIGGER, cnt, football_touch(), GetResource(), GiveBall(), IS_DEAD, IS_PLAYER, lifetime, LogNB(), min(), nb_dropper, nb_droptime, nextthink, noise, RES_HEALTH, SOLID_BSP, time, velocity, and VOL_BASE.
Referenced by DropBall(), and InitBall().
Definition at line 202 of file sv_nexball.qc.
References autocvar_g_nexball_basketball_effects_default, autocvar_g_nexball_delay_idle, ball_scale, basketball_touch(), EF_NOSHADOW, entity(), GameRules_scoring_vip(), min(), MOVETYPE_BOUNCE, NULL, ResetBall(), set_movetype(), setorigin(), setthink, SPRITERULE_DEFAULT, state, time, UNSET_ONGROUND, and WS_READY.
Referenced by ball_restart(), DropOwner(), GoalTouch(), MUTATOR_HOOKFUNCTION(), nb_DropBall(), nexball_setstatus(), W_Nexball_Attack(), and W_Nexball_Attack2().
Definition at line 131 of file sv_nexball.qc.
References DropBall(), entity(), makevectors, owner, UNSET_ONGROUND, and v_forward.
Referenced by GiveBall().
Definition at line 291 of file sv_nexball.qc.
References _sound, ATTEN_NORM, autocvar_g_nexball_delay_idle, autocvar_g_nexball_football_boost_forward, autocvar_g_nexball_football_boost_up, autocvar_g_nexball_football_physics, avelocity, CH_TRIGGER, cnt, GetResource(), IS_PLAYER, IS_VEHICLE, lastground, makevectors, nextthink, noise, pusher, RES_HEALTH, SOLID_BSP, team, time, v_forward, v_up, velocity, and VOL_BASE.
Referenced by basketball_touch(), GoalTouch(), and InitBall().
Definition at line 141 of file sv_nexball.qc.
References autocvar_g_nexball_basketball_delay_hold, autocvar_g_nexball_basketball_delay_hold_forteam, autocvar_g_nexball_basketball_effects_default, DropOwner(), EF_NOSHADOW, entity(), func_null(), GameRules_scoring_vip(), MOVETYPE_NONE, NULL, set_movetype(), setorigin(), setthink, SPRITERULE_DEFAULT, state, time, W_SwitchWeapon(), weaponentities, WEPSET, and WS_READY.
Referenced by basketball_touch(), and W_Nexball_Touch().
Definition at line 359 of file sv_nexball.qc.
References _sound, ATTEN_NONE, autocvar_g_nexball_delay_goal, bprint(), CH_TRIGGER, DropBall(), entity(), EXACTTRIGGER_TOUCH, football_touch(), ftos(), GameRules_scoring_add, GOAL_FAULT, GOAL_OUT, GOAL_TOUCHPLAYER, IS_CLIENT, LogNB(), nb_teams, noise, NumTeams(), OtherTeam(), ResetBall(), setthink, spawnflags, ST_NEXBALL_GOALS, strcat(), team, Team_ColoredFullName, TeamScore_AddToTeam(), time, and VOL_BASE.
Referenced by SpawnGoal().
Definition at line 235 of file sv_nexball.qc.
References _sound, ATTEN_NORM, autocvar_g_nexball_delay_idle, basketball_touch(), CH_TRIGGER, classname, cnt, football_touch(), lifetime, LogNB(), MOVETYPE_BOUNCE, nextthink, noise1, NULL, pusher, ResetBall(), set_movetype(), setthink, team, time, UNSET_ONGROUND, and VOL_BASE.
Referenced by ResetBall(), and SpawnBall().
Definition at line 77 of file sv_nexball.qc.
References autocvar_sv_eventlog, ftos(), GameLogEcho(), NULL, and strcat().
Referenced by basketball_touch(), GoalTouch(), InitBall(), ResetBall(), and W_Nexball_Touch().
MUTATOR_HOOKFUNCTION | ( | nb | , |
ClientDisconnect | |||
) |
Definition at line 749 of file sv_nexball.qc.
References entity(), M_ARGV, and nb_DropBall().
MUTATOR_HOOKFUNCTION | ( | nb | , |
PlayerDies | |||
) |
Definition at line 756 of file sv_nexball.qc.
References entity(), M_ARGV, and nb_DropBall().
MUTATOR_HOOKFUNCTION | ( | nb | , |
MakePlayerObserver | |||
) |
Definition at line 763 of file sv_nexball.qc.
References entity(), M_ARGV, and nb_DropBall().
MUTATOR_HOOKFUNCTION | ( | nb | , |
PlayerPreThink | |||
) |
Definition at line 771 of file sv_nexball.qc.
References autocvar_g_nexball_safepass_holdtime, autocvar_g_nexball_safepass_maxdist, autocvar_g_nexball_viewmodel_offset, ball_customize(), crosshair_trace(), entity(), IS_CLIENT, IS_DEAD, M_ARGV, makevectors, MAX_WEAPONSLOTS, NBM_BASKETBALL, nexball_mode, nexball_setstatus(), NULL, setorigin(), time, trace_ent, v_forward, v_right, v_up, vdist, vector(), W_SwitchWeapon(), and weaponentities.
MUTATOR_HOOKFUNCTION | ( | nb | , |
SpectateCopy | |||
) |
Definition at line 842 of file sv_nexball.qc.
References entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | nb | , |
PlayerSpawn | |||
) |
Definition at line 850 of file sv_nexball.qc.
References entity(), M_ARGV, MAX_WEAPONSLOTS, NBM_BASKETBALL, nexball_mode, weaponentities, and WEPSET.
MUTATOR_HOOKFUNCTION | ( | nb | , |
PlayerPhysics_UpdateStats | |||
) |
Definition at line 869 of file sv_nexball.qc.
References autocvar_g_nexball_basketball_carrier_highspeed, entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | nb | , |
ForbidThrowCurrentWeapon | |||
) |
Definition at line 878 of file sv_nexball.qc.
References entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | nb | , |
ForbidDropCurrentWeapon | |||
) |
MUTATOR_HOOKFUNCTION | ( | nb | , |
FilterItem | |||
) |
Definition at line 894 of file sv_nexball.qc.
References entity(), Item_IsLoot(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | nb | , |
ItemTouch | |||
) |
Definition at line 905 of file sv_nexball.qc.
References entity(), M_ARGV, MUT_ITEMTOUCH_CONTINUE, and MUT_ITEMTOUCH_RETURN.
MUTATOR_HOOKFUNCTION | ( | nb | , |
TeamBalance_CheckAllowedTeams | |||
) |
MUTATOR_HOOKFUNCTION | ( | nb | , |
WantWeapon | |||
) |
MUTATOR_HOOKFUNCTION | ( | nb | , |
DropSpecialItems | |||
) |
Definition at line 928 of file sv_nexball.qc.
References DropBall(), entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | nb | , |
SendWaypoint | |||
) |
Definition at line 938 of file sv_nexball.qc.
References M_ARGV.
Definition at line 515 of file sv_nexball.qc.
References classname, find(), nb_ScoreRules(), nb_spawnteams(), nb_teams, and NULL.
Referenced by nb_Initialize().
Definition at line 743 of file sv_nexball.qc.
References DropBall(), and g_nexball.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 616 of file sv_nexball.qc.
References entity(), owner, and SAME_TEAM.
Referenced by SpawnGoal().
void nb_Initialize | ( | ) |
Definition at line 943 of file sv_nexball.qc.
References autocvar_g_nexball_goalleadlimit, autocvar_g_nexball_goallimit, autocvar_g_nexball_meter_period, autocvar_g_nexball_radar_showallplayers, g_nexball_meter_period, GameRules_limit_lead(), GameRules_limit_score(), GameRules_teams(), InitializeEntity(), nb_delayedinit(), NULL, and rint().
Referenced by REGISTER_MUTATOR().
Definition at line 68 of file sv_nexball.qc.
References GameRules_scoring, SFL_LOWER_IS_BETTER, SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_SECONDARY, and ST_NEXBALL_GOALS.
Referenced by nb_delayedinit().
Definition at line 461 of file sv_nexball.qc.
References entity(), LOG_TRACE, and new_pure.
Referenced by nb_spawnteams().
void nb_spawnteams | ( | ) |
Definition at line 471 of file sv_nexball.qc.
References BIT, classname, entity(), find(), nb_spawnteam(), nb_teams, NULL, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, and NUM_TEAM_4.
Referenced by nb_delayedinit().
Definition at line 95 of file sv_nexball.qc.
References APP_TEAM_NUM, ballcarried, DropBall(), entity(), NULL, ResetBall(), team, and time.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 58 of file sv_nexball.qc.
References classname, entity(), find(), and NULL.
Referenced by GoalTouch().
Definition at line 112 of file sv_nexball.qc.
References BALL_MAXS, BALL_MINS, classname, LOG_INFOF, move_out_of_solid, objerror(), origin, trace_startsolid, vector(), and vtos().
Referenced by SpawnBall().
Definition at line 255 of file sv_nexball.qc.
References APP_TEAM_NUM, autocvar_g_nexball_delay_start, cnt, func_null(), InitBall(), lifetime, LOG_TRACE, LogNB(), max(), MOVETYPE_NOCLIP, MOVETYPE_NONE, nextthink, NULL, origin, set_movetype(), setorigin(), setthink, team, time, vdist, velocity, and vtos().
Referenced by ball_restart(), DropBall(), GoalTouch(), InitBall(), and nexball_setstatus().
Definition at line 527 of file sv_nexball.qc.
References autocvar_g_nexball_delay_start, autocvar_g_nexball_playerclip_collisions, autocvar_g_nexball_sound_bounce, autocvar_g_nexball_trail_color, BALL_MAXS, BALL_MINS, ball_restart(), ball_scale, classname, cvar(), DPCONTENTS_BODY, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, dphitcontentsmask, EF_LOWPRECISION, effects, g_nexball, glow_color, glow_trail, InitBall(), model, MOVETYPE_FLY, nextthink, noise, noise1, noise2, origin, precache_sound(), relocate_nexball(), scale, set_movetype(), setthink, SND, strcat(), and strzone().
Referenced by spawnfunc().
spawnfunc | ( | nexball_team | ) |
spawnfunc | ( | nexball_basketball | ) |
Definition at line 582 of file sv_nexball.qc.
References autocvar_g_nexball_basketball_bouncefactor, autocvar_g_nexball_basketball_bouncestop, autocvar_g_nexball_basketball_effects_default, autocvar_g_nexball_basketball_jumppad, BALL_BASKET, BALL_EFFECTMASK, balls, bouncefactor, bouncestop, effects, NBM_BASKETBALL, nexball_mode, pushable, solid, SOLID_TRIGGER, and SpawnBall().
spawnfunc | ( | nexball_football | ) |
Definition at line 605 of file sv_nexball.qc.
References autocvar_g_nexball_football_bouncefactor, autocvar_g_nexball_football_bouncestop, autocvar_g_nexball_football_jumppad, BALL_FOOT, balls, bouncefactor, bouncestop, NBM_FOOTBALL, nexball_mode, pushable, solid, SOLID_TRIGGER, and SpawnBall().
spawnfunc | ( | nexball_redgoal | ) |
Definition at line 645 of file sv_nexball.qc.
References NUM_TEAM_1, SpawnGoal(), and team.
spawnfunc | ( | nexball_bluegoal | ) |
Definition at line 650 of file sv_nexball.qc.
References NUM_TEAM_2, SpawnGoal(), and team.
spawnfunc | ( | nexball_yellowgoal | ) |
Definition at line 655 of file sv_nexball.qc.
References NUM_TEAM_3, SpawnGoal(), and team.
spawnfunc | ( | nexball_pinkgoal | ) |
Definition at line 660 of file sv_nexball.qc.
References NUM_TEAM_4, SpawnGoal(), and team.
spawnfunc | ( | nexball_fault | ) |
Definition at line 666 of file sv_nexball.qc.
References GOAL_FAULT, noise, SND, SpawnGoal(), strzone(), and team.
spawnfunc | ( | nexball_out | ) |
Definition at line 674 of file sv_nexball.qc.
References GOAL_OUT, noise, SND, SpawnGoal(), strzone(), and team.
spawnfunc | ( | ball | ) |
Definition at line 686 of file sv_nexball.qc.
spawnfunc | ( | ball_football | ) |
Definition at line 690 of file sv_nexball.qc.
spawnfunc | ( | ball_basketball | ) |
Definition at line 694 of file sv_nexball.qc.
spawnfunc | ( | ball_redgoal | ) |
Definition at line 699 of file sv_nexball.qc.
spawnfunc | ( | ball_bluegoal | ) |
Definition at line 703 of file sv_nexball.qc.
spawnfunc | ( | ball_fault | ) |
Definition at line 707 of file sv_nexball.qc.
spawnfunc | ( | ball_bound | ) |
Definition at line 711 of file sv_nexball.qc.
Definition at line 625 of file sv_nexball.qc.
References absmax, absmin, classname, entity(), EXACTTRIGGER_INIT, g_nexball, GOAL_OUT, GoalTouch(), nb_Goal_Customize(), noise, precache_sound(), sprite, team, Team_ColorRGB(), and Team_IsValidTeam().
Referenced by spawnfunc().
float autocvar_g_balance_nexball_primary_animtime |
Definition at line 41 of file sv_nexball.qc.
float autocvar_g_balance_nexball_primary_refire |
Definition at line 42 of file sv_nexball.qc.
float autocvar_g_balance_nexball_primary_speed |
Definition at line 43 of file sv_nexball.qc.
Referenced by W_Nexball_Attack().
float autocvar_g_balance_nexball_secondary_animtime |
Definition at line 44 of file sv_nexball.qc.
float autocvar_g_balance_nexball_secondary_force |
Definition at line 45 of file sv_nexball.qc.
Referenced by W_Nexball_Touch().
float autocvar_g_balance_nexball_secondary_lifetime |
Definition at line 46 of file sv_nexball.qc.
Referenced by W_Nexball_Attack2().
float autocvar_g_balance_nexball_secondary_refire |
Definition at line 47 of file sv_nexball.qc.
float autocvar_g_balance_nexball_secondary_speed |
Definition at line 48 of file sv_nexball.qc.
Referenced by W_Nexball_Attack2().
float autocvar_g_nexball_basketball_bouncefactor |
Definition at line 17 of file sv_nexball.qc.
Referenced by spawnfunc().
float autocvar_g_nexball_basketball_bouncestop |
Definition at line 18 of file sv_nexball.qc.
Referenced by spawnfunc().
float autocvar_g_nexball_basketball_carrier_highspeed |
Definition at line 19 of file sv_nexball.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 16 of file sv_nexball.qc.
Referenced by spawnfunc().
bool autocvar_g_nexball_basketball_meter |
Definition at line 20 of file sv_nexball.qc.
float autocvar_g_nexball_basketball_meter_maxpower |
Definition at line 21 of file sv_nexball.qc.
Referenced by W_Nexball_Attack().
float autocvar_g_nexball_basketball_meter_minpower |
Definition at line 22 of file sv_nexball.qc.
Referenced by W_Nexball_Attack().
float autocvar_g_nexball_delay_collect |
Definition at line 23 of file sv_nexball.qc.
Referenced by basketball_touch().
float autocvar_g_nexball_delay_goal |
Definition at line 24 of file sv_nexball.qc.
Referenced by GoalTouch().
float autocvar_g_nexball_delay_start |
Definition at line 25 of file sv_nexball.qc.
Referenced by ResetBall(), and SpawnBall().
float autocvar_g_nexball_football_bouncefactor |
Definition at line 27 of file sv_nexball.qc.
Referenced by spawnfunc().
float autocvar_g_nexball_football_bouncestop |
Definition at line 28 of file sv_nexball.qc.
Referenced by spawnfunc().
Definition at line 26 of file sv_nexball.qc.
Referenced by spawnfunc().
int autocvar_g_nexball_goalleadlimit |
Definition at line 13 of file sv_nexball.qc.
Referenced by nb_Initialize().
float autocvar_g_nexball_goallimit |
Definition at line 14 of file sv_nexball.qc.
Referenced by nb_Initialize().
Definition at line 32 of file sv_nexball.qc.
Referenced by SpawnBall().
bool autocvar_g_nexball_radar_showallplayers |
Definition at line 29 of file sv_nexball.qc.
Referenced by nb_Initialize().
float autocvar_g_nexball_safepass_holdtime |
Definition at line 36 of file sv_nexball.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_nexball_safepass_maxdist |
Definition at line 35 of file sv_nexball.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_nexball_safepass_turnrate |
Definition at line 34 of file sv_nexball.qc.
Referenced by W_Nexball_Think().
bool autocvar_g_nexball_sound_bounce |
Definition at line 30 of file sv_nexball.qc.
Referenced by SpawnBall().
float autocvar_g_nexball_tackling |
Definition at line 38 of file sv_nexball.qc.
Referenced by W_Nexball_Attack2().
int autocvar_g_nexball_trail_color |
Definition at line 31 of file sv_nexball.qc.
Referenced by SpawnBall().
vector autocvar_g_nexball_viewmodel_offset |
Definition at line 39 of file sv_nexball.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_nexball_viewmodel_scale |
Definition at line 37 of file sv_nexball.qc.
Referenced by ball_customize().
entity ballcarried |
Definition at line 11 of file sv_nexball.qc.
Referenced by nexball_setstatus().
const int NBM_BASKETBALL = 4 |
Definition at line 55 of file sv_nexball.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and spawnfunc().
const int NBM_FOOTBALL = 2 |
Definition at line 54 of file sv_nexball.qc.
Referenced by spawnfunc().
const int NBM_NONE = 0 |
Definition at line 53 of file sv_nexball.qc.
float nexball_mode |
Definition at line 56 of file sv_nexball.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and spawnfunc().
const int ST_NEXBALL_GOALS = 1 |
Definition at line 67 of file sv_nexball.qc.
Referenced by GoalTouch(), and nb_ScoreRules().