home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Joystick Magazine 2002 December
/
JOY143_CD1.iso
/
Data
/
Demos
/
Platoon
/
pl_demo.exe
/
Inf
/
Gamelogic
/
GameEvents
/
uCmd.RemoveTrap.inf
< prev
next >
Wrap
INI File
|
2002-10-14
|
6KB
|
427 lines
[uCmd.RemoveTrap : cESEvent]
{
Name = uCmd.RemoveTrap
Enabled = 1
Type = 1
RefreshRate = 0
[Procedures *]
{
[: cESNote]
{
Text = "Old. Made by Snowman."
}
[: cESIf]
{
Note = ""
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandType]
{
}
[Value2 : cUEnumCommand]
{
ECommand = 17
}
}
[Then *]
{
[: cESIf]
{
Note = ""
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 0
}
}
[Then *]
{
[: cUSetCommandState]
{
[State : cESFIntConst]
{
Value = 1
}
}
[: cUSetMoveTarget]
{
Translate = 0
[Target : cMAddVectors]
{
[Arg1 : cUGetCommandTarget]
{
}
[Arg2 : cMMulVector]
{
[Arg1 : cMNormalizeVector]
{
[Arg1 : cMSubVectors]
{
[Arg1 : cUGetUnitPos]
{
[Unit : NULL]
{
}
}
[Arg2 : cUGetCommandTarget]
{
}
}
}
[Arg2 : cESFFloatConst]
{
Value = 1.4
}
}
}
}
[: cUSetPinpointMode]
{
}
}
[Else *]
{
[: cESIf]
{
Note = ""
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 1
}
}
[Then *]
{
[: cESIf]
{
Note = ""
[Condition : cUIsMoveTargetReached]
{
Note = ""
}
[Then *]
{
[: cESIf]
{
Note = ""
[Condition : cESCNumLessFloat]
{
Note = ""
[Value1 : cUGetDistanceFromMoveTarget]
{
[Unit : cGetThisUnit]
{
}
}
[Value2 : cESFFloatConst]
{
Value = 0.5
}
}
[Then *]
{
[: cUSetCommandState]
{
[State : cESFIntConst]
{
Value = 2
}
}
[: cUTurnTo]
{
[Target : cUGetCommandTarget]
{
}
[TurnToTarget : NULL]
{
}
}
}
[Else *]
{
[: cUCommandCompleted]
{
}
}
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
[: cESIf]
{
Note = ""
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 2
}
}
[Then *]
{
[: cESIf]
{
Note = ""
[Condition : cUIsInShootAngle]
{
Note = ""
}
[Then *]
{
[: cURemoveTrap]
{
[Target : NULL]
{
}
}
[: cESIf]
{
Note = "Trigger nullazasa"
[Condition : cUHasTriggered]
{
Note = ""
}
[Then *]
{
}
[Else *]
{
}
}
[: cUSetCommandState]
{
[State : cESFIntConst]
{
Value = 3
}
}
[: cSEnablePlayerControl]
{
Enabled = 0
AutoEnable = 1
ClearSelection = 0
[Squad : cSGetByThisUnit]
{
}
}
[: cTStartTimer]
{
TimerName = Remove
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
[: cESIf]
{
Note = ""
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandState]
{
}
[Value2 : cESFIntConst]
{
Value = 3
}
}
[Then *]
{
[: cESIf]
{
Note = ""
[Condition : cUHasTriggered]
{
Note = ""
}
[Then *]
{
[: cEHide]
{
GroupName = ""
[Target : cUGetCommandTarget]
{
}
}
[: cTRemoveTrap]
{
[Unit : cGetThisUnit]
{
}
[Trap : cUGetCommandTarget]
{
}
}
[: cUCommandCompleted]
{
}
}
[Else *]
{
}
}
[: cESIf]
{
Note = ""
[Condition : cESCNumGreater]
{
Note = ""
[Value1 : cTGetTimerValue]
{
TimerName = Remove
}
[Value2 : cESFIntConst]
{
Value = 60
}
}
[Then *]
{
[: cUCommandCompleted]
{
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
}
}
}
[Else *]
{
}
}
}
}