home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Joystick Magazine 2002 December
/
JOY143_CD1.iso
/
Data
/
Demos
/
Platoon
/
pl_demo.exe
/
Inf
/
Gamelogic
/
GameEvents
/
Goal.Fire_Sniper_All_A.Exec.inf
< prev
next >
Wrap
INI File
|
2002-10-14
|
3KB
|
215 lines
[Goal.Fire_Sniper_All_A.Exec : cESEvent]
{
Name = Goal.Fire_Sniper_All_A.Exec
Enabled = 1
Type = 4
RefreshRate = 0
[Procedures *]
{
[: cESIf]
{
Note = ""
[Condition : cESCOr]
{
Note = ""
[OrConditions *]
{
[: cESCNumEquals]
{
Note = ""
[Value1 : cSGetGoalState]
{
}
[Value2 : cESFIntConst]
{
Value = 0
}
}
[: cESCNumEquals]
{
Note = ""
[Value1 : cESFIntByVar]
{
VariableName = SquadToAttackChanged
}
[Value2 : cESFIntConst]
{
Value = 1
}
}
}
}
[Then *]
{
[: cSSetGoalState]
{
[State : cESFIntConst]
{
Value = 1
}
}
[: cESNote]
{
Text = "2 = Sniper"
}
[: cESLog]
{
Text = "Fire command issued"
}
[: cESIf]
{
Note = ""
[Condition : cESCNot]
{
Note = ""
[Condition : cMIsEmptyTarget]
{
Note = ""
[Target : cSRetrieveCmdTarget]
{
VarName = SquadToAttack
}
}
}
[Then *]
{
[: cESIf]
{
Note = ""
[Condition : cSIsEventInRegistry]
{
Note = ""
Type = 16
[Squad : cSGetByThisSquad]
{
}
[Entity : cSGetByThisSquad]
{
}
}
[Then *]
{
[: cCGeneral]
{
Type = 1
CommandDelay = 1
Command = 7
[Squad : cSGetByThisSquad]
{
}
[Target : cSRetrieveCmdTarget]
{
VarName = SquadToAttack
}
[IntParam : cESFIntConst]
{
Value = 2
}
}
}
[Else *]
{
[: cCGeneral]
{
Type = 1
CommandDelay = 8
Command = 7
[Squad : cSGetByThisSquad]
{
}
[Target : cSRetrieveCmdTarget]
{
VarName = SquadToAttack
}
[IntParam : cESFIntConst]
{
Value = 2
}
}
}
}
[: cSRegisterEvent]
{
EventType = 16
[Entity : cSGetByThisSquad]
{
}
[LifeTime : cESFIntAdd]
{
[Variable1 : cESGetGlobalParameter]
{
ParamName = time_to_choose_new_target
}
[Variable2 : cESFIntConst]
{
Value = 2
}
}
}
}
[Else *]
{
}
}
[: cUStoreCmdTarget]
{
VarName = LastAttackedTarget
LocalVar = 0
[Target : cSRetrieveCmdTarget]
{
VarName = SquadToAttack
}
}
}
[Else *]
{
}
}
}
}