diff options
author | mtiusanen <ams@daug.net> | 2014-10-21 19:44:29 +0300 |
---|---|---|
committer | mtiusanen <ams@daug.net> | 2014-10-21 19:44:29 +0300 |
commit | fd19ccb037e349286e3b72a1277c58079056fcc2 (patch) | |
tree | 0567b9261a53c205c5e3c02638ae2ba5eb3d7294 /src/game/bg_pmove.c | |
parent | dacb45bb2b1ca96a9fbd51b8380f5b10f1ce2123 (diff) |
Updated hummel movement to use vector arithmetic functions.
Increased chaingun spread and reduced the damage of it's 2ndary fire.
Mines explode on all aliens again.
Diffstat (limited to 'src/game/bg_pmove.c')
-rw-r--r-- | src/game/bg_pmove.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index c78129b..9728ff0 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -1400,10 +1400,8 @@ Only with the flight powerup static void PM_FlyMove( void ) { int i; - vec3_t wishvel; - float wishspeed; - vec3_t wishdir; - float scale; + vec3_t wishvel,wishdir; + float wishspeed,scale; // normal slowdown PM_Friction( ); @@ -1414,15 +1412,12 @@ static void PM_FlyMove( void ) // if( !scale ) { - wishvel[ 0 ] = 0; - wishvel[ 1 ] = 0; - wishvel[ 2 ] = 0; + VectorSet(wishvel,0.f,0.f,0.f); } else { - for( i = 0; i < 3; i++ ) - wishvel[ i ] = scale * pml.forward[ i ] * pm->cmd.forwardmove + scale * pml.right[ i ] * pm->cmd.rightmove; - + VectorScale(pml.forward,scale*pm->cmd.forwardmove,wishvel); + VectorMA(wishvel,scale*pm->cmd.rightmove,pml.right,wishvel); wishvel[ 2 ] += scale * pm->cmd.upmove; } |