Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
player.qh File Reference
Include dependency graph for player.qh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IS_CLIENT(s)
#define IS_DEAD(s)
#define IS_DUCKED(s)
#define IS_JUMP_HELD(s)
#define IS_NOT_A_CLIENT(s)
#define IS_PLAYER(s)
#define ITEMS_STAT(s)
#define PHYS_ACCELERATE(s)
#define PHYS_AIRACCEL_QW(s)
#define PHYS_AIRACCEL_QW_STRETCHFACTOR(s)
#define PHYS_AIRACCEL_SIDEWAYS_FRICTION(s)
#define PHYS_AIRACCELERATE(s)
#define PHYS_AIRCONTROL(s)
#define PHYS_AIRCONTROL_FLAGS(s)
#define PHYS_AIRCONTROL_PENALTY(s)
#define PHYS_AIRCONTROL_POWER(s)
#define PHYS_AIRSPEEDLIMIT_NONQW(s)
#define PHYS_AIRSTOPACCELERATE(s)
#define PHYS_AIRSTOPACCELERATE_FULL(s)
#define PHYS_AIRSTRAFEACCEL_QW(s)
#define PHYS_AIRSTRAFEACCELERATE(s)
#define PHYS_AMMO_FUEL(s)
#define PHYS_CL_TRACK_CANJUMP(s)
#define PHYS_CS(s)
#define PHYS_DODGING_FROZEN(s)
#define PHYS_FIXANGLE(s)
#define PHYS_FRICTION(s)
#define PHYS_FRICTION_ONLAND(s)
#define PHYS_FRICTION_REPLICA_DT   0.00390625
#define PHYS_FRICTION_SLICK(s)
#define PHYS_FROZEN(s)
#define PHYS_HEALTH(s)
#define PHYS_HIGHSPEED(s)
#define PHYS_INPUT_ANGLES(s)
#define PHYS_INPUT_BUTTON_ATCK(s)
#define PHYS_INPUT_BUTTON_ATCK2(s)
#define PHYS_INPUT_BUTTON_BACKWARD(s)
#define PHYS_INPUT_BUTTON_BUTTON1(s)
#define PHYS_INPUT_BUTTON_BUTTON10(s)
#define PHYS_INPUT_BUTTON_BUTTON11(s)
#define PHYS_INPUT_BUTTON_BUTTON12(s)
#define PHYS_INPUT_BUTTON_BUTTON13(s)
#define PHYS_INPUT_BUTTON_BUTTON14(s)
#define PHYS_INPUT_BUTTON_BUTTON15(s)
#define PHYS_INPUT_BUTTON_BUTTON16(s)
#define PHYS_INPUT_BUTTON_BUTTON2(s)
#define PHYS_INPUT_BUTTON_BUTTON3(s)
#define PHYS_INPUT_BUTTON_BUTTON4(s)
#define PHYS_INPUT_BUTTON_BUTTON5(s)
#define PHYS_INPUT_BUTTON_BUTTON6(s)
#define PHYS_INPUT_BUTTON_BUTTON7(s)
#define PHYS_INPUT_BUTTON_BUTTON8(s)
#define PHYS_INPUT_BUTTON_BUTTON9(s)
#define PHYS_INPUT_BUTTON_BUTTON_CHAT(s)
#define PHYS_INPUT_BUTTON_BUTTON_PRYDON(s)
#define PHYS_INPUT_BUTTON_BUTTON_USE(s)
#define PHYS_INPUT_BUTTON_CHAT(s)
#define PHYS_INPUT_BUTTON_CROUCH(s)
#define PHYS_INPUT_BUTTON_DODGE(s)
#define PHYS_INPUT_BUTTON_DRAG(s)
#define PHYS_INPUT_BUTTON_FORWARD(s)
#define PHYS_INPUT_BUTTON_HOOK(s)
#define PHYS_INPUT_BUTTON_INFO(s)
#define PHYS_INPUT_BUTTON_JETPACK(s)
#define PHYS_INPUT_BUTTON_JUMP(s)
#define PHYS_INPUT_BUTTON_LEFT(s)
#define PHYS_INPUT_BUTTON_MASK(s)
#define PHYS_INPUT_BUTTON_MINIGAME(s)
#define PHYS_INPUT_BUTTON_PRYDON(s)
#define PHYS_INPUT_BUTTON_RIGHT(s)
#define PHYS_INPUT_BUTTON_USE(s)
#define PHYS_INPUT_BUTTON_ZOOM(s)
#define PHYS_INPUT_BUTTON_ZOOMSCRIPT(s)
#define PHYS_INPUT_FRAMETIME   serverdeltatime
#define PHYS_INPUT_MOVEVALUES(s)
#define PHYS_INPUT_TIMELENGTH   input_timelength
#define PHYS_INVEHICLE(s)
#define PHYS_JETPACK_ACCEL_SIDE(s)
#define PHYS_JETPACK_ACCEL_UP(s)
#define PHYS_JETPACK_ANTIGRAVITY(s)
#define PHYS_JETPACK_FUEL(s)
#define PHYS_JETPACK_MAXSPEED_SIDE(s)
#define PHYS_JETPACK_MAXSPEED_UP(s)
#define PHYS_JETPACK_REVERSE_THRUST(s)
#define PHYS_JUMPSPEEDCAP_DISABLE_ONRAMPS(s)
#define PHYS_JUMPSPEEDCAP_MAX   autocvar_cl_jumpspeedcap_max
#define PHYS_JUMPSPEEDCAP_MIN   autocvar_cl_jumpspeedcap_min
#define PHYS_JUMPVELOCITY(s)
#define PHYS_JUMPVELOCITY_CROUCH(s)
#define PHYS_MAXAIRSPEED(s)
#define PHYS_MAXAIRSTRAFESPEED(s)
#define PHYS_MAXSPEED(s)
#define PHYS_PL_CROUCH_MAX(s)
#define PHYS_PL_CROUCH_MIN(s)
#define PHYS_PL_CROUCH_VIEWOFS(s)
#define PHYS_PL_MAX(s)
#define PHYS_PL_MIN(s)
#define PHYS_PL_VIEWOFS(s)
#define PHYS_SLICK_APPLYGRAVITY(s)
#define PHYS_SLICKACCELERATE(s)
#define PHYS_STOPSPEED(s)
#define PHYS_TRACK_CANJUMP(s)
#define PHYS_VIEWHEIGHT(s)
#define PHYS_WARSOWBUNNY_ACCEL(s)
#define PHYS_WARSOWBUNNY_AIRFORWARDACCEL(s)
#define PHYS_WARSOWBUNNY_BACKTOSIDERATIO(s)
#define PHYS_WARSOWBUNNY_TOPSPEED(s)
#define PHYS_WARSOWBUNNY_TURNACCEL(s)
#define PHYS_WORLD_ANGLES(s)
#define SET_DUCKED(s)
#define SET_JUMP_HELD(s)
#define UNSET_DUCKED(s)
#define UNSET_JUMP_HELD(s)
#define WAS_ONGROUND(s)
#define WAS_ONSLICK(s)

Functions

float AdjustAirAccelQW (float accelqw, float factor)
 float (entity, float) PlayerPhysplug = #628
float GeomLerp (float, float, float)
bool IsFlying (entity a)
 NET_HANDLE (setpause, bool)
 REPLICATE_INIT (bool, cvar_cl_jetpack_jump)
 REPLICATE_INIT (bool, cvar_cl_movement_track_canjump)
 REPLICATE_INIT (string, cvar_cl_physics)
 STATIC_INIT (PHYS_INPUT_BUTTON)
void unpause_update ()

Variables

