![]() |
|
|
#1 |
|
im working on a small gametype, and i need players to have only a chainsaw. any way to do this?
__________________
Theory is when you know everything and nothing works. Practice is when things work, and no one knows why. Here we combine theory and practice. Nothing works and no one knows why. |
|
|
|
|
|
|
#2 |
|
yea
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Oct. 7th, 2001
Posts: 69
|
function AddDefaultInventory( pawn PlayerPawn )
{ if ( PlayerPawn.IsA('Spectator') || (bRequireReady && (CountDown > 0)) ) return; // Spawn ChainSaw GiveWeapon(PlayerPawn, "Botpack.ChainSaw"); } |
|
|
|
|
|
#4 |
|
i used
Code:
if ( 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);
__________________
Theory is when you know everything and nothing works. Practice is when things work, and no one knows why. Here we combine theory and practice. Nothing works and no one knows why. |
|
|
|
|
|
|
#5 |
|
they can still have impact hammers and translocators
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|