39 lines
894 B
Ucode
39 lines
894 B
Ucode
class ScrnLAWExplosion extends LAWExplosion;
|
|
//ScrN LAW Explosion has the light from nadelight added, but it is larger and lasts 0.5s instead of 0.25s
|
|
|
|
//added nadelight
|
|
simulated function PostBeginPlay()
|
|
{
|
|
Super.Postbeginplay();
|
|
NadeLight();
|
|
}
|
|
|
|
simulated function NadeLight()
|
|
{
|
|
if ( !Level.bDropDetail && (Instigator != None)
|
|
&& ((Level.TimeSeconds - LastRenderTime < 0.2) || (PlayerController(Instigator.Controller) != None)) )
|
|
{
|
|
bDynamicLight = true;
|
|
SetTimer(0.5, false); //0.25
|
|
}
|
|
else Timer();
|
|
}
|
|
|
|
simulated function Timer()
|
|
{
|
|
bDynamicLight = false;
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
LightType=LT_Steady
|
|
LightHue=20
|
|
LightSaturation=100
|
|
LightBrightness=220.000000
|
|
LightRadius=14.000000
|
|
LightCone=16
|
|
RemoteRole=ROLE_SimulatedProxy
|
|
bUnlit=False
|
|
bNotOnDedServer=False
|
|
}
|