home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Joystick Magazine 2002 December
/
JOY143_CD1.iso
/
Data
/
Demos
/
Platoon
/
pl_demo.exe
/
Inf
/
Gamelogic
/
GameEvents
/
uSub.SMS_Move-All.inf
< prev
next >
Wrap
INI File
|
2002-10-14
|
4KB
|
249 lines
[uSub.SMS_Move/All : cESEvent]
{
Name = uSub.SMS_Move/All
Enabled = 1
Type = 2
RefreshRate = 0
[Procedures *]
{
[: cESSwitch]
{
Note = "Switch on CommandSubState"
[Value : cUGetCommandSubState]
{
}
[Case *]
{
[: cESCase]
{
Note = "0 - Start"
Value = 0
[Procedures *]
{
[: cESIf]
{
Note = ""
[Condition : cUIsUserCommand]
{
Note = ""
}
[Then *]
{
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = -1
}
}
}
[Else *]
{
[: cESIf]
{
Note = "Tavol van?"
[Condition : cESCNumGreater]
{
Note = ""
[Value1 : cEGetDistance]
{
[Source : cSGetByThisUnit]
{
}
[Dest : cUGetCommandTarget]
{
}
}
[Value2 : cESGetGlobalParameter]
{
ParamName = distance_move_running
}
}
[Then *]
{
[: cESIf]
{
Note = ""
[Condition : cSIsEventInRegistry]
{
Note = ""
Type = 5
[Squad : cSGetByThisUnit]
{
}
[Entity : cSGetByThisUnit]
{
}
}
[Then *]
{
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = -1
}
}
}
[Else *]
{
[: cESIf]
{
Note = "Ha lottek ra mostanaban"
[Condition : cSIsEventInRegistry]
{
Note = ""
Type = 8
[Squad : cSGetByThisUnit]
{
}
[Entity : cSGetByThisUnit]
{
}
}
[Then *]
{
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = -1
}
}
}
[Else *]
{
[: cESLog]
{
Text = "Change movement style for move. Because I'm not under attack, I switch to FAST"
}
[: cUSetMovementStyle]
{
Style = 3
[Unit : cGetThisUnit]
{
}
}
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = 1
}
}
}
}
}
}
}
[Else *]
{
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = -1
}
}
}
}
}
}
}
}
[: cESCase]
{
Note = "1 - Wait for finish"
Value = 1
[Procedures *]
{
[: cESIf]
{
Note = ""
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 3
}
}
[Then *]
{
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = -1
}
}
}
[Else *]
{
}
}
}
}
}
}
}
}