home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
Gameplay
/
Classes
/
ACTION_ThrowWeapon.uc
< prev
next >
Wrap
Text File
|
2003-12-11
|
452b
|
19 lines
class ACTION_ThrowWeapon extends ScriptedAction;
var(Action) vector WeaponVelocity;
function bool InitActionFor(ScriptedController C)
{
if ( (C.Pawn == None) || (C.Pawn.Weapon == None) )
return false;
if ( WeaponVelocity == vect(0,0,0) )
WeaponVelocity = C.Pawn.Velocity + vect(0,0,250) + 300 * vector(C.Pawn.Rotation);
C.Pawn.TossWeapon(WeaponVelocity);
return false;
}
defaultproperties
{
ActionString="throw weapon"
}