XML:BINA/OBJC/TURR: Difference between revisions

From OniGalore
< XML:BINA‎ | OBJC
Jump to navigation Jump to search
m (...)
mNo edit summary
Line 1: Line 1:
==[[OBD:BINA/OBJC/TURR|BINA/OBJC/TURR]]: turrets==
==[[OBD:BINA/OBJC/TURR|BINA/OBJC/TURR]]: turrets==
===talk===
There are still unknown flags. Let's list all possibilities we can think of and then striking the wrong.
# "target selection by distance/angle"
# "shooting at player and ignoring other team member"
# "collides with character/particle" (haven't seen one that collides)
# "turret pod isn't part of level architecture ..."


{{Template:XMLModdingHints}}


===general notes===
===general notes===
* The turret pod is part of the level geometry.
* '''BINACJBOTurret.oni''' is level specific. (It can be found in edition/GameDataFolder/level''XX''_... )
* '''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 [[OBD_talk:BINA/OBJC|HERE]] if you are searching for more general information such as how to handle object coordinates.





Revision as of 12:03, 7 August 2011

BINA/OBJC/TURR: turrets

Template:XMLModdingHints

general notes

  • The turret pod is part of the level geometry.
  • BINACJBOTurret.oni is level specific. (It can be found in edition/GameDataFolder/levelXX_... )


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