OFF Line in exchange sometimes they are gone until I walk back in other zone and I'm coming there again 3-4 times and then they are OK. I passed from both client and server this job and then only client and then back to both - OFF-Line do works more borked than ON-Line. I was trying to simulate a candle burning more closer to reality.
Speaking without to show anything means nothing. As a faster method I did an external Screen capture (I don't install stuff to slow me down) so I captured 10 seconds of sample archived on my GDrive.
I was using a subclass of Light with small fine tuning at defaultproperties having some code (which I can change).
Spoiler
Code: Select all
//=============================================================================
// BurningLight.
//=============================================================================
class BurningLight expands Light;
var INT i;
var() Texture Sk1, Sk2;
var() float DScaleMin, DScaleMax;
/*
replication
{
unreliable if (ROLE==ROLE_Authority)
Sk1, Sk2, DscaleMin, DscaleMax, i;
}
*/
simulated state() Burning
{
Begin:
if ( Sk1 == None || Sk2 == None )
Goto('End');
LoopBurn:
if ( bCorona )
{
// if (Level.NetMode != NM_DedicatedServer)
// {
i = Rand(2);
if ( i <= 0 )
Skin = Sk1;
if (i >= 1)
Skin = Sk2;
DrawScale = RandRange(DScaleMin,DScaleMax);
// }
if ( FRand()<0.1 )
Spawn (class'UT_BlackSmoke',,,Location+vect(0,0,10)).RemoteRole=ROLE_None;
}
Sleep(RandRange(0.1,0.16));
GoTo ('LoopBurn');
End:
Stop;
}