string autocvar_cl_jumpspeedcap_max
string autocvar_cl_jumpspeedcap_min
bool autocvar_g_footsteps
bool autocvar_g_jump_grunt
float autocvar_g_maxspeed
float autocvar_g_movement_highspeed = 1
bool autocvar_g_movement_highspeed_q3_compat = 0
bool autocvar_g_physics_clientselect
string autocvar_g_physics_clientselect_default
string autocvar_g_physics_clientselect_options
bool autocvar_speedmeter
float autocvar_sv_accelerate
float autocvar_sv_airaccel_qw
float autocvar_sv_airaccel_qw_stretchfactor
float autocvar_sv_airaccel_sideways_friction
float autocvar_sv_airaccelerate
float autocvar_sv_aircontrol
int autocvar_sv_aircontrol_flags
float autocvar_sv_aircontrol_penalty
float autocvar_sv_aircontrol_power
float autocvar_sv_airspeedlimit_nonqw
float autocvar_sv_airstopaccelerate
bool autocvar_sv_airstopaccelerate_full
float autocvar_sv_airstrafeaccel_qw
float autocvar_sv_airstrafeaccelerate
float autocvar_sv_friction
string autocvar_sv_jumpspeedcap_max
float autocvar_sv_jumpspeedcap_max_disable_on_ramps
string autocvar_sv_jumpspeedcap_min
float autocvar_sv_jumpvelocity
float autocvar_sv_jumpvelocity_crouch
float autocvar_sv_maxairspeed
float autocvar_sv_maxairstrafespeed
float autocvar_sv_maxspeed
vector autocvar_sv_player_crouch_maxs = '16 16 25'
vector autocvar_sv_player_crouch_mins = '-16 -16 -24'
vector autocvar_sv_player_crouch_viewoffset = '0 0 20'
vector autocvar_sv_player_maxs = '16 16 45'
vector autocvar_sv_player_mins = '-16 -16 -24'
vector autocvar_sv_player_viewoffset = '0 0 35'
float autocvar_sv_slickaccelerate
float autocvar_sv_stopspeed
float autocvar_sv_track_canjump
float autocvar_sv_warsowbunny_accel
float autocvar_sv_warsowbunny_airforwardaccel
float autocvar_sv_warsowbunny_backtosideratio
float autocvar_sv_warsowbunny_topspeed
float autocvar_sv_warsowbunny_turnaccel
int buttons_old
entity conveyor
float gravity
entity hook
int items
string lastclassname
int lastflags
float lastground
vector movement
vector movement_old
float race_penalty
float swamp_slowdown
float teleport_time
vector v_angle
vector v_angle_old
bool wasFlying
float waterlevel
float watertype

Macro Definition Documentation

◆ IS_CLIENT

◆ IS_DEAD

#define IS_DEAD ( s)
Value:
(((s).classname == "ENT_CLIENT_MODEL") ? (s).csqcmodel_isdead : (GetResource((s), RES_HEALTH) <= 0))
float GetResource(entity e, Resource res_type)
Returns the current amount of resource the given entity has.

Definition at line 245 of file player.qh.

