X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fphysics%2Fmovetypes%2Ftoss.qc;h=498852135b40fd0607ee78d1b86daff703e48ac5;hb=e424ba544c41fc40b241b17bd7c1d9c2fc930705;hp=db3ff72daa84551704c9930ed0955e9f9a03e13d;hpb=c13fdf2b49eff1d26abc73d42e33636162a9b527;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/physics/movetypes/toss.qc b/qcsrc/common/physics/movetypes/toss.qc index db3ff72da..498852135 100644 --- a/qcsrc/common/physics/movetypes/toss.qc +++ b/qcsrc/common/physics/movetypes/toss.qc @@ -1,3 +1,4 @@ +#include "toss.qh" #include "../player.qh" void _Movetype_Physics_Toss(entity this, float dt) // SV_Physics_Toss @@ -8,13 +9,13 @@ void _Movetype_Physics_Toss(entity this, float dt) // SV_Physics_Toss { UNSET_ONGROUND(this); } - else if (!this.move_groundentity) + else if (!this.groundentity) { return; } - else if (this.move_suspendedinair && wasfreed(this.move_groundentity)) + else if (this.move_suspendedinair && wasfreed(this.groundentity)) { - this.move_groundentity = NULL; + this.groundentity = NULL; return; } } @@ -78,7 +79,7 @@ void _Movetype_Physics_Toss(entity this, float dt) // SV_Physics_Toss if (trace_plane_normal.z > 0.7 && d < bstop && d > -bstop) { SET_ONGROUND(this); - this.move_groundentity = trace_ent; + this.groundentity = trace_ent; this.velocity = '0 0 0'; this.avelocity = '0 0 0'; } @@ -93,7 +94,7 @@ void _Movetype_Physics_Toss(entity this, float dt) // SV_Physics_Toss if (trace_plane_normal.z > 0.7) { SET_ONGROUND(this); - this.move_groundentity = trace_ent; + this.groundentity = trace_ent; if (trace_ent.solid == SOLID_BSP) this.move_suspendedinair = true; this.velocity = '0 0 0';