XML:BINA/OBJC/TURR

From OniGalore
< XML:BINA‎ | OBJC
Revision as of 20:50, 12 November 2008 by Paradox-01 (talk | contribs) (.. bye)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

BINA/OBJC/TURR: turrets

talk

There are still unknown flags. Let's list all possibilities we can think of and then striking the wrong.

  1. "target selection by distance/angle"
  2. "shooting at player and ignoring other team member"
  3. "collides with character/particle" (haven't seen one that collides)
  4. "turret pod isn't part of level architecture ..."


general notes

  • 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.
  • This file is level specific which means you cannot put it into level 0 (which stores files for global use).


BSL support

turret_activate turret_id:int
turret_deactivate turret_id:int
turret_reset turret_id:int (resets a turret to initial state)


XML structure

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

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

example

turrets_preview.png

       <Object Id="8148" Type="TURR">
           <Header>
               <Flags>0</Flags>
               <Position>-670 45 -755</Position>
               <Rotation>0 0 0</Rotation>
           </Header>
           <OSD>
               <Class>psm_turret_floor</Class>
               <TurretId>1</TurretId>
               <Flags>0</Flags>
               <TargetedTeams>Konoko</TargetedTeams>
           </OSD>
       </Object>
       <Object Id="8149" Type="TURR">
           <Header>
               <Flags>0</Flags>
               <Position>-680.6955 45 -753.459656</Position>
               <Rotation>0 0 0</Rotation>
           </Header>
           <OSD>
               <Class>sbg_turret_floor</Class>
               <TurretId>1</TurretId>
               <Flags>2</Flags>
               <TargetedTeams>Konoko</TargetedTeams>
           </OSD>
       </Object>


XML tags and options

  • <Flags>
1 (unknown)
8 (unknown)
  • <Position> (turret is spawned at this position; turret pod must be added in level architecture or as spawnable object)
  • <Class>
mbo_turret_ciel
mbo_turret_floor
mbo_turret_wall (mbo stands for Mercury Bow)
phr_turret_... (... stands for ciel / floor / wall) (phr stands for Plasma Rifle)
psm_turret_... (psm stands for Phase Stream Projector)
sap_turret_... (sap stands for Hughes Black Adder (Uzi))
sbg_turret_... (sbg stands for Super Ball Gun)
scc_turret_... (scc stands for Scram Cannon)
scr_turret_... (scr stands for Screamer Cannon)
vdg_turret_... (vdg stands for Van de Graaff Pistol)
2 (unknown)
  • <TargetedTeams>
Konoko
TCTF
Syndicate
Neutral
SecurityGuard
RogueKonoko
Switzlerland
SyndicateAccessory
(multiple flags are separeted by a space e.g. <TargetedTeams>Konoko TCTF RogueKonoko</TargetedTeams>)