]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/ecs/systems/cl_physics.qc
Merge branch 'master' into TimePath/physics
[xonotic/xonotic-data.pk3dir.git] / qcsrc / ecs / systems / cl_physics.qc
1 #include "physics.qh"
2
3 void sys_phys_fix(entity this, float dt)
4 {
5         this.team = myteam + 1; // is this correct?
6         PHYS_WATERJUMP_TIME(this) -= dt;
7         this.oldmovement = this.movement;
8         this.movement = PHYS_INPUT_MOVEVALUES(this);
9         this.items = STAT(ITEMS, this);
10         this.spectatorspeed = STAT(SPECTATORSPEED, this);
11         if (!(PHYS_INPUT_BUTTON_JUMP(this))) // !jump
12                 UNSET_JUMP_HELD(this);           // canjump = true
13         PM_ClientMovement_UpdateStatus(this);
14 }
15
16 bool sys_phys_override(entity this)
17 {
18         // no vehicle prediction
19         return hud != HUD_NORMAL;
20 }
21
22 void sys_phys_monitor(entity this) {}
23
24 void sys_phys_ai(entity this) {}
25
26 void sys_phys_pregame_hold(entity this) {}
27
28 void sys_phys_spectator_control(entity this) {}
29
30 void sys_phys_fixspeed(entity this, float maxspeed_mod) {}