messageClient(%client,'MsgItemPickup','',0,"GunItem");
For whatever reason, this won't give me a gun.
Full code of unfinished stuffforget
package zombiegame
{
function GameConnection::spawnPlayer(%cl)
{
parent::spawnPlayer(%cl); //ffs do this before ANYTHING
if(%cl.infected == nil)
{
%cl.infected = 0;
}
if(%cl.infected == 0)
{
// %cl.joinTeam("Humans");
messageClient(%client,'MsgItemPickup','',0,"GunItem"); //%client,'MsgItemPickup',don't know what goes here,slot number,item
}
if(%cl.infected == 1)
{
// %cl.joinTeam("Zombies");
}
// %cl.centerPrint("Welcome to Brickybob's Quarantine Chaos mod!",3);
%cl.centerPrint(%cl.infected,3);
}
function GameConnection::onDeath(%cl)
{
parent::onDeath(%cl);
%cl.infected = 1;
// %this.spawnPlayer(); - causes beef ghosts; only use under direct ghost butcher supervision
}
};
activatePackage(zombiegame);