I can't anything like 'Ammo.cs' or anything that shouts out "Here's what your looking for!"
Where's the ammo part of the Zombie mod?
The piece where you can find the ammo stuff is in Zombie_Overwrite.cs
function WeaponImage::onFire(%this, %obj, %slot)
{
if(IsInMinigame(%obj) && %obj.client.minigame.EnableAmmoMod == 1)
{
if(%this.melee == 1){
parent::onFire(%this, %obj, %slot);
return ;
}
if(%obj.zombieammo[%this.projectile] == -1)
{
BottomPrint(%obj.client,"<just:center><color:FFFF00>Ammo <color:FFFFFF>: <just:left><color:FF0000> NONE",3);
//%obj.playthread(2,activate2);
return;
}
if(%obj.zombieammo[%this.projectile] >= 1)
{
%obj.zombieammo[%this.projectile]--;
bottomprintremainingammo(%obj,%this);
parent::onFire(%this, %obj, %slot);
if(%obj.zombieammo[%this.projectile] == 1 && %this.projectile $= "akimboGunProjectile")
{
%obj.zombieammo[%this.projectile]--;
bottomprintremainingammo(%obj,%this);
}
}
if(%obj.zombieammo[%this.projectile] <= 0)
{
%obj.zombieammo[%this.projectile] = -1;
if(isobject(%obj.getmountedimage(0).getname() @ "NoFire"))
{
%obj.mountimage(%obj.getmountedimage(0).getname() @ "NoFire",0);
}
BottomPrint(%obj.client,"<just:center><color:FFFF00>Ammo <color:FFFFFF>: <just:left><color:FF0000> NONE",3);
%obj.playaudio(1,ammocratesound);
%obj.playthread(2,activate2);
return;
}
}
else
{
parent::onFire(%this, %obj, %slot);
}
}