In _rank.gsc I added the thumper, and this is the code for putting it in shop:
Code:
if(self.menu == 3)
{
if(self.bounty >= level.itemCost["Thumper"])
{
self.bounty -= level.itemCost["Thumper"];
self giveWeapon("m79_mp", 0, false);
self switchToWeapon("m79_mp");
self thread maps\mp\gametypes\_hud_message::hintMessage("Zombie Infecter bought");
self notify("CASH");
}
else
{
self iPrintlnBold("^1Not Enough ^3Cash");
}
}
Then this is DoZombie():
Code:
doZombie()
{
if(self.team == "allies")
{
self notify("menuresponse", game["menu_team"], "axis");
self.bounty = 0;
self notify("CASH");
self.ck = self.kills;
self.cd = self.deaths;
self.cs = self.suicides;
self.maxhp = 200;
self thread doPerksSetup();
wait .1;
self notify("menuresponse", "changeclass", "class3");
return;
}
wait .1;
self notify("menuresponse", "changeclass", "class3");
self takeAllWeapons();
self _clearPerks();
self giveWeapon("beretta_tactical_mp", 0, false);
self thread doZW();
self maps\mp\perks\_perks::givePerk("specialty_marathon");
self maps\mp\perks\_perks::givePerk("specialty_automantle");
self maps\mp\perks\_perks::givePerk("specialty_fastmantle");
self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");
self maps\mp\perks\_perks::givePerk("specialty_thermal");
if(self.thermal == 1)
{
self ThermalVisionFOFOverlayOn();
}
if(self.throwingknife == 1)
{
self thread monitorThrowingKnife();
self maps\mp\perks\_perks::givePerk( "throwingknife_mp" );
self setWeaponAmmoClip("throwingknife_mp", 1);
}
self thread doPerkCheck();
self.maxhealth = self.maxhp;
self.health = self.maxhealth;
self.moveSpeedScaler = 1.15;
self setClientDvar("g_knockback", 3500);
notifySpawn = spawnstruct();
notifySpawn.titleText = "^0Zombie";
notifySpawn.notifyText = "Eliminate the humans, spread the virus!";
notifySpawn.glowColor = (1.0, 0.0, 0.0);
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifySpawn );
self thread doZombieBounty();
self thread doZombieShop();
}
And also this:
Code:
doZW()
{
self endon ( "disconnect" );
self endon ( "death" );
while(1)
{
if(self getCurrentWeapon() == "beretta_tactical_mp")
{
self setWeaponAmmoClip("beretta_tactical_mp", 0);
self setWeaponAmmoStock("beretta_tactical_mp", 0);
}
else
{
current = self getCurrentWeapon();
self takeWeapon(current);
self switchToWeapon("beretta_tactical_mp");
}
wait .5;
}
}
I think that the clue is on the last code, because I could put thumper working but without M9, so do you know how to do this?