rott/kf_sources/KFMod/Classes/BileJet.uc
2026-07-14 20:27:09 +07:00

38 lines
766 B
Ucode

//-----------------------------------------------------------
//
//-----------------------------------------------------------
class BileJet extends Actor;
var() rotator BileRotation;
function PostBeginPlay()
{
settimer(0.1, false);
}
simulated function timer()
{
local vector X,Y,Z;
local int i;
local rotator R;
GetAxes(Rotation,X,Y,Z);
// Randomly chuch out vomit globs
for (i = 0; i < 4; i++)
{
R.Yaw = BileRotation.Yaw * FRand();
R.Pitch = BileRotation.Pitch;
R.Roll = BileRotation.Roll;
Spawn(Class'KFMod.KFBloatVomit',,,Location,Rotator(X >> R));
}
}
defaultproperties
{
bHidden=True
LifeSpan=2.500000
BileRotation=(Pitch=2000,Yaw=65535,Roll=0)
}