home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Joystick Magazine 2002 December
/
JOY143_CD1.iso
/
Data
/
Demos
/
Platoon
/
pl_demo.exe
/
Inf
/
Gamelogic
/
GameEvents
/
Unit.Event.MovementStyleChanged-MG_P.inf
< prev
next >
Wrap
INI File
|
2002-10-14
|
6KB
|
396 lines
[Unit.Event.MovementStyleChanged/MG_P : cESEvent]
{
Name = Unit.Event.MovementStyleChanged/MG_P
Enabled = 1
Type = 4
RefreshRate = 0
[Procedures *]
{
[: cESIf]
{
Note = GuardMode?
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cESFIntFromMember]
{
VariableName = GuardMode
[Object : cSGetByThisUnit]
{
}
}
[Value2 : cESFIntConst]
{
Value = 1
}
}
[Then *]
{
[: cESIf]
{
Note = Lehasaltunk?
[Condition : cESCAnd]
{
Note = ""
[AndConditions *]
{
[: cESCNumEquals]
{
Note = "Most hasalunk"
[Value1 : cUGetMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 1
}
}
[: cESCNumNotEquals]
{
Note = ""
[Value1 : cUGetPrevMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 1
}
}
}
}
[Then *]
{
[: cESLog]
{
Text = "Set movement style to CRAWL in GUARD MODE causes unit to stop, and command complete."
}
[: cUStop]
{
[Entity : cGetThisUnit]
{
}
}
[: cUCommandCompleted]
{
}
}
[Else *]
{
}
}
}
[Else *]
{
[: cESIf]
{
Note = Lehasaltunk?
[Condition : cESCAnd]
{
Note = ""
[AndConditions *]
{
[: cESCNumEquals]
{
Note = Crawl
[Value1 : cUGetMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 1
}
}
[: cESCNumNotEquals]
{
Note = "Elozo nem crawl"
[Value1 : cUGetPrevMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 1
}
}
}
}
[Then *]
{
[: cESIf]
{
Note = "ASSAULT || FIRE || RETURN_FIRE || FIRE MULTIPLE?"
[Condition : cESCOr]
{
Note = "ASSAULT || FIRE || RETURN_FIRE || FIRE MULTIPLE?"
[OrConditions *]
{
[: cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandType]
{
}
[Value2 : cUEnumCommand]
{
ECommand = 11
}
}
[: cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandType]
{
}
[Value2 : cUEnumCommand]
{
ECommand = 7
}
}
[: cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandType]
{
}
[Value2 : cUEnumCommand]
{
ECommand = 29
}
}
[: cESCNumEquals]
{
Note = ""
[Value1 : cUGetCommandType]
{
}
[Value2 : cUEnumCommand]
{
ECommand = 28
}
}
}
}
[Then *]
{
[: cUStop]
{
[Entity : cGetThisUnit]
{
}
}
[: cESLog]
{
Text = "Switching to CRAWL while IN (ASSAULT, FIRE, FIRE_MULTIPLE or RETURN_FIRE) -> stop. (GUARD MODE OFF)"
}
}
[Else *]
{
[: cESLog]
{
Text = "Switching to CRAWL while NOT IN (ASSAULT, FIRE, FIRE_MULTIPLE or RETURN_FIRE) -> stop and command complete. (GUARD MODE OFF)"
}
[: cUStop]
{
[Entity : cGetThisUnit]
{
}
}
[: cUCommandCompleted]
{
}
}
}
}
[Else *]
{
[: cESIf]
{
Note = Felallitottak?
[Condition : cESCAnd]
{
Note = ""
[AndConditions *]
{
[: cESCNumNotEquals]
{
Note = ""
[Value1 : cUGetMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 1
}
}
[: cESCNumEquals]
{
Note = ""
[Value1 : cUGetPrevMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 1
}
}
}
}
[Then *]
{
[: cESIf]
{
Note = "ASSAULT || FIRE || RETURN_FIRE || FIRE_MULTIPLE?"
[Condition : cESCAnd]
{
Note = ""
[AndConditions *]
{
[: cESCNumEquals]
{
Note = "Most hasalunk"
[Value1 : cUGetMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 1
}
}
[: cESCNumNotEquals]
{
Note = ""
[Value1 : cUGetPrevMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 1
}
}
}
}
[Then *]
{
[: cESLog]
{
Text = "Switching _from_ CRAWL while (ASSAULT, FIRE, FIRE_MULTIPLE or RETURN_FIRE) -> command complete. (GUARD MODE OFF)"
}
[: cUStopAim]
{
[Entity : cGetThisUnit]
{
}
}
[: cUStop]
{
[Entity : cGetThisUnit]
{
}
}
[: cUCommandCompleted]
{
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
}
}
}
}
}
}