PDA

View Full Version : spawn without an enforcer?


FireSlash
29th Oct 2001, 09:10 PM
im working on a small gametype, and i need players to have only a chainsaw. any way to do this?

HOB
29th Oct 2001, 10:20 PM
yea

Magus
29th Oct 2001, 10:21 PM
function AddDefaultInventory( pawn PlayerPawn )
{
if ( PlayerPawn.IsA('Spectator') || (bRequireReady && (CountDown > 0)) )
return;

// Spawn ChainSaw
GiveWeapon(PlayerPawn, "Botpack.ChainSaw");
}

FireSlash
30th Oct 2001, 06:34 AM
i usedif ( aPlayer.IsA('Spectator')
|| aPlayer.FindInventoryType(class'chainsaw') != None )
return;
c = Spawn(class'chainsaw',,, Location);
if (c != None)
{
c.bHeldItem = true;
c.GiveTo( aPlayer );
c.Activate();
aPlayer.SelectedItem = c;
}
enf = weapon(aplayer.FindInventoryType(class'botpack.enforcer'));
if (enf != None)
aplayer.DeleteInventory(enf);
thanks though.:)

HOB
30th Oct 2001, 12:29 PM
they can still have impact hammers and translocators