Referenced by _GlobalSound(), accuracy_isgooddamage(), basketball_touch(), beam_think(), bot_serverframe(), bot_shouldattack(), bot_think(), botframe_autowaypoints(), buff_Think(), bumblebee_exit(), bumblebee_gunner_frame(), bumblebee_pilot_frame(), CA_count_alive_players(), ca_isEliminated(), ca_LastPlayerForTeam(), CA_PreventStalemate(), CanThrowNade(), ChatBubbleThink(), CheatImpulse(), CheatsAllowed(), check_tdeath(), CL_ExteriorWeaponentity_Think(), CL_Weaponentity_Think(), ClientCommand_voice(), ClientKill_TeamChange(), CommonCommand_editmob(), CreatureFrame_FallDamage(), CSQCPlayer_SetCamera(), CSQCPlayer_SetMinsMaxs(), ctf_FlagThink(), Damage(), dompointtouch(), door_blocked(), door_generic_plat_blocked(), door_trigger_touch(), Drag_CanDrag(), DrownPlayer(), EndFrame(), Fire_AddDamage(), freezetag_isEliminated(), func_ladder_think(), generic_plat_blocked(), havocbot_ai(), havocbot_ast_reset_role(), havocbot_ctf_reset_role(), havocbot_ctf_teamcount(), havocbot_goalrating_item_pickable_check_players(), havocbot_movetogoal(), havocbot_ons_reset_role(), havocbot_role_ast_defense(), havocbot_role_ast_offense(), havocbot_role_ctf_carrier(), havocbot_role_ctf_defense(), havocbot_role_ctf_escort(), havocbot_role_ctf_middle(), havocbot_role_ctf_offense(), havocbot_role_ctf_retriever(), havocbot_role_cts(), havocbot_role_dom(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_generic(), havocbot_role_ka_carrier(), havocbot_role_ka_collector(), havocbot_role_kh_carrier(), havocbot_role_kh_defense(), havocbot_role_kh_freelancer(), havocbot_role_kh_offense(), havocbot_role_ons_offense(), havocbot_role_race(), havocbot_role_tka_carrier(), havocbot_role_tka_collector(), Headshot(), Heal(), hk_is_valid_target(), if(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), instagib_ammocheck(), Item_Touch(), jumppad_push(), ka_TouchEvent(), kh_GetMissingTeams(), kh_Key_Touch(), kh_StartRound(), KillPlayerForTeamChange(), lms_RemovePlayer(), M_Mage_Attack_Spike_Think(), M_Spider_Attack_Web_Explode(), Monster_Anim(), Monster_Attack_Leap_Check(), Monster_Enemy_Check(), Monster_ValidTarget(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), nade_ammo_touch(), nade_darkness_think(), nade_heal_touch(), nade_ice_think(), nades_GiveBonus(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Think(), ons_ControlPoint_Touch(), plat_center_touch(), plat_crush(), player_anim(), player_powerups(), PlayerFrame(), PlayerHealth(), PlayerThink(), PlayerUseKey(), PM_ClientMovement_UpdateStatus(), PM_dodging(), race_StartCompleting(), racer_frame(), racer_rocket_groundhugger(), racer_rocket_tracker(), raptor_exit(), raptor_frame(), REGISTER_MUTATOR(), ShowRespawnCountdown(), Spawn_Score(), spiderbot_rocket_guided(), spiderbot_rocket_unguided(), StrafeHUD_DrawJumpHeight(), Surv_CheckPlayers(), Surv_CheckWinner(), surv_isEliminated(), surv_LastPlayerForTeam(), Surv_RoundStart(), Surv_UpdateScores(), SV_PlayerPhysics(), swamp_think(), sys_phys_update(), target_items_use(), Teleport_Active(), TeleportPlayer(), tka_TouchEvent(), trigger_heal_touch(), trigger_magicear_processmessage(), turret_firecheck(), turret_fusionreactor_firecheck(), turret_hellion_missile_think(), turret_hk_missile_think(), turret_validate_target(), vehicle_impulse(), vehicle_use(), vehicles_enter(), vehicles_exit(), vehicles_locktarget(), vehicles_setreturn(), vehicles_valid_pilot(), W_Arc_Beam_Think(), W_Crylink_Touch_WouldHitFriendly(), W_Devastator_Explode(), W_Devastator_RemoteExplode(), W_Devastator_Think(), W_Electro_Explode(), W_MineLayer_Explode(), W_MineLayer_RemoteExplode(), W_MineLayer_Think(), W_Mortar_Grenade_Explode(), W_Mortar_Grenade_Explode2(), W_Nexball_Touch(), W_Porto_Fail(), W_RocketMinsta_Laser_Explode(), W_Seeker_Missile_Think(), W_Seeker_Tag_Touch(), W_Seeker_Tracker_Think(), W_Seeker_Vollycontroller_Think(), W_Shotgun_Melee_Think(), walker_rocket_think(), weapon_byid_handle(), weapon_group_handle(), WinningCondition_Invasion(), WinningCondition_RanOutOfSpawns(), and X().

◆ IS_DUCKED

◆ IS_JUMP_HELD

#define IS_JUMP_HELD ( s)
Value:
(!((s).flags & FL_JUMPRELEASED))
const int FL_JUMPRELEASED
Definition constants.qh:81

Definition at line 203 of file player.qh.

Referenced by CSQCPlayer_Physics(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and PlayerJump().

◆ IS_NOT_A_CLIENT

#define IS_NOT_A_CLIENT ( s)
Value:
(!(s).isplayermodel && (s) != csqcplayer)

Definition at line 244 of file player.qh.

Referenced by Fire_ApplyDamage(), Notification_CheckArgs(), reset_map(), WarpZone_Teleport(), and WarpZone_Touch().

◆ IS_PLAYER

#define IS_PLAYER ( s)
Value:
((s).isplayermodel & ISPLAYER_PLAYER)
const int ISPLAYER_PLAYER
Definition common.qh:59

Definition at line 243 of file player.qh.

Referenced by _entcs_send(), _GlobalSound(), AddWinners(), AmmoNameFromWeaponentity(), antilag_restore_all(), antilag_takeback_all(), assault_objective_decrease_use(), autoskill(), basketball_touch(), bot_fixcount(), bot_think(), botframe_autowaypoints(), botframe_showwaypointlinks(), buff_Touch(), bumblebee_pilot_frame(), CA_CheckWinner(), CA_count_alive_players(), ca_LastPlayerForTeam(), CA_PreventStalemate(), CA_RoundStart(), calculate_player_respawn_time(), CampaignPreIntermission(), CanThrowNade(), ChatBubbleThink(), CheatImpulse(), CheatsAllowed(), check_tdeath(), checkpoint_passed(), CheckRules_World(), ClearWinners(), ClientCommand_join(), ClientCommand_ready(), ClientCommand_spectate(), ClientCommand_wpeditor(), ClientDisconnect(), ClientKill_TeamChange(), CommonCommand_editmob(), CommonCommand_timeout(), counter_use(), CSQCModel_Send(), ctf_CaptureShield_CheckStatus(), ctf_CheckStalemate(), ctf_Handle_Pickup(), ctf_Handle_Retrieve(), ctf_Handle_Return(), ctf_Immediate_Return_Allowed(), ctf_Reset(), ctf_Stalemate_Customize(), Damage(), debugnode(), Domination_RoundStart(), dompointtouch(), door_check_keys(), door_touch(), Drag_CanDrag(), DumpStats(), DynamicHandicap_UpdateHandicap(), EndFrame(), entcs_think(), entcs_update_players(), Fire_AddDamage(), fireBullet_falloff(), football_touch(), fragsfilter_use(), freezetag_Add_Score(), freezetag_CheckWinner(), freezetag_count_alive_players(), freezetag_Freeze(), freezetag_isEliminated(), freezetag_LastPlayerForTeam(), freezetag_Unfreeze(), func_ladder_think(), GameCommand_allspec(), GetResourceLimit(), havocbot_ai(), havocbot_bunnyhop(), havocbot_ctf_reset_role(), havocbot_ctf_teamcount(), havocbot_goalrating_enemyplayers(), havocbot_goalrating_ft_freeplayers(), havocbot_goalrating_item_pickable_check_players(), havocbot_goalrating_ons_controlpoints_attack(), havocbot_movetogoal(), havocbot_role_ctf_defense(), havocbot_role_ft_offense(), Headshot(), hk_is_valid_target(), instagib_ammocheck(), Invasion_CheckWinner(), Invasion_RoundStart(), Inventory_pickupitem(), Item_ItemsTime_SetTimesForAllPlayers(), item_key_touch(), Join(), joinAllowed(), jumppad_push(), ka_TouchEvent(), kh_GetMissingTeams(), kh_Key_Damage(), kh_Key_Think(), kh_Key_Touch(), kh_LoserTeam(), kh_StartRound(), lms_RemovePlayer(), lms_UpdateLeaders(), M_Mage_Defend_Heal(), M_Mage_Defend_Heal_Check(), MatchEnd_RestoreSpectatorAndTeamStatus(), Monster_Dead(), Monster_Move_2D(), monster_setupcolors(), multi_touch(), multi_trigger(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), nade_ammo_touch(), nade_damage(), nade_heal_touch(), nade_ice_think(), nades_GiveBonus(), napalm_damage(), navigation_check_submerged_state(), navigation_poptouchedgoals(), navigation_routerating(), NextLevel(), nJoinAllowed(), Obituary(), ons_CaptureShield_Touch(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Think(), ons_ControlPoint_Touch(), ons_GeneratorDamage(), ons_GeneratorThink(), Onslaught_CheckWinner(), onslaught_generator_touch(), Onslaught_RoundStart(), plat_center_touch(), plat_outside_touch(), play2team(), player_clear_minigame(), PlayerDamage(), PlayerFrame(), PlayerPostThink(), PlayerPreThink(), PlayerStats_GetGametype(), PlayerUseKey(), PM_ClientMovement_UpdateStatus(), Portal_TeleportPlayer(), Portal_Think(), Portal_Touch(), PutClientInServer(), PutObserverInServer(), race_SendTime(), race_StartCompleting(), RadiusDamageForSource(), ReadyCount(), ReadyRestart_force(), REGISTER_MUTATOR(), reset_map(), round_handler_Think(), sandbox_ObjectFunction_Think(), sandbox_ObjectRemove(), Say(), Score_NicePrint(), score_use(), set_tracewalk_dest(), SetMovetypeFollow(), SetWinners(), shuffleteams(), Spawn_Score(), spawnmonster(), SpectateSet(), SpectateUpdate(), StartFrame(), StrafeHUD_DrawJumpHeight(), SUB_UseTargets_Ex(), Surv_CheckPlayers(), Surv_CheckWinner(), surv_LastPlayerForTeam(), Surv_RoundStart(), Surv_UpdateScores(), swamp_think(), sys_phys_pregame_hold(), sys_phys_update(), target_changelevel_use(), target_invasion_roundend_use(), target_items_use(), target_print_use(), target_teleport_use(), target_voicescript_next(), tdeath(), Teleport_Active(), Teleport_Touch(), TeleportPlayer(), timeout_handler_think(), tka_TouchEvent(), trigger_hurt_touch(), trigger_hurt_use(), trigger_keylock_touch(), trigger_magicear_processmessage(), trigger_secret_touch(), vehicles_crushable(), vehicles_enter(), vehicles_spawn(), vehicles_valid_pilot(), viewloc_think(), visible_to_some_client(), VoteCommand_call(), VoteCommand_master(), VoteCount(), W_Arc_Beam_Think(), W_Devastator_Explode(), W_Electro_Explode(), W_Fireball_Explode(), W_Fireball_LaserPlay(), W_MineLayer_Explode(), W_MineLayer_Think(), W_Mortar_Grenade_Explode(), W_Mortar_Grenade_Explode2(), W_Nexball_Touch(), W_OverkillRocketPropelledChainsaw_Think(), W_RocketMinsta_Laser_Explode(), W_SetupShot_Dir_ProjectileSize_Range(), W_Shotgun_Melee_Think(), W_WeaponFrame(), WarpZone_PostTeleportPlayer_Callback(), WarpZone_Teleport(), WarpZone_TeleportPlayer(), WaypointSprite_visible_for_player(), WeaponNameFromWeaponentity(), WinningCondition_Invasion(), WinningCondition_LMS(), WinningCondition_Race(), WinningCondition_RanOutOfSpawns(), and WinningConditionHelper().

◆ ITEMS_STAT

#define ITEMS_STAT ( s)
Value:
((s).items)

Definition at line 214 of file player.qh.

Referenced by CheckPlayerJump(), PM_jetpack(), SV_PlayerPhysics(), and sys_phys_update().

◆ PHYS_ACCELERATE

#define PHYS_ACCELERATE ( s)
Value:
STAT(MOVEVARS_ACCELERATE, s)
#define STAT(...)
Definition stats.qh:82

Definition at line 94 of file player.qh.

Referenced by HUD_Physics(), HUD_StrafeHUD(), sys_phys_simulate(), and sys_phys_update().

◆ PHYS_AIRACCEL_QW

#define PHYS_AIRACCEL_QW ( s)
Value:
STAT(MOVEVARS_AIRACCEL_QW, s)

Definition at line 97 of file player.qh.

Referenced by HUD_StrafeHUD(), and sys_phys_simulate().

◆ PHYS_AIRACCEL_QW_STRETCHFACTOR

#define PHYS_AIRACCEL_QW_STRETCHFACTOR ( s)
Value:
STAT(MOVEVARS_AIRACCEL_QW_STRETCHFACTOR, s)

Definition at line 98 of file player.qh.

Referenced by sys_phys_simulate().

◆ PHYS_AIRACCEL_SIDEWAYS_FRICTION

#define PHYS_AIRACCEL_SIDEWAYS_FRICTION ( s)
Value:
STAT(MOVEVARS_AIRACCEL_SIDEWAYS_FRICTION, s)

Definition at line 99 of file player.qh.

Referenced by sys_phys_simulate().

◆ PHYS_AIRACCELERATE

#define PHYS_AIRACCELERATE ( s)
Value:
STAT(MOVEVARS_AIRACCELERATE, s)

Definition at line 95 of file player.qh.

Referenced by HUD_StrafeHUD(), and sys_phys_update().

◆ PHYS_AIRCONTROL

#define PHYS_AIRCONTROL ( s)
Value:
STAT(MOVEVARS_AIRCONTROL, s)

Definition at line 100 of file player.qh.

Referenced by CPM_PM_Aircontrol(), HUD_StrafeHUD(), and sys_phys_simulate().

◆ PHYS_AIRCONTROL_FLAGS

#define PHYS_AIRCONTROL_FLAGS ( s)
Value:
STAT(MOVEVARS_AIRCONTROL_FLAGS, s)

Definition at line 101 of file player.qh.

Referenced by CPM_PM_Aircontrol(), and HUD_StrafeHUD().

◆ PHYS_AIRCONTROL_PENALTY

#define PHYS_AIRCONTROL_PENALTY ( s)
Value:
STAT(MOVEVARS_AIRCONTROL_PENALTY, s)

Definition at line 102 of file player.qh.

Referenced by CPM_PM_Aircontrol(), and HUD_StrafeHUD().

◆ PHYS_AIRCONTROL_POWER

#define PHYS_AIRCONTROL_POWER ( s)
Value:
STAT(MOVEVARS_AIRCONTROL_POWER, s)

Definition at line 103 of file player.qh.

Referenced by CPM_PM_Aircontrol(), and HUD_StrafeHUD().

◆ PHYS_AIRSPEEDLIMIT_NONQW

#define PHYS_AIRSPEEDLIMIT_NONQW ( s)
Value:
STAT(MOVEVARS_AIRSPEEDLIMIT_NONQW, s)

Definition at line 104 of file player.qh.

Referenced by sys_phys_simulate().

◆ PHYS_AIRSTOPACCELERATE

#define PHYS_AIRSTOPACCELERATE ( s)
Value:
STAT(MOVEVARS_AIRSTOPACCELERATE, s)

Definition at line 105 of file player.qh.

Referenced by HUD_StrafeHUD(), sys_phys_simulate(), and sys_phys_update().

◆ PHYS_AIRSTOPACCELERATE_FULL

#define PHYS_AIRSTOPACCELERATE_FULL ( s)
Value:
STAT(MOVEVARS_AIRSTOPACCELERATE_FULL, s)

Definition at line 106 of file player.qh.

Referenced by HUD_StrafeHUD(), and sys_phys_simulate().

◆ PHYS_AIRSTRAFEACCEL_QW

#define PHYS_AIRSTRAFEACCEL_QW ( s)
Value:
STAT(MOVEVARS_AIRSTRAFEACCEL_QW, s)

Definition at line 108 of file player.qh.

Referenced by sys_phys_simulate().

◆ PHYS_AIRSTRAFEACCELERATE

#define PHYS_AIRSTRAFEACCELERATE ( s)
Value:
STAT(MOVEVARS_AIRSTRAFEACCELERATE, s)

Definition at line 107 of file player.qh.

Referenced by HUD_StrafeHUD(), sys_phys_simulate(), and sys_phys_update().

◆ PHYS_AMMO_FUEL

#define PHYS_AMMO_FUEL ( s)
Value:
STAT(FUEL, s)

Definition at line 110 of file player.qh.

Referenced by CheckPlayerJump(), and PM_jetpack().

◆ PHYS_CL_TRACK_CANJUMP

#define PHYS_CL_TRACK_CANJUMP ( s)
Value:
STAT(MOVEVARS_CL_TRACK_CANJUMP, s)

Definition at line 285 of file player.qh.

Referenced by PlayerJump(), and StrafeHUD_DetermineJumpHeld().

◆ PHYS_CS

◆ PHYS_DODGING_FROZEN

#define PHYS_DODGING_FROZEN ( s)
Value:
STAT(DODGING_FROZEN, s)

Definition at line 112 of file player.qh.

Referenced by PM_check_frozen(), PM_dodging(), and PM_dodging_checkpressedkeys().

◆ PHYS_FIXANGLE

#define PHYS_FIXANGLE ( s)
Value:
('0 0 0')

Definition at line 220 of file player.qh.

Referenced by sys_phys_update().

◆ PHYS_FRICTION

#define PHYS_FRICTION ( s)
Value:
STAT(MOVEVARS_FRICTION, s)

Definition at line 114 of file player.qh.

Referenced by HUD_Physics(), HUD_StrafeHUD(), StrafeHUD_DrawSlickDetector(), sys_phys_simulate(), and sys_phys_update().

◆ PHYS_FRICTION_ONLAND

#define PHYS_FRICTION_ONLAND ( s)
Value:
STAT(MOVEVARS_FRICTION_ONLAND, s)

Definition at line 115 of file player.qh.

Referenced by PlayerJump(), and sys_phys_update().

◆ PHYS_FRICTION_REPLICA_DT

#define PHYS_FRICTION_REPLICA_DT   0.00390625

Definition at line 342 of file player.qh.

Referenced by HUD_StrafeHUD(), and sys_phys_simulate().

◆ PHYS_FRICTION_SLICK

#define PHYS_FRICTION_SLICK ( s)
Value:
STAT(MOVEVARS_FRICTION_SLICK, s)

Definition at line 116 of file player.qh.

Referenced by HUD_StrafeHUD(), and sys_phys_simulate().

◆ PHYS_FROZEN

#define PHYS_FROZEN ( s)
Value:
(STAT(FROZEN, s) || StatusEffects_active(STATUSEFFECT_Frozen, s))
bool StatusEffects_active(StatusEffect this, entity actor)

Definition at line 118 of file player.qh.

Referenced by CheckPlayerJump(), determine_force(), PlayerJump(), PM_check_frozen(), PM_ClientMovement_UpdateStatus(), PM_dodging(), PM_dodging_checkpressedkeys(), and sys_phys_simulate().

◆ PHYS_HEALTH

#define PHYS_HEALTH ( s)
Value:
STAT(HEALTH, s)

Definition at line 92 of file player.qh.

Referenced by CSQCPlayer_CalcRefdef().

◆ PHYS_HIGHSPEED

#define PHYS_HIGHSPEED ( s)
Value:
STAT(MOVEVARS_HIGHSPEED, s)

Definition at line 120 of file player.qh.

Referenced by Physics_UpdateStats().

◆ PHYS_INPUT_ANGLES

#define PHYS_INPUT_ANGLES ( s)
Value:
vector input_angles

Definition at line 250 of file player.qh.

Referenced by CSQCPlayer_Physics(), HUD_StrafeHUD(), StrafeHUD_DrawVerticalAngle(), and WarpZone_Teleport().

◆ PHYS_INPUT_BUTTON_ATCK

◆ PHYS_INPUT_BUTTON_ATCK2

◆ PHYS_INPUT_BUTTON_BACKWARD

#define PHYS_INPUT_BUTTON_BACKWARD ( s)
Value:
#define PHYS_INPUT_MOVEVALUES(s)
Definition player.qh:257

Definition at line 182 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON1

#define PHYS_INPUT_BUTTON_BUTTON1 ( s)
Value:
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition bits.qh:8
float input_buttons

Definition at line 260 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON10

#define PHYS_INPUT_BUTTON_BUTTON10 ( s)
Value:

Definition at line 272 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON11

#define PHYS_INPUT_BUTTON_BUTTON11 ( s)
Value:

Definition at line 273 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON12

#define PHYS_INPUT_BUTTON_BUTTON12 ( s)
Value:

Definition at line 274 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON13

#define PHYS_INPUT_BUTTON_BUTTON13 ( s)
Value:

Definition at line 275 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON14

#define PHYS_INPUT_BUTTON_BUTTON14 ( s)
Value:

Definition at line 276 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON15

#define PHYS_INPUT_BUTTON_BUTTON15 ( s)
Value:

Definition at line 277 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON16

#define PHYS_INPUT_BUTTON_BUTTON16 ( s)
Value:

Definition at line 278 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON2

#define PHYS_INPUT_BUTTON_BUTTON2 ( s)
Value:

Definition at line 261 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON3

#define PHYS_INPUT_BUTTON_BUTTON3 ( s)
Value:

Definition at line 262 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON4

#define PHYS_INPUT_BUTTON_BUTTON4 ( s)
Value:

Definition at line 263 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON5

#define PHYS_INPUT_BUTTON_BUTTON5 ( s)
Value:

Definition at line 264 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON6

#define PHYS_INPUT_BUTTON_BUTTON6 ( s)
Value:

Definition at line 265 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON7

#define PHYS_INPUT_BUTTON_BUTTON7 ( s)
Value:

Definition at line 266 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON8

#define PHYS_INPUT_BUTTON_BUTTON8 ( s)
Value:

Definition at line 267 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON9

#define PHYS_INPUT_BUTTON_BUTTON9 ( s)
Value:

Definition at line 271 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON_CHAT

#define PHYS_INPUT_BUTTON_BUTTON_CHAT ( s)
Value:

Definition at line 269 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON_PRYDON

#define PHYS_INPUT_BUTTON_BUTTON_PRYDON ( s)
Value:

Definition at line 270 of file player.qh.

◆ PHYS_INPUT_BUTTON_BUTTON_USE

#define PHYS_INPUT_BUTTON_BUTTON_USE ( s)
Value:

Definition at line 268 of file player.qh.

◆ PHYS_INPUT_BUTTON_CHAT

◆ PHYS_INPUT_BUTTON_CROUCH

◆ PHYS_INPUT_BUTTON_DODGE

#define PHYS_INPUT_BUTTON_DODGE ( s)
Value:
#define PHYS_INPUT_BUTTON_BUTTON11(s)
Definition player.qh:273

Definition at line 163 of file player.qh.

◆ PHYS_INPUT_BUTTON_DRAG

#define PHYS_INPUT_BUTTON_DRAG ( s)
Value:
#define PHYS_INPUT_BUTTON_BUTTON8(s)
Definition player.qh:267

Definition at line 157 of file player.qh.

Referenced by bot_cmd_pause(), bot_think(), and Drag().

◆ PHYS_INPUT_BUTTON_FORWARD

#define PHYS_INPUT_BUTTON_FORWARD ( s)
Value:

Definition at line 183 of file player.qh.

◆ PHYS_INPUT_BUTTON_HOOK

#define PHYS_INPUT_BUTTON_HOOK ( s)
Value:
#define PHYS_INPUT_BUTTON_BUTTON6(s)
Definition player.qh:265

Definition at line 155 of file player.qh.

Referenced by bot_cmd_pause(), bot_presskeys(), bot_think(), IntermissionThink(), PlayerThink(), and W_WeaponFrame().

◆ PHYS_INPUT_BUTTON_INFO

#define PHYS_INPUT_BUTTON_INFO ( s)
Value:
#define PHYS_INPUT_BUTTON_BUTTON7(s)
Definition player.qh:266

Definition at line 156 of file player.qh.

Referenced by bot_think().

◆ PHYS_INPUT_BUTTON_JETPACK

#define PHYS_INPUT_BUTTON_JETPACK ( s)
Value:
#define PHYS_INPUT_BUTTON_BUTTON10(s)
Definition player.qh:272

Definition at line 162 of file player.qh.

Referenced by CheckPlayerJump(), havocbot_movetogoal(), and StrafeHUD_DetermineJumpHeld().

◆ PHYS_INPUT_BUTTON_JUMP

◆ PHYS_INPUT_BUTTON_LEFT

#define PHYS_INPUT_BUTTON_LEFT ( s)
Value:

Definition at line 184 of file player.qh.

◆ PHYS_INPUT_BUTTON_MASK

#define PHYS_INPUT_BUTTON_MASK ( s)
Value:
( \
| (BIT(6) * PHYS_INPUT_BUTTON_USE(s)) \
)
#define PHYS_INPUT_BUTTON_CROUCH(s)
Definition player.qh:154
#define PHYS_INPUT_BUTTON_LEFT(s)
Definition player.qh:184
#define PHYS_INPUT_BUTTON_JUMP(s)
Definition player.qh:151
#define PHYS_INPUT_BUTTON_HOOK(s)
Definition player.qh:155
#define PHYS_INPUT_BUTTON_RIGHT(s)
Definition player.qh:185
#define PHYS_INPUT_BUTTON_BACKWARD(s)
Definition player.qh:182
#define PHYS_INPUT_BUTTON_FORWARD(s)
Definition player.qh:183
#define PHYS_INPUT_BUTTON_USE(s)
Definition player.qh:158
#define PHYS_INPUT_BUTTON_ATCK(s)
Definition player.qh:150
#define PHYS_INPUT_BUTTON_ZOOM(s)
Definition player.qh:153
#define PHYS_INPUT_BUTTON_ATCK2(s)
Definition player.qh:152

Definition at line 189 of file player.qh.

189#define PHYS_INPUT_BUTTON_MASK(s) ( \
190 (BIT(0) * PHYS_INPUT_BUTTON_ATCK(s)) \
191 | (BIT(1) * PHYS_INPUT_BUTTON_JUMP(s)) \
192 | (BIT(2) * PHYS_INPUT_BUTTON_ATCK2(s)) \
193 | (BIT(3) * PHYS_INPUT_BUTTON_ZOOM(s)) \
194 | (BIT(4) * PHYS_INPUT_BUTTON_CROUCH(s)) \
195 | (BIT(5) * PHYS_INPUT_BUTTON_HOOK(s)) \
196 | (BIT(6) * PHYS_INPUT_BUTTON_USE(s)) \
197 | (BIT(7) * PHYS_INPUT_BUTTON_BACKWARD(s)) \
198 | (BIT(8) * PHYS_INPUT_BUTTON_FORWARD(s)) \
199 | (BIT(9) * PHYS_INPUT_BUTTON_LEFT(s)) \
200 | (BIT(10) * PHYS_INPUT_BUTTON_RIGHT(s)) \
201 )

Referenced by sys_phys_monitor(), sys_phys_override(), and sys_phys_update().

◆ PHYS_INPUT_BUTTON_MINIGAME

#define PHYS_INPUT_BUTTON_MINIGAME ( s)
Value:
#define PHYS_INPUT_BUTTON_BUTTON12(s)
Definition player.qh:274

Definition at line 164 of file player.qh.

Referenced by ChatBubbleThink(), PlayerJump(), and PM_check_blocked().

◆ PHYS_INPUT_BUTTON_PRYDON

#define PHYS_INPUT_BUTTON_PRYDON ( s)
Value:
#define PHYS_INPUT_BUTTON_BUTTON_PRYDON(s)
Definition player.qh:270

Definition at line 160 of file player.qh.

◆ PHYS_INPUT_BUTTON_RIGHT

#define PHYS_INPUT_BUTTON_RIGHT ( s)
Value:

Definition at line 185 of file player.qh.

◆ PHYS_INPUT_BUTTON_USE

#define PHYS_INPUT_BUTTON_USE ( s)

◆ PHYS_INPUT_BUTTON_ZOOM

#define PHYS_INPUT_BUTTON_ZOOM ( s)
Value:
#define PHYS_INPUT_BUTTON_BUTTON4(s)
Definition player.qh:263

Definition at line 153 of file player.qh.

Referenced by bot_think(), CSQC_UpdateView(), PlayerPreThink(), racer_frame(), spiderbot_frame(), and W_Rifle_FireBullet().

◆ PHYS_INPUT_BUTTON_ZOOMSCRIPT

#define PHYS_INPUT_BUTTON_ZOOMSCRIPT ( s)
Value:
#define PHYS_INPUT_BUTTON_BUTTON9(s)
Definition player.qh:271

Definition at line 161 of file player.qh.

Referenced by PlayerPreThink(), and W_Rifle_FireBullet().

◆ PHYS_INPUT_FRAMETIME

◆ PHYS_INPUT_MOVEVALUES

#define PHYS_INPUT_MOVEVALUES ( s)
Value:
vector input_movevalues

Definition at line 257 of file player.qh.

Referenced by HUD_StrafeHUD(), and sys_phys_fix().

◆ PHYS_INPUT_TIMELENGTH

◆ PHYS_INVEHICLE

#define PHYS_INVEHICLE ( s)
Value:
int hud
Definition main.qh:173
const int HUD_NORMAL
Definition constants.qh:47

Definition at line 280 of file player.qh.

Referenced by CSQCPlayer_ApplyBobbing(), and PM_ClientMovement_UpdateStatus().

◆ PHYS_JETPACK_ACCEL_SIDE

#define PHYS_JETPACK_ACCEL_SIDE ( s)
Value:
STAT(JETPACK_ACCEL_SIDE, s)

Definition at line 122 of file player.qh.

Referenced by PM_jetpack().

◆ PHYS_JETPACK_ACCEL_UP

#define PHYS_JETPACK_ACCEL_UP ( s)
Value:
STAT(JETPACK_ACCEL_UP, s)

Definition at line 123 of file player.qh.

Referenced by PM_jetpack().

◆ PHYS_JETPACK_ANTIGRAVITY

#define PHYS_JETPACK_ANTIGRAVITY ( s)
Value:
STAT(JETPACK_ANTIGRAVITY, s)

Definition at line 124 of file player.qh.

Referenced by PM_jetpack().

◆ PHYS_JETPACK_FUEL

#define PHYS_JETPACK_FUEL ( s)
Value:
STAT(JETPACK_FUEL, s)

Definition at line 125 of file player.qh.

Referenced by CheckPlayerJump(), and PM_jetpack().

◆ PHYS_JETPACK_MAXSPEED_SIDE

#define PHYS_JETPACK_MAXSPEED_SIDE ( s)
Value:
STAT(JETPACK_MAXSPEED_SIDE, s)

Definition at line 126 of file player.qh.

Referenced by PM_jetpack().

◆ PHYS_JETPACK_MAXSPEED_UP

#define PHYS_JETPACK_MAXSPEED_UP ( s)
Value:
STAT(JETPACK_MAXSPEED_UP, s)

Definition at line 127 of file player.qh.

Referenced by PM_jetpack().

◆ PHYS_JETPACK_REVERSE_THRUST

#define PHYS_JETPACK_REVERSE_THRUST ( s)
Value:
STAT(JETPACK_REVERSE_THRUST, s)

Definition at line 128 of file player.qh.

Referenced by PM_jetpack().

◆ PHYS_JUMPSPEEDCAP_DISABLE_ONRAMPS

#define PHYS_JUMPSPEEDCAP_DISABLE_ONRAMPS ( s)
Value:
STAT(MOVEVARS_JUMPSPEEDCAP_DISABLE_ONRAMPS)

Definition at line 130 of file player.qh.

Referenced by PlayerJump().

◆ PHYS_JUMPSPEEDCAP_MAX

#define PHYS_JUMPSPEEDCAP_MAX   autocvar_cl_jumpspeedcap_max

Definition at line 283 of file player.qh.

Referenced by PlayerJump().

◆ PHYS_JUMPSPEEDCAP_MIN

#define PHYS_JUMPSPEEDCAP_MIN   autocvar_cl_jumpspeedcap_min

Definition at line 282 of file player.qh.

Referenced by PlayerJump().

◆ PHYS_JUMPVELOCITY

#define PHYS_JUMPVELOCITY ( s)
Value:
STAT(MOVEVARS_JUMPVELOCITY, s)

Definition at line 131 of file player.qh.

Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and PlayerJump().

◆ PHYS_JUMPVELOCITY_CROUCH

#define PHYS_JUMPVELOCITY_CROUCH ( s)
Value:
STAT(MOVEVARS_JUMPVELOCITY_CROUCH, s)

Definition at line 132 of file player.qh.

Referenced by PlayerJump().

◆ PHYS_MAXAIRSPEED

#define PHYS_MAXAIRSPEED ( s)
Value:
STAT(MOVEVARS_MAXAIRSPEED, s)

Definition at line 134 of file player.qh.

Referenced by CPM_PM_Aircontrol(), HUD_StrafeHUD(), PM_jetpack(), sys_phys_fixspeed(), and sys_phys_update().

◆ PHYS_MAXAIRSTRAFESPEED

#define PHYS_MAXAIRSTRAFESPEED ( s)
Value:
STAT(MOVEVARS_MAXAIRSTRAFESPEED, s)

Definition at line 135 of file player.qh.

Referenced by HUD_StrafeHUD(), sys_phys_simulate(), and sys_phys_update().

◆ PHYS_MAXSPEED

#define PHYS_MAXSPEED ( s)
Value:
STAT(MOVEVARS_MAXSPEED, s)

Definition at line 136 of file player.qh.

Referenced by HUD_StrafeHUD(), PlayerJump(), PM_AirAccelerate(), RaceCarPhysics(), sys_phys_fixspeed(), sys_phys_simulate(), and sys_phys_update().

◆ PHYS_PL_CROUCH_MAX

#define PHYS_PL_CROUCH_MAX ( s)
Value:
STAT(PL_CROUCH_MAX, s)

Definition at line 85 of file player.qh.

Referenced by CSQCPlayer_SetMinsMaxs().

◆ PHYS_PL_CROUCH_MIN

#define PHYS_PL_CROUCH_MIN ( s)
Value:
STAT(PL_CROUCH_MIN, s)

Definition at line 86 of file player.qh.

Referenced by CSQCPlayer_SetMinsMaxs().

◆ PHYS_PL_CROUCH_VIEWOFS

#define PHYS_PL_CROUCH_VIEWOFS ( s)
Value:
STAT(PL_CROUCH_VIEW_OFS, s)

Definition at line 89 of file player.qh.

Referenced by CSQCPlayer_SetCamera(), and CSQCPlayer_SetMinsMaxs().

◆ PHYS_PL_MAX

#define PHYS_PL_MAX ( s)
Value:
STAT(PL_MAX, s)

Definition at line 83 of file player.qh.

Referenced by CSQCPlayer_SetMinsMaxs().

◆ PHYS_PL_MIN

#define PHYS_PL_MIN ( s)
Value:
STAT(PL_MIN, s)

Definition at line 84 of file player.qh.

Referenced by CSQCPlayer_SetMinsMaxs().

◆ PHYS_PL_VIEWOFS

#define PHYS_PL_VIEWOFS ( s)
Value:
STAT(PL_VIEW_OFS, s)

Definition at line 88 of file player.qh.

Referenced by CSQCPlayer_SetCamera(), and CSQCPlayer_SetMinsMaxs().

◆ PHYS_SLICK_APPLYGRAVITY

#define PHYS_SLICK_APPLYGRAVITY ( s)
Value:
STAT(SLICK_APPLYGRAVITY)

Definition at line 148 of file player.qh.

Referenced by sys_phys_update().

◆ PHYS_SLICKACCELERATE

#define PHYS_SLICKACCELERATE ( s)
Value:
STAT(MOVEVARS_SLICKACCELERATE, s)

Definition at line 96 of file player.qh.

Referenced by HUD_Physics(), HUD_StrafeHUD(), and sys_phys_simulate().

◆ PHYS_STOPSPEED

#define PHYS_STOPSPEED ( s)
Value:
STAT(MOVEVARS_STOPSPEED, s)

Definition at line 138 of file player.qh.

Referenced by HUD_StrafeHUD(), and sys_phys_simulate().

◆ PHYS_TRACK_CANJUMP

#define PHYS_TRACK_CANJUMP ( s)
Value:
STAT(MOVEVARS_TRACK_CANJUMP, s)

Definition at line 140 of file player.qh.

Referenced by PlayerJump(), and StrafeHUD_DetermineJumpHeld().

◆ PHYS_VIEWHEIGHT

#define PHYS_VIEWHEIGHT ( s)
Value:
STAT(VIEWHEIGHT, s)

Definition at line 91 of file player.qh.

Referenced by CSQCPlayer_SetCamera().

◆ PHYS_WARSOWBUNNY_ACCEL

#define PHYS_WARSOWBUNNY_ACCEL ( s)
Value:
STAT(MOVEVARS_WARSOWBUNNY_ACCEL, s)

Definition at line 142 of file player.qh.

Referenced by PM_AirAccelerate().

◆ PHYS_WARSOWBUNNY_AIRFORWARDACCEL

#define PHYS_WARSOWBUNNY_AIRFORWARDACCEL ( s)
Value:
STAT(MOVEVARS_WARSOWBUNNY_AIRFORWARDACCEL, s)

Definition at line 143 of file player.qh.

Referenced by PM_AirAccelerate().

◆ PHYS_WARSOWBUNNY_BACKTOSIDERATIO

#define PHYS_WARSOWBUNNY_BACKTOSIDERATIO ( s)
Value:
STAT(MOVEVARS_WARSOWBUNNY_BACKTOSIDERATIO, s)

Definition at line 144 of file player.qh.

Referenced by PM_AirAccelerate().

◆ PHYS_WARSOWBUNNY_TOPSPEED

#define PHYS_WARSOWBUNNY_TOPSPEED ( s)
Value:
STAT(MOVEVARS_WARSOWBUNNY_TOPSPEED, s)

Definition at line 145 of file player.qh.

Referenced by PM_AirAccelerate().

◆ PHYS_WARSOWBUNNY_TURNACCEL

#define PHYS_WARSOWBUNNY_TURNACCEL ( s)
Value:
STAT(MOVEVARS_WARSOWBUNNY_TURNACCEL, s)

Definition at line 146 of file player.qh.

Referenced by PM_AirAccelerate(), and sys_phys_simulate().

◆ PHYS_WORLD_ANGLES

#define PHYS_WORLD_ANGLES ( s)
Value:

Definition at line 252 of file player.qh.

Referenced by CSQCPlayer_Physics().

◆ SET_DUCKED

#define SET_DUCKED ( s)
Value:
((s).flags |= FL_DUCKED)

Definition at line 211 of file player.qh.

Referenced by PM_ClientMovement_UpdateStatus().

◆ SET_JUMP_HELD

#define SET_JUMP_HELD ( s)
Value:
((s).flags &= ~FL_JUMPRELEASED)

Definition at line 204 of file player.qh.

Referenced by CheckWaterJump(), PlayerJump(), and sys_phys_simulate().

◆ UNSET_DUCKED

#define UNSET_DUCKED ( s)
Value:
((s).flags &= ~FL_DUCKED)

Definition at line 212 of file player.qh.

Referenced by PM_ClientMovement_UpdateStatus(), PutObserverInServer(), PutPlayerInServer(), and vehicles_enter().

◆ UNSET_JUMP_HELD

#define UNSET_JUMP_HELD ( s)
Value:
((s).flags |= FL_JUMPRELEASED)

Definition at line 205 of file player.qh.

Referenced by CheckPlayerJump(), and sys_phys_fix().

◆ WAS_ONGROUND

#define WAS_ONGROUND ( s)
Value:
int lastflags
Definition player.qh:63
const int FL_ONGROUND
Definition constants.qh:78

Definition at line 207 of file player.qh.

Referenced by PlayerJump(), and sys_phys_update().

◆ WAS_ONSLICK

#define WAS_ONSLICK ( s)
Value:
const int FL_ONSLICK
Definition constants.qh:90

Definition at line 208 of file player.qh.

Referenced by PlayerJump().

Function Documentation

◆ AdjustAirAccelQW()

float AdjustAirAccelQW ( float accelqw,
float factor )

Definition at line 261 of file player.qc.

262{
263 return copysign(bound(0.000001, 1 - (1 - fabs(accelqw)) * factor, 1), accelqw);
264}
float copysign(float e, float f)
Definition mathlib.qc:225
float bound(float min, float value, float max)
float fabs(float f)

References bound(), copysign(), and fabs().

Referenced by Physics_UpdateStats(), and PM_Accelerate().

◆ float()

float ( entity ,
float  ) = #628

References entity().

◆ GeomLerp()

float GeomLerp ( float a,
float _lerp,
float b )

Definition at line 154 of file player.qc.

155{
156 return a == 0 ? (_lerp < 1 ? 0 : b)
157 : b == 0 ? (_lerp > 0 ? 0 : a)
158 : a * (fabs(b / a) ** _lerp);
159}

References fabs().

Referenced by HUD_StrafeHUD(), StrafeHUD_DetermineHudAngle(), and sys_phys_simulate().

◆ IsFlying()

bool IsFlying ( entity a)

Definition at line 836 of file player.qc.

837{
838 if(IS_ONGROUND(this))
839 return false;
841 return false;
842 tracebox(this.origin, this.mins, this.maxs, this.origin - '0 0 24', MOVE_NORMAL, this);
843 //traceline(this.origin, this.origin - '0 0 48', MOVE_NORMAL, this);
844 if(trace_fraction < 1)
845 return false;
846 return true;
847}
float waterlevel
Definition player.qh:226
const float MOVE_NORMAL
vector mins
vector maxs
vector origin
float trace_fraction
const int WATERLEVEL_SWIMMING
Definition movetypes.qh:13
#define IS_ONGROUND(s)
Definition movetypes.qh:16

◆ NET_HANDLE()

NET_HANDLE ( setpause ,
bool  )

Definition at line 371 of file player.qh.

372{
373 bool ispaused = boolean(ReadByte());
374 PHYS_INPUT_BUTTON_CHAT(sender) = ispaused;
375 return true;
376}
#define PHYS_INPUT_BUTTON_CHAT(s)
Definition player.qh:159
int ReadByte()

References boolean, PHYS_INPUT_BUTTON_CHAT, and ReadByte().

◆ REPLICATE_INIT() [1/3]

REPLICATE_INIT ( bool ,
cvar_cl_jetpack_jump  )

◆ REPLICATE_INIT() [2/3]

REPLICATE_INIT ( bool ,
cvar_cl_movement_track_canjump  )

◆ REPLICATE_INIT() [3/3]

REPLICATE_INIT ( string ,
cvar_cl_physics  )

◆ STATIC_INIT()

STATIC_INIT ( PHYS_INPUT_BUTTON )

Definition at line 167 of file player.qh.

168{
169 localcmd("alias +hook +button6\n");
170 localcmd("alias -hook -button6\n");
171
172 localcmd("alias +jetpack +button10\n");
173 localcmd("alias -jetpack -button10\n");
174
175 localcmd("alias +dodge +button11\n");
176 localcmd("alias -dodge -button11\n");
177}
void localcmd(string command,...)

References localcmd().

◆ unpause_update()

void unpause_update ( )

Definition at line 357 of file player.qh.

358{
359 static bool waspaused;
360 bool ispaused = PHYS_INPUT_BUTTON_CHAT(this);
361 if (ispaused == waspaused) return;
362 waspaused = ispaused;
363 // if (!serverispaused) return; // TODO: find out somehow
364 if (ispaused) return; // ignore setting pause, server will get those presses anyway, but it won't get releases
365 int channel = MSG_C2S;
366 WriteHeader(channel, setpause);
367 WriteByte(channel, ispaused);
368}
const int MSG_C2S
Definition net.qh:199
#define WriteHeader(to, id)
Definition net.qh:221
void WriteByte(float data, float dest, float desto)

References MSG_C2S, PHYS_INPUT_BUTTON_CHAT, WriteByte(), and WriteHeader.

Referenced by CSQC_UpdateView().

Variable Documentation

◆ autocvar_cl_jumpspeedcap_max

string autocvar_cl_jumpspeedcap_max

Definition at line 223 of file player.qh.

◆ autocvar_cl_jumpspeedcap_min

string autocvar_cl_jumpspeedcap_min

Definition at line 222 of file player.qh.

◆ autocvar_g_footsteps

bool autocvar_g_footsteps

Definition at line 54 of file player.qh.

Referenced by PM_Footsteps().

◆ autocvar_g_jump_grunt

bool autocvar_g_jump_grunt

Definition at line 41 of file player.qh.

Referenced by PlayerJump().

◆ autocvar_g_maxspeed

float autocvar_g_maxspeed

Definition at line 43 of file player.qh.

Referenced by CreatureFrame_FallDamage().

◆ autocvar_g_movement_highspeed

float autocvar_g_movement_highspeed = 1

Definition at line 44 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_g_movement_highspeed_q3_compat

bool autocvar_g_movement_highspeed_q3_compat = 0

Definition at line 45 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_g_physics_clientselect

bool autocvar_g_physics_clientselect

Definition at line 42 of file player.qh.

Referenced by ClientCommand_physics(), and Physics_ClientOption().

◆ autocvar_g_physics_clientselect_default

string autocvar_g_physics_clientselect_default

Definition at line 40 of file player.qh.

Referenced by Physics_ClientOption().

◆ autocvar_g_physics_clientselect_options

string autocvar_g_physics_clientselect_options

Definition at line 39 of file player.qh.

Referenced by ClientCommand_physics(), and Physics_Valid().

◆ autocvar_speedmeter

bool autocvar_speedmeter

Definition at line 46 of file player.qh.

Referenced by PlayerJump(), and sys_phys_land().

◆ autocvar_sv_accelerate

float autocvar_sv_accelerate

Definition at line 32 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_airaccel_qw

float autocvar_sv_airaccel_qw

Definition at line 15 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_airaccel_qw_stretchfactor

float autocvar_sv_airaccel_qw_stretchfactor

Definition at line 18 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_airaccel_sideways_friction

float autocvar_sv_airaccel_sideways_friction

Definition at line 22 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_airaccelerate

float autocvar_sv_airaccelerate

Definition at line 34 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_aircontrol

float autocvar_sv_aircontrol

Definition at line 23 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_aircontrol_flags

int autocvar_sv_aircontrol_flags

Definition at line 24 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_aircontrol_penalty

float autocvar_sv_aircontrol_penalty

Definition at line 26 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_aircontrol_power

float autocvar_sv_aircontrol_power

Definition at line 25 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_airspeedlimit_nonqw

float autocvar_sv_airspeedlimit_nonqw

Definition at line 17 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_airstopaccelerate

float autocvar_sv_airstopaccelerate

Definition at line 36 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_airstopaccelerate_full

bool autocvar_sv_airstopaccelerate_full

Definition at line 37 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_airstrafeaccel_qw

float autocvar_sv_airstrafeaccel_qw

Definition at line 16 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_airstrafeaccelerate

float autocvar_sv_airstrafeaccelerate

Definition at line 20 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_friction

float autocvar_sv_friction

Definition at line 31 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_jumpspeedcap_max

string autocvar_sv_jumpspeedcap_max

Definition at line 47 of file player.qh.

Referenced by FixClientCvars(), and sys_phys_fixspeed().

◆ autocvar_sv_jumpspeedcap_max_disable_on_ramps

float autocvar_sv_jumpspeedcap_max_disable_on_ramps

Definition at line 48 of file player.qh.

◆ autocvar_sv_jumpspeedcap_min

string autocvar_sv_jumpspeedcap_min

Definition at line 49 of file player.qh.

Referenced by FixClientCvars(), and sys_phys_fixspeed().

◆ autocvar_sv_jumpvelocity

float autocvar_sv_jumpvelocity

Definition at line 50 of file player.qh.

Referenced by bot_calculate_stepheightvec(), havocbot_movetogoal(), and Physics_UpdateStats().

◆ autocvar_sv_jumpvelocity_crouch

float autocvar_sv_jumpvelocity_crouch

Definition at line 51 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_maxairspeed

float autocvar_sv_maxairspeed

Definition at line 52 of file player.qh.

Referenced by Physics_UpdateStats(), racer_exit(), and raptor_exit().

◆ autocvar_sv_maxairstrafespeed

float autocvar_sv_maxairstrafespeed

Definition at line 19 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_maxspeed

◆ autocvar_sv_player_crouch_maxs

vector autocvar_sv_player_crouch_maxs = '16 16 25'

Definition at line 349 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_player_crouch_mins

vector autocvar_sv_player_crouch_mins = '-16 -16 -24'

Definition at line 350 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_player_crouch_viewoffset

vector autocvar_sv_player_crouch_viewoffset = '0 0 20'

Definition at line 351 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_player_maxs

vector autocvar_sv_player_maxs = '16 16 45'

Definition at line 346 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_player_mins

vector autocvar_sv_player_mins = '-16 -16 -24'

Definition at line 347 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_player_viewoffset

vector autocvar_sv_player_viewoffset = '0 0 35'

Definition at line 348 of file player.qh.

Referenced by Physics_UpdateStats(), and PutObserverInServer().

◆ autocvar_sv_slickaccelerate

float autocvar_sv_slickaccelerate

Definition at line 35 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_stopspeed

float autocvar_sv_stopspeed

Definition at line 33 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_track_canjump

float autocvar_sv_track_canjump

Definition at line 38 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_warsowbunny_accel

float autocvar_sv_warsowbunny_accel

Definition at line 29 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_warsowbunny_airforwardaccel

float autocvar_sv_warsowbunny_airforwardaccel

Definition at line 27 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_warsowbunny_backtosideratio

float autocvar_sv_warsowbunny_backtosideratio

Definition at line 30 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_warsowbunny_topspeed

float autocvar_sv_warsowbunny_topspeed

Definition at line 28 of file player.qh.

Referenced by Physics_UpdateStats().

◆ autocvar_sv_warsowbunny_turnaccel

float autocvar_sv_warsowbunny_turnaccel

Definition at line 21 of file player.qh.

Referenced by Physics_UpdateStats().

◆ buttons_old

int buttons_old

Definition at line 67 of file player.qh.

Referenced by sys_phys_monitor().

◆ conveyor

entity conveyor

Definition at line 57 of file player.qh.

Referenced by PutPlayerInServer(), sys_phys_postupdate(), and sys_phys_update().

◆ gravity

float gravity

Definition at line 61 of file player.qh.

◆ hook

◆ items

◆ lastclassname

string lastclassname

Definition at line 70 of file player.qh.

Referenced by sys_phys_postupdate(), and sys_phys_spectator_control().

◆ lastflags

int lastflags

Definition at line 63 of file player.qh.

Referenced by sys_phys_postupdate().

◆ lastground

float lastground

◆ movement

◆ movement_old

vector movement_old

Definition at line 68 of file player.qh.

Referenced by sys_phys_monitor().

◆ race_penalty

float race_penalty

Definition at line 59 of file player.qh.

Referenced by penalty_touch(), penalty_use(), spawnfunc(), and spawnfunc().

◆ swamp_slowdown

float swamp_slowdown

Definition at line 62 of file player.qh.

◆ teleport_time

◆ v_angle

◆ v_angle_old

vector v_angle_old

Definition at line 69 of file player.qh.

Referenced by sys_phys_monitor().

◆ wasFlying

bool wasFlying

Definition at line 65 of file player.qh.

Referenced by PM_check_hitground(), and sys_phys_update().

◆ waterlevel

◆ watertype