home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Joystick Magazine 2002 December
/
JOY143_CD1.iso
/
Data
/
Demos
/
Platoon
/
pl_demo.exe
/
Inf
/
Gamelogic
/
GameEvents
/
Goal.TurnToFiringEnemy.Eval.inf
< prev
next >
Wrap
INI File
|
2002-10-14
|
6KB
|
384 lines
[Goal.TurnToFiringEnemy.Eval : cESEvent]
{
Name = Goal.TurnToFiringEnemy.Eval
Enabled = 1
Type = 4
RefreshRate = 0
[Procedures *]
{
[: cESIf]
{
Note = ""
[Condition : cSIsThisGoalCurrent]
{
Note = ""
}
[Then *]
{
[: cESIf]
{
Note = ""
[Condition : cESCNot]
{
Note = ""
[Condition : cSIsIdle]
{
Note = ""
[Squad : cSGetByThisSquad]
{
}
}
}
[Then *]
{
[: cESSetReturnValue]
{
[Value : cESFIntConst]
{
Value = 1
}
}
}
[Else *]
{
[: cSRegisterEvent]
{
EventType = 15
[Entity : cSGetByThisSquad]
{
}
[LifeTime : cESFIntConst]
{
Value = 15
}
}
[: cSRegisterEvent]
{
EventType = 14
[Entity : cSGetByThisSquad]
{
}
[LifeTime : cESFIntConst]
{
Value = 10
}
}
[: cESLog]
{
Text = "Goal ended naturally. Registry updated. (WANT_TURN_AROUND, WAIT)"
}
}
}
}
[Else *]
{
[: cESIf]
{
Note = "Hall valakit de nem lat senkit es nincs elotte se lovo ember?"
[Condition : cESCAnd]
{
Note = ""
[AndConditions *]
{
[: cMIsEmptyTarget]
{
Note = "nem lat senkit"
[Target : cSRetrieveCmdTarget]
{
VarName = SquadToAttack
}
}
}
}
[Then *]
{
[: cESSubrutine]
{
Subrutine = sSub.CalculateFiringEnemies
}
[: cESIf]
{
Note = "nem ures a ClosestFiringEnemy"
[Condition : cESCNot]
{
Note = ""
[Condition : cMIsEmptyTarget]
{
Note = ""
[Target : cSRetrieveCmdTarget]
{
VarName = ClosestFiringEnemy
}
}
}
[Then *]
{
[: cESIf]
{
Note = "de nem hall elolrol hangot"
[Condition : cMIsEmptyTarget]
{
Note = ""
[Target : cSRetrieveCmdTarget]
{
VarName = ClosestFiringEnemyInFront
}
}
[Then *]
{
[: cESIf]
{
Note = ""
[Condition : cESCNot]
{
Note = ""
[Condition : cSIsEventInRegistry]
{
Note = ""
Type = 1
[Squad : cSGetByThisSquad]
{
}
[Entity : cSGetByVariable]
{
[VariableName : cScriptVar]
{
VarName = ClosestFiringEnemy
}
}
}
}
[Then *]
{
[: cESSetReturnValue]
{
[Value : cESFIntConst]
{
Value = 1
}
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
[: cESIf]
{
Note = "Vagy impact hangot hallottunk."
[Condition : cSIsSoundEventNotInRegistry]
{
Note = ""
SoundOwner = 0
SoundType = 2
OmitSoundsByThisSquad = 0
}
[Then *]
{
[: cESIf]
{
Note = ""
[Condition : cSIsSoundEventAndSeek]
{
Note = ""
SoundOwner = 2
SoundType = 2
SeekAngle = 190
OmitSoundsByThisSquad = 0
}
[Then *]
{
[: cSSoundInsertToRegistry]
{
SoundOwner = 2
SoundType = 2
[LifeTime : cESGetGlobalParameter]
{
ParamName = soundevent_reprocess_delay
}
}
[: cUStoreCmdTarget]
{
VarName = ClosestFiringEnemy
LocalVar = 0
[Target : cSRetrieveCmdTarget]
{
VarName = SoundEventAndSeek
}
}
[: cESSetReturnValue]
{
[Value : cESFIntConst]
{
Value = 1
}
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
[: cESIf]
{
Note = "Aknarobbanast hallottunk?"
[Condition : cGEQIsEvent]
{
Note = ""
Event = 11
}
[Then *]
{
[: cESIf]
{
Note = "Kozel robbant akna?"
[Condition : cESCNumLess]
{
Note = ""
[Value1 : cEGetDistance]
{
[Source : cSGetByThisSquad]
{
}
[Dest : cSRetrieveCmdTarget]
{
VarName = GEQEntity
}
}
[Value2 : cESGetGlobalParameter]
{
ParamName = distance_mine_explosion_detection
}
}
[Then *]
{
[: cUStoreCmdTarget]
{
VarName = ClosestFiringEnemy
LocalVar = 0
[Target : cSRetrieveCmdTarget]
{
VarName = GEQEntity
}
}
[: cESSetReturnValue]
{
[Value : cESFIntConst]
{
Value = 1
}
}
}
[Else *]
{
}
}
}
[Else *]
{
}
}
}
}
}
}