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

Go to the source code of this file.

Functions

void _Movetype_Physics_Push (entity this, float dt)
 STATIC_INIT (g_pushmove_moved)

Variables

IntrusiveList g_pushmove_moved
float ltime
vector moved_from
vector moved_fromangles

Function Documentation

◆ _Movetype_Physics_Push()

void _Movetype_Physics_Push ( entity this,
float dt )

Definition at line 201 of file push.qc.

202{
203 float oldltime = this.ltime;
204 float movetime = dt;
205 if(this.nextthink < this.ltime + dt)
206 {
207 movetime = this.nextthink - this.ltime;
208 if(movetime < 0)
209 movetime = 0;
210 }
211
212 if(movetime)
213 {
214 // advances this.ltime if not blocked
215 _Movetype_PushMove(this, movetime);
216 }
217
218 if(this.nextthink > oldltime && this.nextthink <= this.ltime)
219 {
220 this.nextthink = 0;
221 getthink(this)(this);
222 }
223}
float nextthink
float ltime
Definition net.qc:10
void _Movetype_PushMove(entity this, float dt)
Definition push.qc:3
#define getthink(e)

References _Movetype_PushMove(), entity(), getthink, ltime, and nextthink.

Referenced by _Movetype_Physics_Frame().

◆ STATIC_INIT()

STATIC_INIT ( g_pushmove_moved )

Definition at line 8 of file push.qh.

#define IL_NEW()
IntrusiveList g_pushmove_moved
Definition push.qh:7

References g_pushmove_moved, and IL_NEW.

Variable Documentation

◆ g_pushmove_moved

IntrusiveList g_pushmove_moved

Definition at line 7 of file push.qh.

Referenced by _Movetype_PushMove(), and STATIC_INIT().

◆ ltime

float ltime

Definition at line 11 of file push.qh.

◆ moved_from

vector moved_from

Definition at line 5 of file push.qh.

◆ moved_fromangles

vector moved_fromangles

Definition at line 5 of file push.qh.