XML:BINA/OBJC/PATR: Difference between revisions

From OniGalore
< XML:BINA‎ | OBJC
Jump to navigation Jump to search
(Created page with '=BINA/OBCJ/PATR: patrol paths= '''general information''' * '''BINACJBOPatrol Path.oni''' is level specific. (It can be found in edition/GameDataFolder/lev...')
 
m (the frames were indeed patrolscripts whereby the patrolscript 7 in tctf_ii is missing)
Line 103: Line 103:
  <Name>Pod1_OpeningGuard_1</Name><PatrolId>27</PatrolId> lvl 14
  <Name>Pod1_OpeningGuard_1</Name><PatrolId>27</PatrolId> lvl 14
  <Name>Lab3_Sci_2</Name><PatrolId>34</PatrolId> lvl 14</font>
  <Name>Lab3_Sci_2</Name><PatrolId>34</PatrolId> lvl 14</font>
    <font color="#777777">'''(listing found stuff for research)''' <Unknown20 Frames="..." />
<Name>bait_2</Name><PatrolId>9</PatrolId> lvl 2 300 frames
<Name>bait_3</Name><PatrolId>38</PatrolId> lvl 2 300 frames
<Name>TerminalTwo_Striker_2</Name><PatrolId>16</PatrolId> lvl 4 0 frames
<Name>bomber_flee</Name><PatrolId>41</PatrolId> lvl 4 200 frames
<Name>red_retreat_1</Name><PatrolId>25</PatrolId> lvl 13 7 frames
<Name>red_retreat_2</Name><PatrolId>26</PatrolId> lvl 13 7 frames
<Name>patrol_27</Name><PatrolId>27</PatrolId> lvl 19 27 frames</font>

Revision as of 19:47, 10 December 2010

BINA/OBCJ/PATR: patrol paths

general information

  • BINACJBOPatrol Path.oni is level specific. (It can be found in edition/GameDataFolder/levelXX_... )
  • See HERE if you don't know how to convert an oni file into XML and vice versa.
  • See HERE if you are searching for more general information such as how to handle object coordinates.


BSL support

  • ai2_showpaths = 1
  • ai2_dopath ai_name path_name


XML structure

<?xml version="1.0" encoding="utf-8"?>
<Oni Version="0.9.30.0">
   <ObjectCollection>
           [...]
   </ObjectCollection>
</Oni>


[...] means at least one patrol block. Paste all a patrol data into there (this includes <Object ...> and </Object> tag).


example

       <Object Id="8283" Type="PATR">
           <Header>
               <Flags>0</Flags>
               <Position>-408.598755 60.1162872 -1402.20361</Position>
               <Rotation>0 0 0</Rotation>
           </Header>
           <OSD>
               <Name>patrol_32</Name>
               <PatrolId>32</PatrolId>
               <ReturnToNearest>1</ReturnToNearest>
               <Points>
                   <IgnorePlayer Value="Yes" />
                   <MovementMode Mode="Run" />
                   <MoveToFlag FlagId="545" />
                   <Loop>
                       <MoveToFlagLookAndWait Frames="120" FlagId="545" Rotation="5" />
                       <IgnorePlayer Value="No" />
                       <MoveThroughFlag FlagId="145" Distance="0" />
                       <MovementMode Mode="ByAlertLevel" />
                       <MoveToFlagLookAndWait Frames="300" FlagId="144" Rotation="60" />
                       <MoveThroughFlag FlagId="145" Distance="0" />
                       <MoveToFlagLookAndWait Frames="300" FlagId="146" Rotation="90" />
                   </Loop>
               </Points>
           </OSD>
       </Object>


tags

  • <Flags> .. unknown -- appears to be always 0
  • <Position> .. needed ?
  • <Rotation> .. needed ?
  • <Name> .. for BSL command "ai2_dopath"
  • <PatrolId> .. used in BINA/OBJC/CHAR
  • <ReturnToNearest> .. 1 and 0 possible
  • <Points> .. holds actual patrol content
<MoveToFlag FlagId="..." />
<Stop /> (never used in Oni)
<Pause Frames="..." />
<LookAtFlag FlagId="..." />
<LookAtPoint X="..." Y="..." Z="..." /> (never used in Oni)
<MoveAndFaceFlag FlagId="..." />
<Loop>...</Loop>
<MovementMode Mode="Walk" />
<MovementMode Mode="Creep" />
<MovementMode Mode="WalkNoAim" />
<MovementMode Mode="ByAlertLevel" />
<MovementMode Mode="RunNoAim" />
<MovementMode Mode="Run" />
<MoveToPoint X="..." Y="..." Z="..." /> (never used in Oni)
<LockFacing Facing="..." /> (not used in Oni)
<MoveThroughFlag FlagId="..." Distance="..." />
<MoveThroughPoint X="..." Y="..." Z="..." Distance="..." /> (not used in Oni)
<StopLooking />
<FreeFacing />
<GlanceAtFlagFor FlagId="..." Frames="..." />
<MoveNearFlag FlagId="..." Distance="..." />
<LookFor Frames="..." Rotation="..." />
<Unknown18 />
<MoveToFlagLookAndWait Frames="..." FlagId="..." Rotation="..." />
<Unknown20 Frames="..." />
<ScriptId ScriptId="..." />
<IgnorePlayer Value="No" /> <IgnorePlayer Value="Yes" />
<FaceToFlagAndFire FlagId="..." Frames="..." Spread="..." />
   (listing found stuff for research) <Unknown18 />
	<Name>p_sh_tank1</Name><PatrolId>39</PatrolId>			lvl 8
	<Name>p_sh_s2</Name><PatrolId>42</PatrolId>			lvl 8
	<Name>p_sh_s4</Name><PatrolId>43</PatrolId>			lvl 8
	<Name>p_sh_s5</Name><PatrolId>44</PatrolId>			lvl 8
	<Name>p_sh_s7</Name><PatrolId>46</PatrolId>			lvl 8
	<Name>p_sh_red2</Name><PatrolId>47</PatrolId>			lvl 8
	<Name>patrol_25_red21</Name><PatrolId>25</PatrolId>		lvl 9
	<Name>patrol_38</Name><PatrolId>38</PatrolId>			lvl 9
	<Name>Pod1_OpeningGuard_1</Name><PatrolId>27</PatrolId>		lvl 14
	<Name>Lab3_Sci_2</Name><PatrolId>34</PatrolId>			lvl 14