XML:BINA/OBJC/TURR: Difference between revisions

From OniGalore
< XML:BINA‎ | OBJC
Jump to navigation Jump to search
m (.. bye)
 
m (...)
Line 9: Line 9:


===general notes===
===general notes===
* '''BINACJBOTurret.oni''' is level specific. (It can be found in edition/GameDataFolder/level''XX''_... )
* See [[XML basic tutorial|HERE]] if you don't know how to convert an oni file into XML and vice versa.
* See [[XML basic tutorial|HERE]] if you don't know how to convert an oni file into XML and vice versa.
* See [[OBD_talk:BINA/OBJC|HERE]] if you are searching for more general information such as how to handle object coordinates.
* See [[OBD_talk:BINA/OBJC|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).





Revision as of 10:55, 4 January 2009

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

  • BINACJBOTurret.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

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>)