FIXED mod ! (but map trigger timer must be reseted to 120 sec)
This commit is contained in:
BIN
AcidFactory/FastDL/BisouJael_SPEED.umx.uz
Normal file
BIN
AcidFactory/FastDL/BisouJael_SPEED.umx.uz
Normal file
Binary file not shown.
BIN
AcidFactory/FastDL/CTF-AcidFactory.unr.uz
Normal file
BIN
AcidFactory/FastDL/CTF-AcidFactory.unr.uz
Normal file
Binary file not shown.
BIN
AcidFactory/FastDL/FunPackage000a.u.uz
Normal file
BIN
AcidFactory/FastDL/FunPackage000a.u.uz
Normal file
Binary file not shown.
Binary file not shown.
@@ -9,29 +9,20 @@ var bool bDoDamage; //Internal state variable
|
||||
var float TimePassed; //Internal time variable
|
||||
var float DamageDelay; //Internal time variable
|
||||
|
||||
var int savedDamagePerSec;
|
||||
var bool REP_bActive;
|
||||
var bool bActive;
|
||||
|
||||
|
||||
defaultproperties
|
||||
replication
|
||||
{
|
||||
Tag=trigSlimezone
|
||||
bStatic=False
|
||||
bDestructive=False
|
||||
bWaterZone=False
|
||||
EntrySound=None
|
||||
ExitSound=None
|
||||
EntryActor=None
|
||||
ExitActor=None
|
||||
DamagePerSec=0
|
||||
viewFlash=(X=0.000000,Y=0.000000,Z=0.000000)
|
||||
ViewFog=(X=0.000000,Y=0.000000,Z=0.000000)
|
||||
reliable if( Role==ROLE_Authority )
|
||||
REP_bActive;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
// Network replication.
|
||||
|
||||
function EnableSlim()
|
||||
simulated function EnableSlim()
|
||||
{
|
||||
//log("EnableSlim");
|
||||
bDestructive = True;
|
||||
bWaterZone = True;
|
||||
DamagePerSec = 10;
|
||||
@@ -42,12 +33,15 @@ function EnableSlim()
|
||||
ViewFlash = vect(-0.117200,-0.117200,-0.117200);
|
||||
ViewFog = vect(0.187500,0.281250,0.093750);
|
||||
bDoDamage = True;
|
||||
DamageDelay = 0;
|
||||
DamageDelay = 0;
|
||||
REP_bActive = True;
|
||||
bActive = True;
|
||||
|
||||
}
|
||||
|
||||
function DisableSlim()
|
||||
simulated function DisableSlim()
|
||||
{
|
||||
//log("DisableSlim");
|
||||
bDestructive = False;
|
||||
bWaterZone = False;
|
||||
DamagePerSec = 0;
|
||||
@@ -58,11 +52,14 @@ function DisableSlim()
|
||||
ViewFlash=vect(0,0,0);
|
||||
ViewFog=vect(0,0,0);
|
||||
bDoDamage = False;
|
||||
REP_bActive = False;
|
||||
bActive = False;
|
||||
|
||||
}
|
||||
|
||||
event BeginPlay()
|
||||
simulated event BeginPlay()
|
||||
{
|
||||
//log("BeginPlay");
|
||||
Super.BeginPlay();
|
||||
bTriggered=False;
|
||||
|
||||
@@ -78,8 +75,9 @@ event BeginPlay()
|
||||
}
|
||||
|
||||
|
||||
function Trigger( Actor Other, Pawn EventInstigator )
|
||||
simulated function Trigger( Actor Other, Pawn EventInstigator )
|
||||
{
|
||||
//log("Trigger");
|
||||
|
||||
bTriggered = true;
|
||||
TimePassed = 0;
|
||||
@@ -95,11 +93,25 @@ function Trigger( Actor Other, Pawn EventInstigator )
|
||||
|
||||
}
|
||||
|
||||
event Tick( float DeltaTime )
|
||||
{
|
||||
//local PlayerPawn pPawn;
|
||||
local Pawn P;
|
||||
|
||||
simulated function Tick( float DeltaTime )
|
||||
{
|
||||
local Pawn P;
|
||||
|
||||
if(bActive != REP_bActive)
|
||||
{
|
||||
//log("Remote change detected ! " @ REP_bActive);
|
||||
if (REP_bActive)
|
||||
{
|
||||
EnableSlim();
|
||||
}
|
||||
else
|
||||
{
|
||||
DisableSlim();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(bDoDamage)
|
||||
{
|
||||
DamageDelay += DeltaTime;
|
||||
@@ -137,3 +149,19 @@ event Tick( float DeltaTime )
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
Tag=trigSlimezone
|
||||
bStatic=False
|
||||
bDestructive=False
|
||||
bWaterZone=False
|
||||
EntrySound=None
|
||||
ExitSound=None
|
||||
EntryActor=None
|
||||
ExitActor=None
|
||||
DamagePerSec=0
|
||||
viewFlash=(X=0.000000,Y=0.000000,Z=0.000000)
|
||||
ViewFog=(X=0.000000,Y=0.000000,Z=0.000000)
|
||||
RemoteRole=ROLE_SimulatedProxy
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user