summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2002-04-06 05:09:20 +0000
committerTim Angus <tim@ngus.net>2002-04-06 05:09:20 +0000
commitb414c90e98a92c3c29bf3eb7d76ca6b089e95b34 (patch)
treed8845b9f88cc4ccf3d85147e7c97385e01c1b72c /src/game
parent0f4a33d3db91faaa7194ec4b25a570bf02e976e0 (diff)
Jetpack sounds and graphics
Diffstat (limited to 'src/game')
-rw-r--r--src/game/bg_misc.c34
-rw-r--r--src/game/bg_pmove.c4
2 files changed, 27 insertions, 11 deletions
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c
index c6241fbd..e6243391 100644
--- a/src/game/bg_misc.c
+++ b/src/game/bg_misc.c
@@ -3436,12 +3436,19 @@ void BG_PlayerStateToEntityState( playerState_t *ps, entityState_t *s, qboolean
s->weapon = ps->weapon;
s->groundEntityNum = ps->groundEntityNum;
- /*s->powerups = 0;
- for ( i = 0 ; i < MAX_POWERUPS ; i++ ) {
- if ( ps->powerups[ i ] ) {
- s->powerups |= 1 << i;
+ //store items held and active items in otherEntityNum
+ s->modelindex = 0;
+ s->modelindex2 = 0;
+ for( i = UP_NONE + 1; i < UP_NUM_UPGRADES; i++ )
+ {
+ if( BG_gotItem( i, ps->stats ) )
+ {
+ s->modelindex |= 1 << i;
+
+ if( BG_activated( i, ps->stats ) )
+ s->modelindex2 |= 1 << i;
}
- }*/
+ }
//TA: use powerups field to store team/class info:
s->powerups = ps->stats[ STAT_PTEAM ] | ( ps->stats[ STAT_PCLASS ] << 8 );
@@ -3529,12 +3536,19 @@ void BG_PlayerStateToEntityStateExtraPolate( playerState_t *ps, entityState_t *s
s->weapon = ps->weapon;
s->groundEntityNum = ps->groundEntityNum;
- /*s->powerups = 0;
- for ( i = 0 ; i < MAX_POWERUPS ; i++ ) {
- if ( ps->powerups[ i ] ) {
- s->powerups |= 1 << i;
+ //store items held and active items in otherEntityNum
+ s->modelindex = 0;
+ s->modelindex2 = 0;
+ for( i = UP_NONE + 1; i < UP_NUM_UPGRADES; i++ )
+ {
+ if( BG_gotItem( i, ps->stats ) )
+ {
+ s->modelindex |= 1 << i;
+
+ if( BG_activated( i, ps->stats ) )
+ s->modelindex2 |= 1 << i;
}
- }*/
+ }
//TA: use powerups field to store team/class info:
s->powerups = ps->stats[ STAT_PTEAM ] | ( ps->stats[ STAT_PCLASS ] << 8 );
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index e4b95260..017e9155 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -680,7 +680,7 @@ static void PM_JetPackMove( void ) {
if( pm->cmd.upmove > 0.0f )
wishvel[ 2 ] = 48.0f;
if( pm->cmd.upmove < 0.0f )
- wishvel[ 2 ] = -32.0f;
+ wishvel[ 2 ] = -48.0f;
VectorCopy( wishvel, wishdir );
wishspeed = VectorNormalize( wishdir );
@@ -688,6 +688,8 @@ static void PM_JetPackMove( void ) {
PM_Accelerate( wishdir, wishspeed, pm_flyaccelerate );
PM_StepSlideMove( qfalse, qfalse );
+
+ PM_ForceLegsAnim( LEGS_LAND );
}