home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Joystick Magazine 2002 December
/
JOY143_CD1.iso
/
Data
/
Demos
/
Platoon
/
pl_demo.exe
/
Inf
/
Gamelogic
/
GameEvents
/
uCmd.Mount.inf
< prev
next >
Wrap
INI File
|
2002-10-14
|
13KB
|
765 lines
[uCmd.Mount : cESEvent]
{
Name = uCmd.Mount
Enabled = 1
Type = 1
RefreshRate = 0
[Procedures *]
{
[: cESNote]
{
Text = "Made by Snowman"
}
[: cESIf]
{
Note = "CommandType == MOUNT"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandType]
{
}
[Value2 : cUEnumCommand]
{
ECommand = 22
}
}
[Then *]
{
[: cESIf]
{
Note = "CommandState == 0"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 0
}
}
[Then *]
{
[: cESIf]
{
Note = "ha mar halott a celjarmu akkor done"
[Condition : cESCNot]
{
Note = ""
[Condition : cSIsActive]
{
Note = ""
[Squad : cUGetCommandTarget]
{
}
}
}
[Then *]
{
[: cUCommandCompleted]
{
}
[: cESBreak]
{
}
}
[Else *]
{
}
}
[: cUTurnTo]
{
[Target : cUGetCommandTarget]
{
}
[TurnToTarget : NULL]
{
}
}
[: cUSetCommandState]
{
[State : cESFIntConst]
{
Value = 1
}
}
[: cUClearPassengerContainer]
{
[Target : cUGetCommandTarget]
{
}
[TimeStamp : NULL]
{
}
}
}
[Else *]
{
[: cESIf]
{
Note = "CommandState == 1"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 1
}
}
[Then *]
{
[: cESIf]
{
Note = "Can Mount ?"
[Condition : cUCanMount]
{
Note = ""
[Target : cUGetCommandTarget]
{
}
[Passenger : cSGetByThisUnit]
{
}
}
[Then *]
{
[: cUSetCommandState]
{
[State : cESFIntConst]
{
Value = 2
}
}
[: cUAddToPassengerContainer]
{
[Target : cUGetCommandTarget]
{
}
[Passenger : cGetThisUnit]
{
}
}
}
[Else *]
{
[: cUCommandCompleted]
{
}
[: cESBreak]
{
}
}
}
}
[Else *]
{
[: cESIf]
{
Note = "CommandState == 2"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 2
}
}
[Then *]
{
[: cUSetCommandIntParam]
{
[Value : cESFIntAdd]
{
[Variable1 : cESFIntConst]
{
Value = 5
}
[Variable2 : cESFIntMul]
{
[Variable1 : cESFIntConst]
{
Value = 10
}
[Variable2 : cUGetMountOrder]
{
[Vehicle : cUGetCommandTarget]
{
}
[Passenger : cGetThisUnit]
{
}
}
}
}
}
[: cUSetCommandState]
{
[State : cESFIntConst]
{
Value = 3
}
}
}
[Else *]
{
[: cESIf]
{
Note = "CommandState == 3"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 3
}
}
[Then *]
{
[: cESIf]
{
Note = "IntParam < 1"
[Condition : cESCNumLess]
{
Note = ""
[Value1 : cUGetCommandIntParam]
{
}
[Value2 : cESFIntConst]
{
Value = 1
}
}
[Then *]
{
[: cUSetMoveTarget]
{
Translate = 0
[Target : cUGetDummyPos]
{
DummyName = _MOUNTPOS
[Entity : cUGetCommandTarget]
{
}
}
}
[: cESIf]
{
Note = ""
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetUnitType]
{
[Entity : cUGetCommandTarget]
{
}
}
[Value2 : cUUnitTypeEnum]
{
EUnitType = 2
}
}
[Then *]
{
[: cUPlayAnim]
{
AnimName = MOUNTAPC
[Target : NULL]
{
}
[Direction : cUGetDummyDirection]
{
DummyName = _MOUNTPOS
[Entity : cUGetCommandTarget]
{
}
}
}
}
[Else *]
{
[: cUPlayAnim]
{
AnimName = MOUNT
[Target : NULL]
{
}
[Direction : cUGetDummyDirection]
{
DummyName = _MOUNTPOS
[Entity : cUGetCommandTarget]
{
}
}
}
}
}
[: cUSetCommandState]
{
[State : cESFIntConst]
{
Value = 4
}
}
[: cTStartTimer]
{
TimerName = MountTimer
}
}
[Else *]
{
}
}
}
[Else *]
{
[: cESIf]
{
Note = "CommandState == 4"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 4
}
}
[Then *]
{
[: cESIf]
{
Note = "Timer == 1"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cTGetTimerValue]
{
TimerName = MountTimer
}
[Value2 : cESFIntConst]
{
Value = 1
}
}
[Then *]
{
[: cUSetMoveTarget]
{
Translate = 0
[Target : cUGetDummyPos]
{
DummyName = _MOUNTPOS
[Entity : cUGetCommandTarget]
{
}
}
}
[: cESIf]
{
Note = ""
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetUnitType]
{
[Entity : cUGetCommandTarget]
{
}
}
[Value2 : cUUnitTypeEnum]
{
EUnitType = 2
}
}
[Then *]
{
[: cUPlayAnim]
{
AnimName = MOUNTAPC
[Target : NULL]
{
}
[Direction : cUGetDummyDirection]
{
DummyName = _MOUNTPOS
[Entity : cUGetCommandTarget]
{
}
}
}
}
[Else *]
{
[: cUPlayAnim]
{
AnimName = MOUNT
[Target : NULL]
{
}
[Direction : cUGetDummyDirection]
{
DummyName = _MOUNTPOS
[Entity : cUGetCommandTarget]
{
}
}
}
}
}
}
[Else *]
{
}
}
[: cESIf]
{
Note = "Timer == 10"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cTGetTimerValue]
{
TimerName = MountTimer
}
[Value2 : cESFIntConst]
{
Value = 10
}
}
[Then *]
{
[: cTStartTimer]
{
TimerName = MountTimer
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
}
}
}
}
}
}
}
}
[: cUDecIntParam]
{
Value = 1
}
[: cESIf]
{
Note = "CommandState > 3"
[Condition : cESCNumGreater]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 3
}
}
[Then *]
{
[: cESIf]
{
Note = IsMoveTargetReached
[Condition : cUIsMoveTargetReached]
{
Note = ""
}
[Then *]
{
[: cEFreeze]
{
GroupName = ""
Time = 10
[Target : cUGetCommandTarget]
{
}
}
[: cESIf]
{
Note = "CommandState == 4"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 4
}
}
[Then *]
{
[: cUMount]
{
[Target : cUGetCommandTarget]
{
}
}
[: cSEnablePlayerControl]
{
Enabled = 0
AutoEnable = 1
ClearSelection = 1
[Squad : cSGetByThisUnit]
{
}
}
[: cUSetCommandState]
{
[State : cESFIntConst]
{
Value = 5
}
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
[: cESIf]
{
Note = "Ha a target inactive"
[Condition : cESCNot]
{
Note = ""
[Condition : cSIsActive]
{
Note = ""
[Squad : cUGetCommandTarget]
{
}
}
}
[Then *]
{
[: cUStop]
{
[Entity : NULL]
{
}
}
[: cUCommandCompleted]
{
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
}
}