|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "impulse.qh"#include <common/gametypes/_mod.qh>#include <common/minigames/sv_minigames.qh>#include <common/mutators/mutator/waypoints/waypointsprites.qh>#include <common/state.qh>#include <common/vehicles/sv_vehicles.qh>#include <common/weapons/_all.qh>#include <server/cheats.qh>#include <server/client.qh>#include <server/clientkill.qh>#include <server/command/common.qh>#include <server/damage.qh>#include <server/mutators/_mod.qh>#include <server/round_handler.qh>#include <server/weapons/selection.qh>#include <server/weapons/throwing.qh>#include <server/weapons/tracing.qh>#include <server/weapons/weaponsystem.qh>Go to the source code of this file.
Macros | |
| #define | _IMPULSE(id) |
| #define | IMPULSE(id) |
| #define | X(i) |
| #define | X(i) |
| #define | X(i, dir) |
| #define | X(id) |
Functions | |
| for (int slot=0;slot< MAX_WEAPONSLOTS;++slot) | |
| if (IS_DEAD(this)) | |
| IMPULSE (use) | |
| IMPULSE (waypoint_clear) | |
| IMPULSE (waypoint_clear_personal) | |
| IMPULSE (waypoint_danger_crosshair) | |
| IMPULSE (waypoint_danger_death) | |
| IMPULSE (waypoint_danger_here) | |
| IMPULSE (waypoint_here_crosshair) | |
| IMPULSE (waypoint_here_death) | |
| IMPULSE (waypoint_here_follow) | |
| IMPULSE (waypoint_here_here) | |
| IMPULSE (waypoint_personal_crosshair) | |
| IMPULSE (waypoint_personal_death) | |
| IMPULSE (waypoint_personal_here) | |
| IMPULSE (weapon_best) | |
| IMPULSE (weapon_drop) | |
| IMPULSE (weapon_last) | |
| IMPULSE (weapon_next_bygroup) | |
| IMPULSE (weapon_next_bypriority) | |
| IMPULSE (weapon_prev_bygroup) | |
| IMPULSE (weapon_prev_byid) | |
| IMPULSE (weapon_prev_bypriority) | |
| IMPULSE (weapon_reload) | |
| void | ImpulseCommands (entity this) |
| prev prev prev prev prev best best best best best next next next next next void | weapon_byid_handle (entity this, int number, int imp) |
| void | weapon_group_handle (entity this, int number, int imp) |
| Impulse map: | |
| X (0) X(1) X(2) X(3) X(4) X(5) X(6) X(7) X(8) X(9) X(10) X(11) X(12) X(13) X(14) X(15) X(16) X(17) X(18) X(19) X(20) X(21) X(22) X(23) IMPULSE(weapon_next_byid) | |
| prev prev prev prev prev | X (0, best) X(1 |
| prev prev prev prev prev best best best best best | X (0, next) X(1 |
| X (0, prev) X(1 | |
| X (1) X(2) X(3) X(4) X(5) X(6) X(7) X(8) X(9) X(0) void weapon_priority_handle(entity this | |
| prev prev prev prev prev best | X (2, best) X(3 |
| prev prev prev prev prev best best best best best next | X (2, next) X(3 |
| prev | X (2, prev) X(3 |
| prev prev prev prev prev best best | X (4, best) X(5 |
| prev prev prev prev prev best best best best best next next | X (4, next) X(5 |
| prev prev | X (4, prev) X(5 |
| prev prev prev prev prev best best best | X (6, best) X(7 |
| prev prev prev prev prev best best best best best next next next | X (6, next) X(7 |
| prev prev prev | X (6, prev) X(7 |
| prev prev prev prev prev best best best best | X (8, best) X(9 |
| prev prev prev prev prev best best best best best next next next next | X (8, next) X(9 |
| prev prev prev prev | X (8, prev) X(9 |
Variables | |
| int | dir |
| int int int | imp |
| int int | number |
| entity | vehicle |
| #define _IMPULSE | ( | id | ) |
Definition at line 24 of file impulse.qc.
| #define IMPULSE | ( | id | ) |
Definition at line 23 of file impulse.qc.
| #define X | ( | i | ) |
Definition at line 70 of file impulse.qc.
Referenced by ImpulseCommands().
| #define X | ( | i | ) |
Definition at line 70 of file impulse.qc.
| #define X | ( | i, | |
| dir ) |
Definition at line 70 of file impulse.qc.
| #define X | ( | id | ) |
Definition at line 70 of file impulse.qc.
| for | ( | ) |
Definition at line 97 of file impulse.qc.
References autocvar_g_weaponswitch_debug, CS_CVAR, dir, MAX_WEAPONSLOTS, number, W_CycleWeapon(), and weaponentities.
Definition at line 92 of file impulse.qc.
| IMPULSE | ( | use | ) |
| IMPULSE | ( | waypoint_clear | ) |
Definition at line 510 of file impulse.qc.
References autocvar_g_allow_checkpoints, ClientKill, g_cts, g_race, NULL, personal, sprint(), and WaypointSprite_ClearOwned().
| IMPULSE | ( | waypoint_clear_personal | ) |
Definition at line 496 of file impulse.qc.
References autocvar_g_allow_checkpoints, ClientKill, g_cts, g_race, NULL, personal, sprint(), and WaypointSprite_ClearPersonal().
| IMPULSE | ( | waypoint_danger_crosshair | ) |
Definition at line 480 of file impulse.qc.
References entity(), sprint(), trace_endpos, WarpZone_crosshair_trace(), WaypointSprite_DeployFixed(), and WaypointSprite_Ping().
| IMPULSE | ( | waypoint_danger_death | ) |
Definition at line 488 of file impulse.qc.
References death_origin, entity(), sprint(), WaypointSprite_DeployFixed(), and WaypointSprite_Ping().
| IMPULSE | ( | waypoint_danger_here | ) |
Definition at line 473 of file impulse.qc.
References entity(), origin, sprint(), WaypointSprite_DeployFixed(), and WaypointSprite_Ping().
| IMPULSE | ( | waypoint_here_crosshair | ) |
Definition at line 457 of file impulse.qc.
References entity(), sprint(), trace_endpos, WarpZone_crosshair_trace_plusvisibletriggers(), WaypointSprite_DeployFixed(), and WaypointSprite_Ping().
| IMPULSE | ( | waypoint_here_death | ) |
Definition at line 465 of file impulse.qc.
References death_origin, entity(), sprint(), WaypointSprite_DeployFixed(), and WaypointSprite_Ping().
| IMPULSE | ( | waypoint_here_follow | ) |
Definition at line 437 of file impulse.qc.
References entity(), IS_DEAD, MUTATOR_CALLHOOK, sprint(), teamplay, WaypointSprite_Attach(), waypointsprite_attachedforcarrier, WaypointSprite_HelpMePing(), and WaypointSprite_Ping().
| IMPULSE | ( | waypoint_here_here | ) |
Definition at line 450 of file impulse.qc.
References entity(), origin, sprint(), WaypointSprite_DeployFixed(), and WaypointSprite_Ping().
| IMPULSE | ( | waypoint_personal_crosshair | ) |
Definition at line 421 of file impulse.qc.
References entity(), sprint(), trace_endpos, WarpZone_crosshair_trace(), WaypointSprite_DeployPersonal(), and WaypointSprite_Ping().
| IMPULSE | ( | waypoint_personal_death | ) |
Definition at line 429 of file impulse.qc.
References death_origin, entity(), sprint(), WaypointSprite_DeployPersonal(), and WaypointSprite_Ping().
| IMPULSE | ( | waypoint_personal_here | ) |
Definition at line 414 of file impulse.qc.
References entity(), origin, sprint(), WaypointSprite_DeployPersonal(), and WaypointSprite_Ping().
| IMPULSE | ( | weapon_best | ) |
Definition at line 320 of file impulse.qc.
References autocvar_g_weaponswitch_debug, IS_DEAD, MAX_WEAPONSLOTS, vehicle, w_getbestweapon, W_SwitchWeapon(), and weaponentities.
| IMPULSE | ( | weapon_drop | ) |
Definition at line 334 of file impulse.qc.
References autocvar_g_weaponswitch_debug, IS_DEAD, MAX_WEAPONSLOTS, movedir, v_forward, v_right, vector, vehicle, velocity, W_CalculateProjectileVelocity(), W_DualWielding(), W_ThrowWeapon(), and weaponentities.
| IMPULSE | ( | weapon_last | ) |
Definition at line 306 of file impulse.qc.
References autocvar_g_weaponswitch_debug, IS_DEAD, MAX_WEAPONSLOTS, vehicle, W_LastWeapon(), and weaponentities.
| IMPULSE | ( | weapon_next_bygroup | ) |
Definition at line 234 of file impulse.qc.
References autocvar_g_weaponswitch_debug, impulse, IS_DEAD, MAX_WEAPONSLOTS, vehicle, W_NextWeapon(), and weaponentities.
| IMPULSE | ( | weapon_next_bypriority | ) |
Definition at line 270 of file impulse.qc.
References autocvar_g_weaponswitch_debug, impulse, IS_DEAD, MAX_WEAPONSLOTS, vehicle, W_NextWeapon(), and weaponentities.
| IMPULSE | ( | weapon_prev_bygroup | ) |
Definition at line 252 of file impulse.qc.
References autocvar_g_weaponswitch_debug, impulse, IS_DEAD, MAX_WEAPONSLOTS, vehicle, W_PreviousWeapon(), and weaponentities.
| IMPULSE | ( | weapon_prev_byid | ) |
Definition at line 216 of file impulse.qc.
References autocvar_g_weaponswitch_debug, impulse, IS_DEAD, MAX_WEAPONSLOTS, vehicle, W_PreviousWeapon(), and weaponentities.
| IMPULSE | ( | weapon_prev_bypriority | ) |
Definition at line 288 of file impulse.qc.
References autocvar_g_weaponswitch_debug, impulse, IS_DEAD, MAX_WEAPONSLOTS, vehicle, W_PreviousWeapon(), and weaponentities.
| IMPULSE | ( | weapon_reload | ) |
Definition at line 353 of file impulse.qc.
References entity(), IS_DEAD, m_weapon, MAX_WEAPONSLOTS, vehicle, weaponentities, weaponLocked(), and Weapon::wr_reload().
Definition at line 371 of file impulse.qc.
References CheatImpulse(), CS(), entity(), FOREACH, game_stopped, imp, MinigameImpulse(), round_handler_IsActive, round_handler_IsRoundStarted, TIMEOUT_ACTIVE, timeout_status, use, vehicle_impulse(), and X.
Referenced by ctf_FlagThink(), PlayerPostThink(), and PutPlayerInServer().
| prev prev prev prev prev best best best best best next next next next next void weapon_byid_handle | ( | entity | this, |
| int | number, | ||
| int | imp ) |
Definition at line 150 of file impulse.qc.
References autocvar_g_weaponswitch_debug, entity(), imp, impulse, IS_DEAD, MAX_WEAPONSLOTS, number, vehicle, W_SwitchWeapon_TryOthers(), Weapon_from_impulse(), and weaponentities.
Impulse map:
0 reserved (no input)
99: loaded
140: moving clone 141: ctf speedrun 142: fixed clone 143: emergency teleport 148: unfairly eliminate
TODO: 200 to 209: prev weapon shortcuts 210 to 219: best weapon shortcuts 220 to 229: next weapon shortcuts 230 to 253: individual weapons (up to 24)
Definition at line 54 of file impulse.qc.
References autocvar_g_weaponswitch_debug, entity(), imp, impulse, IS_DEAD, MAX_WEAPONSLOTS, number, W_NextWeaponOnImpulse(), and weaponentities.
| X | ( | 0 | ) |
Definition at line 172 of file impulse.qc.
References autocvar_g_weaponswitch_debug, impulse, IS_DEAD, MAX_WEAPONSLOTS, vehicle, W_NextWeapon(), weaponentities, and X.
| X | ( | 1 | ) |
References X.
| int dir |
Definition at line 89 of file impulse.qc.
Referenced by _Movetype_FlyMove(), _Movetype_NudgeOutOfSolid_PivotIsKnownGood(), bd_controller_send(), bd_do_fill(), bd_do_move(), bd_fix_dir(), bd_load_piece(), bd_move(), bd_move_dozer(), beamsweep(), CSQC_Demo_Camera(), findtrajectorywithleading(), fireBullet(), fireBullet_antilag(), fireBullet_falloff(), FireImoBeam(), FireRailgunBullet(), for(), GrapplingHookThink(), havocbot_ai(), havocbot_bunnyhop(), havocbot_moveto(), havocbot_movetogoal(), M_Mage_Attack_Spike(), nades_CheckThrow(), ons_camSetup(), Portal_SpawnInPortalAtTrace(), Portal_SpawnOutPortalAtTrace(), Porto_Draw(), racer_fire_rocket(), reflect(), REGISTER_WEAPON(), SOUND(), SOUND(), steerlib_beamsteer(), tracebox_inverted(), Violence_GibSplash_At(), void(), void(), void(), void(), W_CalculateSpread(), W_CycleWeapon(), W_Fireball_Explode(), W_GetCycleWeapon(), W_Seeker_Tag_Touch(), and W_SetupProjVelocity_Explicit().
Definition at line 89 of file impulse.qc.
Referenced by CheatImpulse(), CheatsAllowed(), if(), Impulse_Send(), ImpulseCommands(), KeyBinds_BuildList(), MapVote_InputEvent(), MapVote_MoveDown(), MapVote_MoveLeft(), MapVote_MoveRight(), MapVote_MoveUp(), MinigameImpulse(), STATIC_INIT(), vehicle_impulse(), vehicle_initialize(), W_GetCycleWeapon(), W_NextWeaponOnImpulse(), weapon_byid_handle(), Weapon_from_impulse(), and weapon_group_handle().
Definition at line 89 of file impulse.qc.
Referenced by bd_controller_send(), bd_controller_update(), bd_do_fill(), bd_editor_place(), bd_fill_recurse(), bd_load_piece(), bd_move_dozer(), bd_save_controller_piece(), bd_server_event(), bd_unfill_recurse(), bd_valid_tile(), bot_aim(), c4_valid_tile(), c4_winning_piece(), find_bot_by_number(), for(), ftos_decimals(), ftos_decimals_percentage(), ftos_mindecimals(), getresolution(), minigame_relative_tile(), minigame_tile_buildname(), minigame_tile_name(), nmm_spawn_tile_square(), nmm_tile_build_hmill(), nmm_tile_build_vmill(), pp_valid_move(), pp_valid_tile(), pp_winning_piece(), ps_move(), ps_tile_blacklisted(), ps_valid_tile(), ps_winning_piece(), ShowRespawnCountdown(), Team_SetNumberOfAlivePlayers(), Team_SetNumberOfOwnedItems(), ttt_valid_tile(), ttt_winning_piece(), void(), weapon_byid_handle(), and weapon_group_handle().
| entity vehicle |
Definition at line 21 of file impulse.qc.