|
|
@ -72,6 +72,7 @@ playermove_t *pmove = NULL; |
|
|
|
#define CHAR_TEX_COMPUTER 'P' |
|
|
|
#define CHAR_TEX_COMPUTER 'P' |
|
|
|
#define CHAR_TEX_GLASS 'Y' |
|
|
|
#define CHAR_TEX_GLASS 'Y' |
|
|
|
#define CHAR_TEX_FLESH 'F' |
|
|
|
#define CHAR_TEX_FLESH 'F' |
|
|
|
|
|
|
|
#define CHAR_TEX_SNOW 'O' |
|
|
|
|
|
|
|
|
|
|
|
#define STEP_CONCRETE 0 // default step sound
|
|
|
|
#define STEP_CONCRETE 0 // default step sound
|
|
|
|
#define STEP_METAL 1 // metal floor
|
|
|
|
#define STEP_METAL 1 // metal floor
|
|
|
@ -82,6 +83,7 @@ playermove_t *pmove = NULL; |
|
|
|
#define STEP_SLOSH 6 // shallow liquid puddle
|
|
|
|
#define STEP_SLOSH 6 // shallow liquid puddle
|
|
|
|
#define STEP_WADE 7 // wading in liquid
|
|
|
|
#define STEP_WADE 7 // wading in liquid
|
|
|
|
#define STEP_LADDER 8 // climbing ladder
|
|
|
|
#define STEP_LADDER 8 // climbing ladder
|
|
|
|
|
|
|
|
#define STEP_SNOW 9 |
|
|
|
|
|
|
|
|
|
|
|
#define PLAYER_FATAL_FALL_SPEED 1024// approx 60 feet
|
|
|
|
#define PLAYER_FATAL_FALL_SPEED 1024// approx 60 feet
|
|
|
|
#define PLAYER_MAX_SAFE_FALL_SPEED 580// approx 20 feet
|
|
|
|
#define PLAYER_MAX_SAFE_FALL_SPEED 580// approx 20 feet
|
|
|
@ -486,6 +488,25 @@ void PM_PlayStepSound( int step, float fvol ) |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case STEP_SNOW: |
|
|
|
|
|
|
|
switch( irand ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// right foot
|
|
|
|
|
|
|
|
case 0: |
|
|
|
|
|
|
|
pmove->PM_PlaySound( CHAN_BODY, "player/pl_snow1.wav", fvol, ATTN_NORM, 0, PITCH_NORM ); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 1: |
|
|
|
|
|
|
|
pmove->PM_PlaySound( CHAN_BODY, "player/pl_snow3.wav", fvol, ATTN_NORM, 0, PITCH_NORM ); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
// left foot
|
|
|
|
|
|
|
|
case 2: |
|
|
|
|
|
|
|
pmove->PM_PlaySound( CHAN_BODY, "player/pl_snow2.wav", fvol, ATTN_NORM, 0, PITCH_NORM ); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 3: |
|
|
|
|
|
|
|
pmove->PM_PlaySound( CHAN_BODY, "player/pl_snow4.wav", fvol, ATTN_NORM, 0, PITCH_NORM ); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -508,6 +529,8 @@ int PM_MapTextureTypeStepType( char chTextureType ) |
|
|
|
return STEP_TILE; |
|
|
|
return STEP_TILE; |
|
|
|
case CHAR_TEX_SLOSH: |
|
|
|
case CHAR_TEX_SLOSH: |
|
|
|
return STEP_SLOSH; |
|
|
|
return STEP_SLOSH; |
|
|
|
|
|
|
|
case CHAR_TEX_SNOW: |
|
|
|
|
|
|
|
return STEP_SNOW; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -647,6 +670,7 @@ void PM_UpdateStepSound( void ) |
|
|
|
pmove->flTimeStepSound = fWalking ? 400 : 300; |
|
|
|
pmove->flTimeStepSound = fWalking ? 400 : 300; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case CHAR_TEX_DIRT: |
|
|
|
case CHAR_TEX_DIRT: |
|
|
|
|
|
|
|
case CHAR_TEX_SNOW: |
|
|
|
fvol = fWalking ? 0.25 : 0.55; |
|
|
|
fvol = fWalking ? 0.25 : 0.55; |
|
|
|
pmove->flTimeStepSound = fWalking ? 400 : 300; |
|
|
|
pmove->flTimeStepSound = fWalking ? 400 : 300; |
|
|
|
break; |
|
|
|
break; |
|
|
|