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_Move-CanNotMoveCrawling.inf
< prev
next >
Wrap
INI File
|
2002-10-14
|
5KB
|
313 lines
[uSub.SMS_Move/CanNotMoveCrawling : cESEvent]
{
Name = uSub.SMS_Move/CanNotMoveCrawling
Enabled = 1
Type = 2
RefreshRate = 0
[Procedures *]
{
[: cESIf]
{
Note = "All vagy fut?"
[Condition : cESCNumNotEquals]
{
Note = ""
[Value1 : cUGetMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 1
}
}
[Then *]
{
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = -1
}
}
}
[Else *]
{
[: cESSwitch]
{
Note = "Switch on CommandState"
[Value : cUGetCommandSubState]
{
}
[Case *]
{
[: cESCase]
{
Note = "0 - start"
Value = 0
[Procedures *]
{
[: cESIf]
{
Note = ""
[Condition : cUIsUserCommand]
{
Note = ""
}
[Then *]
{
[: cESIf]
{
Note = "Is Crawling? !!!"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 1
}
}
[Then *]
{
[: cUSetMovementStyle]
{
Style = 2
[Unit : cGetThisUnit]
{
}
}
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = 1
}
}
[: cESLog]
{
Text = "Can't move crawling: Change movement style to FAST"
}
}
[Else *]
{
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = -1
}
}
}
}
}
[Else *]
{
[: cESIf]
{
Note = ""
[Condition : cESCNumGreater]
{
Note = ""
[Value1 : cEGetDistance]
{
[Source : cSGetByThisUnit]
{
}
[Dest : cUGetCommandTarget]
{
}
}
[Value2 : cESGetGlobalParameter]
{
ParamName = distance_move_running
}
}
[Then *]
{
[: cUSetMovementStyle]
{
Style = 3
[Unit : cGetThisUnit]
{
}
}
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = 1
}
}
[: cESLog]
{
Text = "Destination is too far: Changing movement style to FAST"
}
}
[Else *]
{
[: cESIf]
{
Note = "Is Crawling?"
[Condition : cESCNumEquals]
{
Note = ""
[Value1 : cUGetMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 1
}
}
[Then *]
{
[: cUSetMovementStyle]
{
Style = 3
[Unit : cGetThisUnit]
{
}
}
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = 1
}
}
[: cESLog]
{
Text = "Can't move crawling: Changing movement style to FAST"
}
}
[Else *]
{
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = -1
}
}
}
}
}
}
}
}
}
}
[: cESCase]
{
Note = "1 - wait to finish"
Value = 1
[Procedures *]
{
[: cESIf]
{
Note = ""
[Condition : cESCNumNotEquals]
{
Note = ""
[Value1 : cUGetMovementStyle]
{
}
[Value2 : cUEnumMovementStyle]
{
EMovementStyle = 1
}
}
[Then *]
{
[: cUSetCommandSubState]
{
[State : cESFIntConst]
{
Value = -1
}
}
}
[Else *]
{
}
}
}
}
}
}
}
}
}
}