summaryrefslogtreecommitdiff
path: root/src/cgame/cg_players.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2005-11-20 03:55:39 +0000
committerTim Angus <tim@ngus.net>2005-11-20 03:55:39 +0000
commite80ad4bf122eb05a5ed0c920e36cf656f98dc6e5 (patch)
treebdc1dcb2b08ed77abc72880e81989157c6003555 /src/cgame/cg_players.c
parentd6312bd43317816c281150e3baf7e8204a9452d8 (diff)
* Abstract attachment system
* Scriptable trails system * Various other stuff I'm too tired to try and remember now
Diffstat (limited to 'src/cgame/cg_players.c')
-rw-r--r--src/cgame/cg_players.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c
index 18a32efc..1ef18f8b 100644
--- a/src/cgame/cg_players.c
+++ b/src/cgame/cg_players.c
@@ -1631,9 +1631,10 @@ static void CG_PlayerUpgrades( centity_t *cent, refEntity_t *torso )
if( CG_IsParticleSystemValid( &cent->jetPackPS ) )
{
- CG_SetParticleSystemTag( cent->jetPackPS, jetpack, jetpack.hModel, "tag_flash" );
- CG_SetParticleSystemCent( cent->jetPackPS, cent );
- CG_AttachParticleSystemToTag( cent->jetPackPS );
+ CG_SetAttachmentTag( &cent->jetPackPS->attachment,
+ jetpack, jetpack.hModel, "tag_flash" );
+ CG_SetAttachmentCent( &cent->jetPackPS->attachment, cent );
+ CG_AttachToTag( &cent->jetPackPS->attachment );
}
}
else if( CG_IsParticleSystemValid( &cent->jetPackPS ) )