summaryrefslogtreecommitdiff
path: root/src/cgame/cg_players.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-08-28 03:50:50 +0000
committerTim Angus <tim@ngus.net>2003-08-28 03:50:50 +0000
commit559ea9195c7074efb420c44da9c32ca677b7b097 (patch)
tree13e154c1caa46eb53fab2dcff7b6aa0c2dc350a6 /src/cgame/cg_players.c
parent93c8c1016c83537b0284cd53b790e5525ff1ee8c (diff)
* Fixed jetpack animation weirdness
* Made the jetpack client effect a little less spurious
Diffstat (limited to 'src/cgame/cg_players.c')
-rw-r--r--src/cgame/cg_players.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c
index 276b384a..f7042456 100644
--- a/src/cgame/cg_players.c
+++ b/src/cgame/cg_players.c
@@ -1493,7 +1493,6 @@ static void CG_PlayerNonSegAngles( centity_t *cent, vec3_t srcAngles, vec3_t non
//==========================================================================
-#define JET_SPREAD 30.0f
#define JET_LIFETIME 1500
/*
@@ -1512,6 +1511,7 @@ static void CG_PlayerUpgrades( centity_t *cent, refEntity_t *torso )
vec3_t pvel;
vec3_t angles;
int addTime;
+ float spread;
refEntity_t jetpack;
refEntity_t flash;
@@ -1541,22 +1541,25 @@ static void CG_PlayerUpgrades( centity_t *cent, refEntity_t *torso )
{
trap_S_AddLoopingSound( cent->currentState.number, cent->lerpOrigin,
vec3_origin, cgs.media.jetpackAscendSound );
- addTime = 80;
+ addTime = 70;
vel[ 2 ] = -60.0f;
+ spread = 30.0f;
}
else if( cent->currentState.pos.trDelta[ 2 ] < -10.0f )
{
trap_S_AddLoopingSound( cent->currentState.number, cent->lerpOrigin,
vec3_origin, cgs.media.jetpackDescendSound );
- addTime = 110;
- vel[ 2 ] = -45.0f;
+ addTime = 90;
+ vel[ 2 ] = -100.0f;
+ spread = 5.0f;
}
else
{
trap_S_AddLoopingSound( cent->currentState.number, cent->lerpOrigin,
vec3_origin, cgs.media.jetpackIdleSound );
- addTime = 100;
- vel[ 2 ] = -50.0f;
+ addTime = 80;
+ vel[ 2 ] = -80.0f;
+ spread = 15.0f;
}
memset( &flash, 0, sizeof( flash ) );
@@ -1583,7 +1586,7 @@ static void CG_PlayerUpgrades( centity_t *cent, refEntity_t *torso )
VectorScale( cent->currentState.pos.trDelta, 0.75f, pvel );
VectorAdd( vel, pvel, vel );
- CG_LaunchSprite( origin, vel, acc, JET_SPREAD,
+ CG_LaunchSprite( origin, vel, acc, spread,
0.5f, 4.0f, 20.0f, 128.0f, 0.0f,
rand( ) % 360, cg.time, cg.time, JET_LIFETIME,
cgs.media.smokePuffShader, qfalse, qfalse );