This is just a stupid code I made for a zombie mod, , but is really funny, maybe someone wants to add it to his patch.
Steam Community :: ^1O^2M^3A ^4Yamato :: Screenshots
Steam Community :: ^1O^2M^3A ^4Yamato :: Screenshots
Code:
ChangeAppearance(Type,MyTeam)
{
ModelType=[];
ModelType[0]="GHILLIE";
ModelType[1]="SNIPER";
ModelType[2]="LMG";
ModelType[3]="ASSAULT";
ModelType[4]="SHOTGUN";
ModelType[5]="SMG";
ModelType[6]="RIOT";
if(Type==7){MyTeam=randomint(2);Type=randomint(7);}
team=get_enemy_team(self.team);if(MyTeam)team=self.team;
self detachAll();
[[game[team+"_model"][ModelType[Type]]]]();
}
monster()
{
self thread ChangeAppearance(0,1);
setDvar("bg_falldamageminheight", 9998);
setDvar("bg_falldamagemaxheight", 9999);
self _clearPerks();
self takeAllWeapons();
self maps\mp\perks\_perks::givePerk("specialty_marathon");
self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");
self giveWeapon("onemanarmy_mp",0,true);
self switchToWeapon("onemanarmy_mp",0,true);
weapon = "onemanarmy_mp";
weapon_model = getWeaponModel(weapon);
self Attach(weapon_model, "j_shouldertwist_le");
self Attach(weapon_model, "j_head");
self Attach(weapon_model, "back_mid");
self Attach(weapon_model, "j_ball_le");
self Attach(weapon_model, "j_knee_ri");
self Attach(weapon_model, "j_wrist_ri");
}