|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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 717 of file sv_nexball.qc.
References autocvar_g_nexball_viewmodel_scale, EF_FLAME, effects, enemy, entity(), func_null(), owner, scale, and setcefc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 88 of file sv_nexball.qc.
References DropBall(), entity(), 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, entity(), football_touch(), GetResource(), GiveBall(), IS_DEAD, IS_PLAYER, lifetime, LogNB(), min(), nb_dropper, nb_droptime, nextthink, noise, SOLID_BSP, time, toucher, 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, org, ResetBall(), set_movetype(), setthink, settouch, SPRITERULE_DEFAULT, STAT, state, time, UNSET_ONGROUND, vector, waypointsprite_attachedforcarrier, WaypointSprite_Kill(), WaypointSprite_Spawn(), WaypointSprite_UpdateRule(), 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, entity(), GetResource(), IS_PLAYER, IS_VEHICLE, lastground, makevectors, nextthink, noise, pusher, SOLID_BSP, team, time, toucher, 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, m_switchweapon, m_weapon, MOVETYPE_NONE, NULL, set_movetype(), setthink, settouch, SPRITERULE_DEFAULT, STAT, state, time, W_SwitchWeapon(), WaypointSprite_AttachCarrier(), WaypointSprite_Kill(), WaypointSprite_UpdateRule(), weaponentities, WEPSET, Weapon::wr_resetplayer(), and WS_READY.
Referenced by basketball_touch(), and W_Nexball_Touch().
Definition at line 360 of file sv_nexball.qc.
References _sound, ATTEN_NONE, autocvar_g_nexball_delay_goal, bprint(), CH_TRIGGER, DropBall(), entity(), EXACTTRIGGER_TOUCH, football_touch(), ftos(), game_stopped, GameRules_scoring_add, GOAL_FAULT, GOAL_OUT, GOAL_TOUCHPLAYER, IS_CLIENT, LogNB(), nb_teams, noise, NumTeams(), OtherTeam(), ResetBall(), setthink, settouch, spawnflags, ST_NEXBALL_GOALS, strcat(), team, Team_ColoredFullName, TeamScore_AddToTeam(), time, toucher, VOL_BASE, and WaypointSprite_Ping().
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, entity(), football_touch(), game_stopped, lifetime, LogNB(), MOVETYPE_BOUNCE, nextthink, noise1, NULL, pusher, ResetBall(), set_movetype(), setthink, settouch, team, time, UNSET_ONGROUND, VOL_BASE, waypointsprite_attachedforcarrier, and WaypointSprite_Ping().
Referenced by ResetBall(), and SpawnBall().
Definition at line 77 of file sv_nexball.qc.
References autocvar_sv_eventlog, entity(), ftos(), GameLogEcho(), NULL, and strcat().
Referenced by basketball_touch(), GoalTouch(), InitBall(), ResetBall(), and W_Nexball_Touch().
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| ClientDisconnect | ) |
Definition at line 750 of file sv_nexball.qc.
References ClientDisconnect, entity(), M_ARGV, and nb_DropBall().
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| DropSpecialItems | ) |
Definition at line 929 of file sv_nexball.qc.
References DropBall(), entity(), frag_target, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| FilterItem | ) |
Definition at line 895 of file sv_nexball.qc.
References entity(), ITEM_IS_LOOT, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| ForbidDropCurrentWeapon | ) |
Definition at line 887 of file sv_nexball.qc.
References M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| ForbidThrowCurrentWeapon | ) |
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| ItemTouch | ) |
Definition at line 906 of file sv_nexball.qc.
References entity(), M_ARGV, MUT_ITEMTOUCH_CONTINUE, MUT_ITEMTOUCH_RETURN, and toucher.
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| MakePlayerObserver | ) |
Definition at line 764 of file sv_nexball.qc.
References entity(), M_ARGV, and nb_DropBall().
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| PlayerDies | ) |
Definition at line 757 of file sv_nexball.qc.
References entity(), frag_target, M_ARGV, and nb_DropBall().
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| PlayerPhysics_UpdateStats | ) |
Definition at line 870 of file sv_nexball.qc.
References autocvar_g_nexball_basketball_carrier_highspeed, entity(), M_ARGV, and STAT.
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| PlayerPreThink | ) |
Definition at line 772 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, m_switchweapon, makevectors, MAX_WEAPONSLOTS, NBM_BASKETBALL, nexball_mode, nexball_setstatus(), NULL, org, PlayerPreThink, setcefc, STAT, time, trace_ent, v_forward, v_right, v_up, vdist, vector, W_SwitchWeapon(), weaponentities, and Weapon::wr_resetplayer().
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| PlayerSpawn | ) |
Definition at line 851 of file sv_nexball.qc.
References entity(), M_ARGV, MAX_WEAPONSLOTS, NBM_BASKETBALL, nexball_mode, STAT, weaponentities, and WEPSET.
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| SendWaypoint | ) |
Definition at line 939 of file sv_nexball.qc.
References M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| SpectateCopy | ) |
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| TeamBalance_CheckAllowedTeams | ) |
Definition at line 917 of file sv_nexball.qc.
References M_ARGV, and TeamBalance_CheckAllowedTeams().
| MUTATOR_HOOKFUNCTION | ( | nb | , |
| WantWeapon | ) |
Definition at line 923 of file sv_nexball.qc.
References M_ARGV.
Definition at line 516 of file sv_nexball.qc.
References classname, entity(), find(), nb_ScoreRules(), nb_spawnteams(), nb_teams, and NULL.
Referenced by nb_Initialize().
Definition at line 744 of file sv_nexball.qc.
References DropBall(), entity(), and g_nexball.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 617 of file sv_nexball.qc.
References entity(), owner, SAME_TEAM, and WaypointSprite_getviewentity().
Referenced by SpawnGoal().
| void nb_Initialize | ( | ) |
Definition at line 944 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(), INITPRIO_GAMETYPE, nb_delayedinit(), NULL, radar_showenemies, 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, ST_NEXBALL_GOALS, and teams.
Referenced by nb_delayedinit().
Definition at line 462 of file sv_nexball.qc.
References entity(), LOG_TRACE, and new_pure.
Referenced by nb_spawnteams().
| void nb_spawnteams | ( | ) |
Definition at line 472 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(), NB_CARRYING, NULL, ResetBall(), Send_Notification(), STAT, team, and time.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 112 of file sv_nexball.qc.
References BALL_MAXS, BALL_MINS, classname, entity(), 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, entity(), func_null(), game_starttime, InitBall(), lifetime, LOG_TRACE, LogNB(), max(), MOVETYPE_NOCLIP, MOVETYPE_NONE, nextthink, NULL, origin, Send_Notification(), set_movetype(), setthink, settouch, spawnorigin, team, time, vdist, velocity, and vtos().
Referenced by ball_restart(), DropBall(), GoalTouch(), InitBall(), and nexball_setstatus().
Definition at line 528 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, entity(), g_nexball, game_starttime, glow_color, glow_trail, InitBall(), model, MOVETYPE_FLY, nextthink, noise, noise1, noise2, origin, precache_sound(), relocate_nexball(), scale, set_movetype(), setthink, SND, spawnorigin, strcat(), strzone(), and WaypointSprite_AttachCarrier().
Referenced by spawnfunc(), and spawnfunc().
| spawnfunc | ( | ball | ) |
Definition at line 687 of file sv_nexball.qc.
| spawnfunc | ( | ball_basketball | ) |
Definition at line 695 of file sv_nexball.qc.
| spawnfunc | ( | ball_bluegoal | ) |
Definition at line 704 of file sv_nexball.qc.
| spawnfunc | ( | ball_bound | ) |
Definition at line 712 of file sv_nexball.qc.
| spawnfunc | ( | ball_fault | ) |
Definition at line 708 of file sv_nexball.qc.
| spawnfunc | ( | ball_football | ) |
Definition at line 691 of file sv_nexball.qc.
| spawnfunc | ( | ball_redgoal | ) |
Definition at line 700 of file sv_nexball.qc.
| spawnfunc | ( | nexball_basketball | ) |
Definition at line 583 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_bluegoal | ) |
Definition at line 651 of file sv_nexball.qc.
References NUM_TEAM_2, SpawnGoal(), and team.
| spawnfunc | ( | nexball_fault | ) |
Definition at line 667 of file sv_nexball.qc.
References GOAL_FAULT, noise, SND, SpawnGoal(), strzone(), and team.
| spawnfunc | ( | nexball_football | ) |
Definition at line 606 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_out | ) |
| spawnfunc | ( | nexball_pinkgoal | ) |
Definition at line 661 of file sv_nexball.qc.
References NUM_TEAM_4, SpawnGoal(), and team.
| spawnfunc | ( | nexball_redgoal | ) |
Definition at line 646 of file sv_nexball.qc.
References NUM_TEAM_1, SpawnGoal(), and team.
| spawnfunc | ( | nexball_team | ) |
| spawnfunc | ( | nexball_yellowgoal | ) |
Definition at line 656 of file sv_nexball.qc.
References NUM_TEAM_3, SpawnGoal(), and team.
Definition at line 626 of file sv_nexball.qc.
References absmax, absmin, classname, entity(), EXACTTRIGGER_INIT, g_nexball, GOAL_OUT, GoalTouch(), nb_Goal_Customize(), noise, precache_sound(), setcefc, settouch, sprite, team, Team_ColorRGB(), Team_IsValidTeam(), and WaypointSprite_SpawnFixed().
Referenced by spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), and 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.
| const int NBM_BASKETBALL = 4 |
Definition at line 55 of file sv_nexball.qc.
Referenced by MUTATOR_HOOKFUNCTION(), 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(), MUTATOR_HOOKFUNCTION(), spawnfunc(), and spawnfunc().
| const int ST_NEXBALL_GOALS = 1 |
Definition at line 67 of file sv_nexball.qc.
Referenced by GoalTouch(), and nb_ScoreRules().