Sign in to follow this  
xPr3d4t0Rs

Change Model

Recommended Posts

Theres 5 different models for "marines", the sniper model, the assault model, spec ops model, demolitions model.

In my mod I use this:


playerModelForWeapon( weapon )
{
self detachAll();
weaponClass = tablelookup( "mp/statstable.csv", 4, weapon, 2 );
switch ( weaponClass )
{
case "weapon_smg":
[[game[self.pers["team"]+"_model"]["SPECOPS"]]]();
break;
case "weapon_assault":
[[game[self.pers["team"]+"_model"]["ASSAULT"]]]();
break;
case "weapon_sniper":
[[game[self.pers["team"]+"_model"]["SNIPER"]]]();
break;
case "weapon_shotgun":
[[game[self.pers["team"]+"_model"]["RECON"]]]();
break;
default:
[[game[self.pers["team"]+"_model"]["ASSAULT"]]]();
break;
}
}

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this