View Single Post
Old 07-08-2005, 09:29 PM   #39
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
gloat really should only work when saber is out because it shows sparks even when weapon is not saber...

Code:
			if ( ent->client->ps.weapon == WP_SABER )
			{
				if ( ent->client->saber[0].gloatAnim != -1 )
				{
					anim = ent->client->saber[0].gloatAnim;
				}
				else if ( ent->client->saber[1].model 
						&& ent->client->saber[1].model[0]
						&& ent->client->saber[1].gloatAnim != -1 )
				{
					anim = ent->client->saber[1].gloatAnim;
				}
				else
				{
					switch ( ent->client->ps.fd.saberAnimLevel )
					{
					case SS_FAST:
					case SS_TAVION:
						anim = BOTH_VICTORY_FAST;
						break;
					case SS_MEDIUM:
						anim = BOTH_VICTORY_MEDIUM;
						break;
					case SS_STRONG:
					case SS_DESANN:
						if ( ent->client->ps.saberHolstered )
						{//turn on first
							G_Sound( ent, CHAN_WEAPON, ent->client->saber[0].soundOn );
						}
						ent->client->ps.saberHolstered = 0;
						anim = BOTH_VICTORY_STRONG;
						break;
					case SS_DUAL:
						if ( ent->client->ps.saberHolstered == 1 
							&& ent->client->saber[1].model 
							&& ent->client->saber[1].model[0] )
						{//turn on second saber
							G_Sound( ent, CHAN_WEAPON, ent->client->saber[1].soundOn );
						}
						else if ( ent->client->ps.saberHolstered == 2 )
						{//turn on first
							G_Sound( ent, CHAN_WEAPON, ent->client->saber[0].soundOn );
						}
						ent->client->ps.saberHolstered = 0;
						anim = BOTH_VICTORY_DUAL;
						break;
					case SS_STAFF:
						if ( ent->client->ps.saberHolstered )
						{//turn on first
							G_Sound( ent, CHAN_WEAPON, ent->client->saber[0].soundOn );
						}
						ent->client->ps.saberHolstered = 0;
						anim = BOTH_VICTORY_STAFF;
						break;
					}
				}
				break;
			}
		}


iojamp project lead / coder
ensiform is offline   you may: quote & reply,