News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 29th Oct 2001, 09:10 PM   #1
FireSlash
Whats a FireSlash?
 
FireSlash's Avatar
 
Join Date: Feb. 3rd, 2001
Location: Central Ohio
Posts: 4,300
Thumbs up spawn without an enforcer?

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.
FireSlash is offline   Reply With Quote
Old 29th Oct 2001, 10:20 PM   #2
HOB
King of the Jungle
 
HOB's Avatar
 
Join Date: Mar. 14th, 2000
Location: CT
Posts: 22
Cool

yea
HOB is offline   Reply With Quote
Old 29th Oct 2001, 10:21 PM   #3
Magus
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");
}
Magus is offline   Reply With Quote
Old 30th Oct 2001, 06:34 AM   #4
FireSlash
Whats a FireSlash?
 
FireSlash's Avatar
 
Join Date: Feb. 3rd, 2001
Location: Central Ohio
Posts: 4,300
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);
thanks though.
__________________
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.
FireSlash is offline   Reply With Quote
Old 30th Oct 2001, 12:29 PM   #5
HOB
King of the Jungle
 
HOB's Avatar
 
Join Date: Mar. 14th, 2000
Location: CT
Posts: 22
Cool

they can still have impact hammers and translocators
HOB is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:26 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer