Xonotic
physics.qh File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void sys_phys_ai (entity this)
 
void sys_phys_fix (entity this, float dt)
 
void sys_phys_fixspeed (entity this, float maxspeed_mod)
 
void sys_phys_monitor (entity this, float dt)
 
bool sys_phys_override (entity this, float dt)
 
void sys_phys_pregame_hold (entity this)
 
void sys_phys_spectator_control (entity this)
 
 SYSTEM (phys, 30, 10)
 

Function Documentation

◆ sys_phys_ai()

void sys_phys_ai ( entity  this)

Definition at line 21 of file cl_physics.qc.

References bot_think(), and IS_BOT_CLIENT.

Referenced by sys_phys_update().

21 {}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sys_phys_fix()

void sys_phys_fix ( entity  this,
float  dt 
)

Definition at line 3 of file cl_physics.qc.

References items, movement, PHYS_INPUT_BUTTON_JUMP, PM_ClientMovement_UpdateStatus(), team, and UNSET_JUMP_HELD.

Referenced by sys_phys_update().

4 {
5  this.team = myteam + 1; // is this correct?
6  this.movement = PHYS_INPUT_MOVEVALUES(this);
7  this.items = STAT(ITEMS, this);
8  if (!(PHYS_INPUT_BUTTON_JUMP(this))) // !jump
9  UNSET_JUMP_HELD(this); // canjump = true
11 }
#define PHYS_INPUT_BUTTON_JUMP(s)
Definition: player.qh:147
int team
Definition: main.qh:157
void PM_ClientMovement_UpdateStatus(entity this)
Definition: player.qc:122
#define UNSET_JUMP_HELD(s)
Definition: player.qh:201
vector movement
float items
Definition: progsdefs.qc:145
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sys_phys_fixspeed()

void sys_phys_fixspeed ( entity  this,
float  maxspeed_mod 
)

Definition at line 27 of file cl_physics.qc.

References ftos(), max(), PHYS_MAXAIRSPEED, PHYS_MAXSPEED, speed, strcat(), and stuffcmd.

Referenced by sys_phys_update().

27 {}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sys_phys_monitor()

void sys_phys_monitor ( entity  this,
float  dt 
)

Definition at line 19 of file cl_physics.qc.

References anticheat_physics(), autocvar_sv_maxidle, autocvar_sv_maxidle_playertospectator, buttons_old, CS(), movement, movement_old, PHYS_INPUT_BUTTON_MASK, PM_check_nickspam(), PM_check_punch(), time, v_angle, and v_angle_old.

Referenced by sys_phys_update().

19 {}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sys_phys_override()

bool sys_phys_override ( entity  this,
float  dt 
)

Definition at line 13 of file cl_physics.qc.

References CS(), hud, PHYS_INPUT_BUTTON_MASK, PM_check_specialcommand(), and time.

Referenced by sys_phys_update().

14 {
15  // no vehicle prediction
16  return hud != HUD_NORMAL;
17 }
int hud
Definition: main.qh:142
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sys_phys_pregame_hold()

void sys_phys_pregame_hold ( entity  this)

Definition at line 23 of file cl_physics.qc.

References disableclientprediction, IS_PLAYER, move_movetype, MOVETYPE_NONE, MOVETYPE_WALK, set_movetype(), time, and velocity.

Referenced by sys_phys_update().

23 {}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sys_phys_spectator_control()

void sys_phys_spectator_control ( entity  this)

Definition at line 25 of file cl_physics.qc.

References autocvar_sv_spectator_speed_multiplier, autocvar_sv_spectator_speed_multiplier_max, autocvar_sv_spectator_speed_multiplier_min, bound(), CS(), impulse, lastclassname, and STR_PLAYER.

Referenced by sys_phys_update().

25 {}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SYSTEM()

SYSTEM ( phys  ,
30  ,
10   
)