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_Assault-All.inf
< prev
next >
Wrap
INI File
|
2002-10-14
|
2KB
|
149 lines
[uSub.SMS_Assault/All : cESEvent]
{
Name = uSub.SMS_Assault/All
Enabled = 1
Type = 2
RefreshRate = 0
[Procedures *]
{
[: cESIf]
{
Note = ""
[Condition : cESCNumGreater]
{
Note = ""
[Value1 : cEGetDistance]
{
[Source : cGetThisUnit]
{
}
[Dest : cUGetSquadLastKnownTargetPos]
{
}
}
[Value2 : cESGetGlobalParameter]
{
ParamName = distance_assault_running
}
}
[Then *]
{
[: cESIf]
{
Note = Running?
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 3
}
}
[Then *]
{
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = -1
}
}
}
[Else *]
{
[: cESLog]
{
Text = "Too far: switching to FAST."
}
[: cUSetMovementStyle]
{
Style = 3
[Unit : cGetThisUnit]
{
}
}
}
}
}
[Else *]
{
[: cESIf]
{
Note = Normal?
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 2
}
}
[Then *]
{
[: cUSetMovementStyle]
{
Style = 3
[Unit : cGetThisUnit]
{
}
}
[: cESLog]
{
Text = "AI doesn't use NORMAL: switching to FAST."
}
}
[Else *]
{
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = -1
}
}
}
}
}
}
}
}