|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "player.qh"#include <common/mapobjects/_mod.qh>#include <common/viewloc.qh>#include <common/mapobjects/defs.qh>#include <common/mapobjects/trigger/viewloc.qh>#include <server/client.qh>Go to the source code of this file.
Macros | |
| #define | JETPACK_JUMP(s) |
Variables | |
| float | jetpack_stopped |
| string | specialcommand = "xwxwxsxsxaxdxaxdx1x " |
| float | specialcommand_pos |
| #define JETPACK_JUMP | ( | s | ) |
Definition at line 520 of file player.qc.
Referenced by CheckPlayerJump().
Definition at line 261 of file player.qc.
References bound(), copysign(), and fabs().
Referenced by Physics_UpdateStats(), and PM_Accelerate().
Definition at line 526 of file player.qc.
References boolean, CheckWaterJump(), entity(), IT_UNLIMITED_AMMO, IT_USING_JETPACK, ITEMS_STAT, JETPACK_JUMP, jetpack_stopped, M_ARGV, PHYS_AMMO_FUEL, PHYS_FROZEN, PHYS_INPUT_BUTTON_JETPACK, PHYS_INPUT_BUTTON_JUMP, PHYS_JETPACK_FUEL, PlayerJump(), Send_Notification(), UNSET_JUMP_HELD, waterlevel, and WATERLEVEL_SWIMMING.
Referenced by sys_phys_update().
Definition at line 492 of file player.qc.
References entity(), FL_WATERJUMP, flags, makevectors, movedir, normalize(), origin, SET_JUMP_HELD, teleport_time, time, trace_fraction, trace_plane_normal, v_angle, v_forward, and vector.
Referenced by CheckPlayerJump().
Definition at line 225 of file player.qc.
References BIT, bound(), entity(), fabs(), IsMoveInDirection(), max(), movement, normalize(), PHYS_AIRCONTROL, PHYS_AIRCONTROL_FLAGS, PHYS_AIRCONTROL_PENALTY, PHYS_AIRCONTROL_POWER, PHYS_CS, PHYS_MAXAIRSPEED, sqrt(), vector, velocity, and vlen().
Referenced by sys_phys_simulate().
Definition at line 154 of file player.qc.
References fabs().
Referenced by HUD_StrafeHUD(), StrafeHUD_DetermineHudAngle(), and sys_phys_simulate().
Definition at line 836 of file player.qc.
References entity(), IS_ONGROUND, maxs, mins, MOVE_NORMAL, origin, trace_fraction, waterlevel, and WATERLEVEL_SWIMMING.
Referenced by Damage(), MUTATOR_HOOKABLE(), sys_phys_update(), W_Devastator_Explode(), W_Electro_Explode(), W_MineLayer_Explode(), W_Mortar_Grenade_Explode(), W_Mortar_Grenade_Explode2(), W_OverkillNex_Attack(), W_RocketMinsta_Laser_Explode(), W_Vaporizer_Attack(), and W_Vortex_Attack().
Definition at line 145 of file player.qc.
References ang, fabs(), RAD2DEG, remainder(), and vector.
Referenced by CPM_PM_Aircontrol(), and sys_phys_simulate().
Definition at line 23 of file player.qc.
References autocvar_g_physics_clientselect, autocvar_g_physics_clientselect_default, CS_CVAR, cvar(), CVAR_TYPEFLAG_EXISTS, entity(), IS_REAL_CLIENT, Physics_Valid(), and strcat().
Referenced by Physics_UpdateStats().
Definition at line 44 of file player.qc.
References ACTIVE_ACTIVE, AdjustAirAccelQW(), autocvar_g_movement_highspeed, autocvar_g_movement_highspeed_q3_compat, autocvar_sv_accelerate, autocvar_sv_airaccel_qw, autocvar_sv_airaccel_qw_stretchfactor, autocvar_sv_airaccel_sideways_friction, autocvar_sv_airaccelerate, autocvar_sv_aircontrol, autocvar_sv_aircontrol_flags, autocvar_sv_aircontrol_penalty, autocvar_sv_aircontrol_power, autocvar_sv_airspeedlimit_nonqw, autocvar_sv_airstopaccelerate, autocvar_sv_airstopaccelerate_full, autocvar_sv_airstrafeaccel_qw, autocvar_sv_airstrafeaccelerate, autocvar_sv_friction, autocvar_sv_jumpvelocity, autocvar_sv_jumpvelocity_crouch, autocvar_sv_mapformat_is_quake2, autocvar_sv_mapformat_is_quake3, autocvar_sv_maxairspeed, autocvar_sv_maxairstrafespeed, autocvar_sv_maxspeed, autocvar_sv_player_crouch_maxs, autocvar_sv_player_crouch_mins, autocvar_sv_player_crouch_viewoffset, autocvar_sv_player_maxs, autocvar_sv_player_mins, autocvar_sv_player_viewoffset, autocvar_sv_q3compat_changehitbox, autocvar_sv_slickaccelerate, autocvar_sv_stopspeed, autocvar_sv_track_canjump, autocvar_sv_warsowbunny_accel, autocvar_sv_warsowbunny_airforwardaccel, autocvar_sv_warsowbunny_backtosideratio, autocvar_sv_warsowbunny_topspeed, autocvar_sv_warsowbunny_turnaccel, entity(), MUTATOR_CALLHOOK, PHYS_HIGHSPEED, Physics_ClientOption(), q3compat, STAT, and swampslug.
Referenced by ClientConnect(), and sys_phys_fix().
Definition at line 18 of file player.qc.
References autocvar_g_physics_clientselect_options, and strhasword.
Referenced by ClientCommand_physics(), and Physics_ClientOption().
Definition at line 378 of file player.qc.
References ANIMACTION_JUMP, animdecide_setaction(), autocvar_g_jump_grunt, autocvar_speedmeter, bound(), CH_PLAYER, entity(), ftos(), IS_DUCKED, IS_JUMP_HELD, IS_ONGROUND, jumpheight_max, jumpheight_min, jumppadcount, lastground, LOG_TRACE, M_ARGV, maxs, mins, MOVE_NORMAL, MUTATOR_CALLHOOK, origin, PHYS_CL_TRACK_CANJUMP, PHYS_FRICTION_ONLAND, PHYS_FROZEN, PHYS_INPUT_BUTTON_CHAT, PHYS_INPUT_BUTTON_MINIGAME, PHYS_JUMPSPEEDCAP_DISABLE_ONRAMPS, PHYS_JUMPSPEEDCAP_MAX, PHYS_JUMPSPEEDCAP_MIN, PHYS_JUMPVELOCITY, PHYS_JUMPVELOCITY_CROUCH, PHYS_MAXSPEED, PHYS_TRACK_CANJUMP, player_blocked, PlayerJump(), PlayerSound, SET_JUMP_HELD, stof(), time, trace_fraction, UNSET_ONGROUND, UNSET_ONSLICK, velocity, viewloc, vlen(), VOICETYPE_PLAYERSOUND, VOL_BASE, vtos(), WAS_ONGROUND, WAS_ONSLICK, waterlevel, and WATERLEVEL_SWIMMING.
Referenced by CheckPlayerJump(), MUTATOR_HOOKABLE(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and PlayerJump().
| void PM_Accelerate | ( | entity | this, |
| float | dt, | ||
| vector | wishdir, | ||
| float | wishspeed, | ||
| float | wishspeed0, | ||
| float | accel, | ||
| float | accelqw, | ||
| float | stretchfactor, | ||
| float | sidefric, | ||
| float | speedlimit ) |
Definition at line 271 of file player.qc.
References AdjustAirAccelQW(), bound(), entity(), fabs(), GAMEPLAYFIX_Q2AIRACCELERATE, max(), sqrt(), vec2, vector, velocity, and vlen().
Referenced by sys_phys_simulate().
Definition at line 335 of file player.qc.
References entity(), max(), min(), normalize(), PHYS_MAXSPEED, PHYS_WARSOWBUNNY_ACCEL, PHYS_WARSOWBUNNY_AIRFORWARDACCEL, PHYS_WARSOWBUNNY_BACKTOSIDERATIO, PHYS_WARSOWBUNNY_TOPSPEED, PHYS_WARSOWBUNNY_TURNACCEL, vector, velocity, and vlen().
Referenced by sys_phys_simulate().
Definition at line 715 of file player.qc.
References disableclientprediction, entity(), PHYS_CS, PHYS_INPUT_BUTTON_CHAT, PHYS_INPUT_BUTTON_MINIGAME, and player_blocked.
Referenced by sys_phys_update().
Definition at line 641 of file player.qc.
References bound(), entity(), IS_CLIENT, movement, PHYS_CS, PHYS_DODGING_FROZEN, and PHYS_FROZEN.
Referenced by sys_phys_update().
Definition at line 656 of file player.qc.
References CH_PLAYER, entity(), GlobalSound, hook, IS_DUCKED, ladder_entity, MAX_WEAPONSLOTS, maxs, mins, MOVE_NOMONSTERS, origin, Q3SURFACEFLAG_METALSTEPS, Q3SURFACEFLAG_NOSTEPS, random(), time, trace_dphitq3surfaceflags, VOICETYPE_PLAYERSOUND, VOL_BASE, VOL_MUFFLED, wasFlying, waterlevel, WATERLEVEL_SWIMMING, and weaponentities.
Referenced by sys_phys_update().
Definition at line 617 of file player.qc.
References entity(), normalize(), punchangle, punchvector, and vlen().
Referenced by sys_phys_monitor().
Definition at line 702 of file player.qc.
References entity(), IS_ONGROUND, maxs, mins, MOVE_NOMONSTERS, origin, Q3SURFACEFLAG_SLICK, SET_ONSLICK, trace_dphitq3surfaceflags, and UNSET_ONSLICK.
Referenced by sys_phys_update().
Definition at line 584 of file player.qc.
References BIT, CS(), entity(), SpecialCommand(), specialcommand, specialcommand_pos, strlen, and substring().
Referenced by sys_phys_override().
Definition at line 161 of file player.qc.
References _Movetype_CheckWater(), entity(), IS_DEAD, IS_DUCKED, IS_PLAYER, M_ARGV, MAX_WEAPONSLOTS, MOVE_NORMAL, movement, MUTATOR_CALLHOOK, origin, PHYS_CS, PHYS_FROZEN, PHYS_INPUT_BUTTON_CROUCH, PHYS_INVEHICLE, SET_DUCKED, STAT, trace_startsolid, UNSET_DUCKED, view_ofs, viewloc, VIEWLOC_FREEMOVE, viewmodels, and weaponentities.
Referenced by sys_phys_fix().
Definition at line 681 of file player.qc.
References autocvar_g_footsteps, autocvar_sv_maxspeed, CH_PLAYER, entity(), GlobalSound, IS_DUCKED, lastground, maxs, mins, MOVE_NOMONSTERS, origin, Q3SURFACEFLAG_METALSTEPS, Q3SURFACEFLAG_NOSTEPS, random(), time, trace_dphitq3surfaceflags, vdist, velocity, VOICETYPE_PLAYERSOUND, and VOL_BASE.
Referenced by sys_phys_update().
Definition at line 727 of file player.qc.
References autocvar_g_balance_pause_fuel_regen, best, bound(), entity(), IT_UNLIMITED_AMMO, IT_USING_JETPACK, ITEMS_STAT, makevectors, max(), min(), normalize(), pauseregen_finished, PHYS_AMMO_FUEL, PHYS_CS, PHYS_GRAVITY, PHYS_INPUT_BUTTON_CROUCH, PHYS_JETPACK_ACCEL_SIDE, PHYS_JETPACK_ACCEL_UP, PHYS_JETPACK_ANTIGRAVITY, PHYS_JETPACK_FUEL, PHYS_JETPACK_MAXSPEED_SIDE, PHYS_JETPACK_MAXSPEED_UP, PHYS_JETPACK_REVERSE_THRUST, PHYS_MAXAIRSPEED, sqrt(), TakeResource(), time, UNSET_ONGROUND, v_angle, v_forward, v_right, vector, velocity, and vlen().
Referenced by sys_phys_update().
| REPLICATE | ( | cvar_cl_jetpack_jump | , |
| bool | , | ||
| "cl_jetpack_jump" | ) |
| REPLICATE | ( | cvar_cl_movement_track_canjump | , |
| bool | , | ||
| "cl_movement_track_canjump" | ) |
| REPLICATE | ( | cvar_cl_physics | , |
| string | , | ||
| "cl_physics" | ) |
Definition at line 574 of file player.qc.
References autocvar_sv_cheats, CheatImpulse(), entity(), LOG_INFO, and maycheat.
Referenced by PM_check_specialcommand().
Definition at line 852 of file player.qc.
References CS(), csqcmodel_modelflags, entity(), frametime, intermission, IS_DEAD, IS_REAL_CLIENT, IT_USING_JETPACK, ITEMS_STAT, last_pushed, MF_ROCKET, NULL, PHYS_INPUT_TIMELENGTH, PM_UpdateButtons(), sys_phys_update(), and WarpZoneLib_ExactTrigger_Touch().
Definition at line 10 of file physics.qc.
References absmax, absmin, angles, CheckPlayerJump(), com_phys_acc_rate, com_phys_acc_rate_air, com_phys_acc_rate_air_stop, com_phys_acc_rate_air_strafe, com_phys_air, com_phys_friction, com_phys_friction_air, com_phys_gravity, com_phys_ground, com_phys_ladder, com_phys_vel_2d, com_phys_vel_max, com_phys_vel_max_air, com_phys_vel_max_air_strafe, com_phys_water, CONTENT_LAVA, CONTENT_SLIME, CONTENT_WATER, conveyor, disableclientprediction, emit, entity(), eY, FL_WATERJUMP, flags, IS_CLIENT, IS_DEAD, IS_ONGROUND, IS_ONSLICK, IS_PLAYER, IS_SVQC, IsFlying(), IT_USING_JETPACK, ITEMS_STAT, jumppadcount, ladder_entity, lastground, min(), move_movetype, move_qcphysics, movedir, MOVETYPE_FLY, MOVETYPE_FLY_WORLDONLY, MOVETYPE_FOLLOW, MOVETYPE_NOCLIP, MOVETYPE_NONE, MUTATOR_CALLHOOK, PHYS_ACCELERATE, PHYS_AIRACCELERATE, PHYS_AIRSTOPACCELERATE, PHYS_AIRSTRAFEACCELERATE, PHYS_CS, PHYS_ENTGRAVITY, PHYS_FIXANGLE, PHYS_FRICTION, PHYS_FRICTION_ONLAND, PHYS_GRAVITY, PHYS_INPUT_BUTTON_MASK, PHYS_MAXAIRSPEED, PHYS_MAXAIRSTRAFESPEED, PHYS_MAXSPEED, PHYS_SLICK_APPLYGRAVITY, PM_check_blocked(), PM_check_frozen(), PM_check_hitground(), PM_check_slick(), PM_Footsteps(), PM_jetpack(), STAT, sys_phys_ai(), sys_phys_fix(), sys_phys_fixspeed(), sys_phys_monitor(), sys_phys_override(), sys_phys_postupdate(), sys_phys_pregame_hold(), sys_phys_simulate(), sys_phys_simulate_simple(), sys_phys_spectator_control(), teleport_time, time, v_angle, vector, velocity, viewloc_PlayerPhysics(), WAS_ONGROUND, wasFlying, waterlevel, WATERLEVEL_NONE, and WATERLEVEL_SWIMMING.
Referenced by SV_PlayerPhysics().
| float jetpack_stopped |
Definition at line 525 of file player.qc.
Referenced by CheckPlayerJump().
| string specialcommand = "xwxwxsxsxaxdxaxdx1x " |
Definition at line 572 of file player.qc.
Referenced by PM_check_specialcommand().
| float specialcommand_pos |
Definition at line 573 of file player.qc.
Referenced by PM_check_specialcommand().