home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Joystick Magazine 2002 December
/
JOY143_CD1.iso
/
Data
/
Demos
/
Platoon
/
pl_demo.exe
/
Inf
/
Gamelogic
/
GameEvents
/
uCmd.UnmountSoldier.inf
< prev
next >
Wrap
INI File
|
2002-10-14
|
4KB
|
271 lines
[uCmd.UnmountSoldier : cESEvent]
{
Name = uCmd.UnmountSoldier
Enabled = 1
Type = 1
RefreshRate = 0
[Procedures *]
{
[: cESNote]
{
Text = "Made by Snowman"
}
[: cESIf]
{
Note = "CommandType == UNMOUNT"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandType]
{
}
[Value2 : cUEnumCommand]
{
ECommand = 23
}
}
[Then *]
{
[: cESIf]
{
Note = "CommandState == 0 / Set Delay"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 0
}
}
[Then *]
{
[: cUSetCommandIntParam]
{
[Value : cESFIntAdd]
{
[Variable1 : cESFIntMul]
{
[Variable1 : cUGetMountOrder]
{
[Vehicle : cUGetCommandTarget]
{
}
[Passenger : cGetThisUnit]
{
}
}
[Variable2 : cESFIntConst]
{
Value = 10
}
}
[Variable2 : cESFIntConst]
{
Value = 1
}
}
}
[: cUSetCommandState]
{
[State : cESFIntConst]
{
Value = 1
}
}
[: cSEnablePlayerControl]
{
Enabled = 0
AutoEnable = 1
ClearSelection = 0
[Squad : cSGetByThisUnit]
{
}
}
}
[Else *]
{
}
}
[: cESIf]
{
Note = "CommandState == 1 / waiting for timer"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 1
}
}
[Then *]
{
[: cESIf]
{
Note = "CommandIntParam == 0 / Unmount"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandIntParam]
{
}
[Value2 : cESFIntConst]
{
Value = 0
}
}
[Then *]
{
[: cUSetCommandState]
{
[State : cESFIntConst]
{
Value = 2
}
}
[: cUSetMoveTarget]
{
Translate = 1
[Target : cUGetCommandTarget]
{
}
}
[: cUUnmountSoldier]
{
[Target : cUGetCommandTarget]
{
}
}
}
[Else *]
{
}
}
[: cEFreeze]
{
GroupName = ""
Time = 10
[Target : cUGetCommandTarget]
{
}
}
}
[Else *]
{
}
}
[: cESIf]
{
Note = "CommandState == 2"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 2
}
}
[Then *]
{
[: cESIf]
{
Note = ""
[Condition : cUIsMoveTargetReached]
{
Note = ""
}
[Then *]
{
[: cUCommandCompleted]
{
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
[: cUDecIntParam]
{
Value = 1
}
}
[Else *]
{
}
}
}
}