8,046
edits
Paradox-01 (talk | contribs) mNo edit summary |
Paradox-01 (talk | contribs) mNo edit summary |
||
Line 15: | Line 15: | ||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<Oni | <Oni> | ||
< | <Objects> | ||
'''''[...]''''' | '''''[...]''''' | ||
</ | </Objects> | ||
</Oni> | </Oni> | ||
'''''[...]''''' means at least one patrol block. Paste all a patrol data into there (this includes <PATR Id="..."> and </PATR> tag). | |||
'''''[...]''''' means at least one patrol block. Paste all a patrol data into there (this includes < | |||
'''example''' | '''example''' | ||
< | <PATR Id="8283"> | ||
<Header> | <Header> | ||
<Flags> | <Flags></Flags> | ||
<Position>-408.598755 60.1162872 -1402.20361</Position> | <Position>-408.598755 60.1162872 -1402.20361</Position> | ||
<Rotation>0 0 0</Rotation> | <Rotation>0 0 0</Rotation> | ||
Line 52: | Line 51: | ||
</Points> | </Points> | ||
</OSD> | </OSD> | ||
</ | </PATR> | ||
* table content compatible with onisplit 0.9.61.0 | |||
* if an update is needed extract '''[http://paradox.oni2.net/OniGalore/BINACJBOPatrol%20Path.oni this]''' file | |||
' | {{Table}} | ||
!XML tag | |||
!flags / values | |||
!description | |||
|- | |||
|<PATR Id="..."> | |||
|positive integer | |||
|actually the Id doesn't matter in collections | |||
|- | |||
|<Flags> | |||
| | |||
|should be unimportant | |||
|- | |||
|<Position> | |||
| | |||
|should be unimportant | |||
:: | |- | ||
: | |<Rotation> | ||
: | | | ||
: | |should be unimportant | ||
: | |- | ||
|<Name> | |||
|string | |||
:: <MoveThroughFlag FlagId="..." Distance="..." /> | |for BSL command "ai2_dopath" | ||
|- | |||
|<PatrolId> | |||
|positive integer | |||
|used in [[OBD:BINA/OBJC/CHAR|BINA/OBJC/CHAR]] | |||
|- | |||
|valign=top|<ReturnToNearest> | |||
| | |||
:1 | |||
:0 | |||
|valign=top|1 = Yes; 0 = No | |||
|- | |||
:: <FaceToFlagAndFire FlagId="..." Frames="..." Spread="..." /> | |<Points> | ||
| | |||
|holds actual patrol content | |||
|- | |||
|<MoveToFlag FlagId="..." /> | |||
|positive integer | |||
| | |||
|- | |||
|<Stop /> | |||
| | |||
| | |||
|- | |||
|<Pause Frames="..." /> | |||
|positive integer | |||
| | |||
|- | |||
|<LookAtFlag FlagId="..." /> | |||
|positive integer | |||
| | |||
|- | |||
|<LookAtPoint X="..." Y="..." Z="..." /> | |||
|integer | |||
| | |||
|- | |||
|<MoveAndFaceFlag FlagId="..." /> | |||
|positive integer | |||
| | |||
|- | |||
|<Loop>...</Loop> | |||
| | |||
|Patrol path tags can be enclosed by that loop tag. | |||
|- | |||
|valign=top|<MovementMode Mode="..." /> | |||
| | |||
:ByAlertLevel | |||
:Stop | |||
:Crouch | |||
:Creep | |||
:WalkNoAim | |||
:Walk | |||
:RunNoAim | |||
:Run | |||
| | |||
|- | |||
|<MoveToPoint X="..." Y="..." Z="..." /> | |||
|integer | |||
| | |||
|- | |||
|valign=top|<LockFacing Facing="..." /> | |||
| | |||
:Forward | |||
:Backward | |||
:Left | |||
:Right | |||
:Stopped | |||
| | |||
|- | |||
|<MoveThroughFlag FlagId="..." Distance="..." /> | |||
|positive integer | |||
| | |||
|- | |||
|valign=top|<MoveThroughPoint X="..." Y="..." Z="..." Distance="..." /> | |||
|X, Y, Z = positive integer; Distance = integer | |||
| | |||
|- | |||
|<StopLooking /> | |||
| | |||
| | |||
|- | |||
|<FreeFacing /> | |||
| | |||
| | |||
|- | |||
|<GlanceAtFlagFor FlagId="..." Frames="..." /> | |||
|positive integer | |||
| | |||
|- | |||
|<MoveNearFlag FlagId="..." Distance="..." /> | |||
| | |||
| | |||
|- | |||
|<Scan Frames="..." Rotation="..." /> | |||
| | |||
| | |||
|- | |||
|<StopScanning /> | |||
| | |||
| | |||
|- | |||
|<MoveToFlagLookAndWait Frames="..." FlagId="..." Rotation="..." /> | |||
| | |||
| | |||
|- | |||
|valign=top|<CallScript ScriptId="..." /> | |||
| | |||
|Calls a BSL function by Id. For example if Id is 1 then BSL function is named "patrolscript0001" | |||
|- | |||
|valign=top|<ForkScript ScriptId="..." /> | |||
| | |||
|Forks a BSL function by Id. For example if Id is 2 then BSL function is named "patrolscript0002" | |||
|- | |||
|valign=top|<IgnorePlayer Value="..." /> | |||
| | |||
:No | |||
:Yes | |||
| | |||
|- | |||
|<FaceToFlagAndFire FlagId="..." Frames="..." Spread="..." /> | |||
| | |||
| | |||
|} |
edits