Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
cl_physics.qc File Reference
#include "physics.qh"
Include dependency graph for cl_physics.qc:
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)

Function Documentation

◆ sys_phys_ai()

void sys_phys_ai ( entity this)

Definition at line 21 of file cl_physics.qc.

21{}

References entity().

Referenced by sys_phys_update().

◆ sys_phys_fix()

void sys_phys_fix ( entity this,
float dt )

Definition at line 3 of file cl_physics.qc.

4{
5 this.team = myteam + 1; // is this correct?
7 this.items = STAT(ITEMS, this);
8 if (!(PHYS_INPUT_BUTTON_JUMP(this))) // !jump
9 UNSET_JUMP_HELD(this); // canjump = true
11}
int team
Definition main.qh:188
void PM_ClientMovement_UpdateStatus(entity this)
Definition player.qc:161
int items
Definition player.qh:227
vector movement
Definition player.qh:229
#define PHYS_INPUT_BUTTON_JUMP(s)
Definition player.qh:151
#define UNSET_JUMP_HELD(s)
Definition player.qh:205
#define PHYS_INPUT_MOVEVALUES(s)
Definition player.qh:257
#define STAT(...)
Definition stats.qh:82
int myteam
Definition teams.qh:60

References entity(), items, movement, myteam, PHYS_INPUT_BUTTON_JUMP, PHYS_INPUT_MOVEVALUES, PM_ClientMovement_UpdateStatus(), STAT, team, and UNSET_JUMP_HELD.

Referenced by sys_phys_update().

◆ sys_phys_fixspeed()

void sys_phys_fixspeed ( entity this,
float maxspeed_mod )

Definition at line 27 of file cl_physics.qc.

27{}

References entity().

Referenced by sys_phys_update().

◆ sys_phys_monitor()

void sys_phys_monitor ( entity this,
float dt )

Definition at line 19 of file cl_physics.qc.

19{}

References entity().

Referenced by sys_phys_update().

◆ sys_phys_override()

bool sys_phys_override ( entity this,
float dt )

Definition at line 13 of file cl_physics.qc.

14{
15 // no vehicle prediction
16 return hud != HUD_NORMAL;
17}
int hud
Definition main.qh:173
const int HUD_NORMAL
Definition constants.qh:47

References entity(), hud, and HUD_NORMAL.

Referenced by sys_phys_update().

◆ sys_phys_pregame_hold()

void sys_phys_pregame_hold ( entity this)

Definition at line 23 of file cl_physics.qc.

23{}

References entity().

Referenced by sys_phys_update().

◆ sys_phys_spectator_control()

void sys_phys_spectator_control ( entity this)

Definition at line 25 of file cl_physics.qc.

25{}

References entity().

Referenced by sys_phys_update().