XML:BINA/OBJC/TURR: Difference between revisions

From OniGalore
< XML:BINA‎ | OBJC
Jump to navigation Jump to search
m (correcting type name)
m (copy-edit)
 
Line 1: Line 1:
{{XML_OBJC_Header | type=TURR | prev=TRIG | next=WEAP | name=Turret}}
{{XML_OBJC_Header | type=TURR | prev=TRIG | next=WEAP | name=Turret}}


===general information===
==General information==
* The xml code on this page is compatible with onisplit '''v0.9.61.0'''
* The XML on this page is compatible with OniSplit '''v0.9.61.0'''.
* The turret pod is part of the level geometry. (For some reason the <BaseGeometry> of [[XML:TURR|TURR]] isn't used.)
* The turret's base is part of the level geometry. (For some reason the <BaseGeometry> of [[XML:TURR|TURR]] isn't used.)
* '''BINACJBOTurret.oni''' is level specific. (It can be found in AE/AEInstaller/vanilla/level'''X'''_Final.dat)
* BINACJBOTurret is level-specific (level''x''_Final.dat).


===BSL support===
==BSL support==
: turret_activate ''turret_id:int''
: turret_activate ''turret_id:int''
: turret_deactivate ''turret_id:int''
: turret_deactivate ''turret_id:int''
: turret_reset ''turret_id:int'' (resets a turret to initial state)
: turret_reset ''turret_id:int'' (resets a turret to initial state)


===file structure===
==File structure==
  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
  <Oni>
  <Oni>
Line 19: Line 19:
  </Oni>
  </Oni>


'''''[...]''''' means at least one turret. Paste all turret data into there (this includes '''<font color="#0A0"><TURR Id="..."></font>''' and '''<font color="#0A0"></TURR></font>''' tag).
'''''[...]''''' means at least one turret. Paste all your turret data in there (this includes the '''<font color="#0A0"><TURR Id="..."></font>'''/'''<font color="#0A0"></TURR></font>''' tag).


'''example'''
'''Example'''


{|width=200px border=0 cellspacing=20 cellpadding=0 style="float:right"
[[Image:XML_OBJC_TURR_modification.png|thumb|right|Standard XML does not import TURR's base geometry. See [[XML:TURR]].]]
|[[File:XML_OBJC_TURR_modification.png|200px]]
standard XML does not import TURR's base geometry (pod)


See also: [[XML:TURR]]
'''<font color="#0A0"><TURR Id="8148"></font>'''
|}
    <Header>
        <Flags></Flags>
        <Position>-670 45 -755</Position>
        <Rotation>0 0 0</Rotation>
    </Header>
    <OSD>
        <Class>psm_turret_floor</Class>
        <TurretId>1</TurretId>
        <Flags></Flags>
        <TargetedTeams>Konoko</TargetedTeams>
    </OSD>
'''<font color="#0A0"></TURR></font>'''
'''<font color="#0A0"><TURR Id="8149"></font>'''
    <Header>
        <Flags></Flags>
        <Position>-680.6955 45 -753.459656</Position>
        <Rotation>0 0 0</Rotation>
    </Header>
    <OSD>
        <Class>sbg_turret_floor</Class>
        <TurretId>1</TurretId>
        <Flags>InitialActive</Flags>
        <TargetedTeams>Konoko</TargetedTeams>
    </OSD>
'''<font color="#0A0"></TURR></font>'''


 
==XML tags and options==
        '''<font color="#0A0"><TURR Id="8148"></font>'''
            <Header>
                <Flags></Flags>
                <Position>-670 45 -755</Position>
                <Rotation>0 0 0</Rotation>
            </Header>
            <OSD>
                <Class>psm_turret_floor</Class>
                <TurretId>1</TurretId>
                <Flags></Flags>
                <TargetedTeams>Konoko</TargetedTeams>
            </OSD>
        '''<font color="#0A0"></TURR></font>'''
        '''<font color="#0A0"><TURR Id="8149"></font>'''
            <Header>
                <Flags></Flags>
                <Position>-680.6955 45 -753.459656</Position>
                <Rotation>0 0 0</Rotation>
            </Header>
            <OSD>
                <Class>sbg_turret_floor</Class>
                <TurretId>1</TurretId>
                <Flags>InitialActive</Flags>
                <TargetedTeams>Konoko</TargetedTeams>
            </OSD>
        '''<font color="#0A0"></TURR></font>'''
 
 
===XML tags and options===
{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
!width=200px| XML tag
!width=200px| XML tag
Line 67: Line 60:
|valign=top|Flags
|valign=top|Flags
|valign=top|flag
|valign=top|flag
|useless flags, can be left empty
|Useless, can be left empty.
:Locked
:Locked
:Gunk
:Gunk
Line 73: Line 66:
|valign=top|Position
|valign=top|Position
|valign=top|float x3
|valign=top|float x3
|x y z, turret pod must be added in level architecture or as spawnable object (automatically by if done via master file?)
|XYZ position; turret base must be added in the level's architecture or as a spawnable object (automatic if done via master file?).
|-
|-
|Rotation
|Rotation
Line 82: Line 75:
|valign=top|string
|valign=top|string
| <font color="#AAAAAA">TURR</font>''name''<font color="#AAAAAA">.oni</font> from level0_Final
| <font color="#AAAAAA">TURR</font>''name''<font color="#AAAAAA">.oni</font> from level0_Final
:: there are always 3 possible variants: ciel, floot, wall
:: There are always 3 possible variants: ciel, floor, wall
: mbo_turret_ciel
: mbo_turret_ciel (Mercury Bow)
: mbo_turret_floor
: mbo_turret_floor (Mercury Bow)
: mbo_turret_wall (Mercury Bow)
: mbo_turret_wall (Mercury Bow)
: phr_turret_... (Plasma Rifle)
: phr_turret_* (Plasma Rifle)
: psm_turret_... (Phase Stream Projector)
: psm_turret_* (Phase Stream Projector)
: sap_turret_... (Hughes Black Adder (Uzi))
: sap_turret_* (Hughes Black Adder SMG)
: sbg_turret_... (Super Ball Gun (explosives))
: sbg_turret_* (Super Ball Gun)
: scc_turret_... (Scram Cannon (homing rockets))
: scc_turret_* (Scram Cannon)
: scr_turret_... (Screamer Cannon (life sucker))
: scr_turret_* (Screaming Cell Cannon)
: vdg_turret_... (Van de Graaff (taser))
: vdg_turret_* (Van de Graaff)
|-
|-
|TurretId
|TurretId
|integer
|integer
|used by [[XML:BINA/OBJC/TRIG|laser trigger]] and BSL commands
|Used by [[XML:BINA/OBJC/TRIG|laser trigger]] and BSL commands.
|-
|-
|valign=top|Flags
|valign=top|Flags
Line 105: Line 98:
|valign=top|<TargetedTeams>
|valign=top|<TargetedTeams>
|valign=top|flag
|valign=top|flag
| multiple flags are separated by a space e.g. <TargetedTeams>Konoko TCTF RogueKonoko</TargetedTeams>
| Multiple flags are separated by a space, e.g. <TargetedTeams>Konoko TCTF RogueKonoko</TargetedTeams>
: Konoko
: Konoko
: TCTF
: TCTF

Latest revision as of 15:24, 3 April 2021

TURR : Turret
XML modding tips
  • See HERE to start learning about XML modding.
  • See HERE if you are searching for information on how to handle object coordinates.
  • See HERE for some typical modding errors and their causes.
XML.png
XML

AKEV << Other file types >> CONS

TMBD << Other BINA >> ONIE

TRIG << Other OBJC >> WEAP

switch to OBD page

General information

  • The XML on this page is compatible with OniSplit v0.9.61.0.
  • The turret's base is part of the level geometry. (For some reason the <BaseGeometry> of TURR isn't used.)
  • BINACJBOTurret is level-specific (levelx_Final.dat).

BSL support

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

File structure

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

[...] means at least one turret. Paste all your turret data in there (this includes the <TURR Id="...">/</TURR> tag).

Example

Standard XML does not import TURR's base geometry. See XML:TURR.
<TURR Id="8148">
   <Header>
       <Flags></Flags>
       <Position>-670 45 -755</Position>
       <Rotation>0 0 0</Rotation>
   </Header>
   <OSD>
       <Class>psm_turret_floor</Class>
       <TurretId>1</TurretId>
       <Flags></Flags>
       <TargetedTeams>Konoko</TargetedTeams>
   </OSD>

</TURR> <TURR Id="8149">

   <Header>
       <Flags></Flags>
       <Position>-680.6955 45 -753.459656</Position>
       <Rotation>0 0 0</Rotation>
   </Header>
   <OSD>
       <Class>sbg_turret_floor</Class>
       <TurretId>1</TurretId>
       <Flags>InitialActive</Flags>
       <TargetedTeams>Konoko</TargetedTeams>
   </OSD>
</TURR>

XML tags and options

XML tag Content type Description
Flags flag Useless, can be left empty.
Locked
Gunk
Position float x3 XYZ position; turret base must be added in the level's architecture or as a spawnable object (automatic if done via master file?).
Rotation float x3 x y z
Class string TURRname.oni from level0_Final
There are always 3 possible variants: ciel, floor, wall
mbo_turret_ciel (Mercury Bow)
mbo_turret_floor (Mercury Bow)
mbo_turret_wall (Mercury Bow)
phr_turret_* (Plasma Rifle)
psm_turret_* (Phase Stream Projector)
sap_turret_* (Hughes Black Adder SMG)
sbg_turret_* (Super Ball Gun)
scc_turret_* (Scram Cannon)
scr_turret_* (Screaming Cell Cannon)
vdg_turret_* (Van de Graaff)
TurretId integer Used by laser trigger and BSL commands.
Flags flag
InitialActive
<TargetedTeams> flag Multiple flags are separated by a space, e.g. <TargetedTeams>Konoko TCTF RogueKonoko</TargetedTeams>
Konoko
TCTF
Syndicate
Neutral
SecurityGuard
RogueKonoko
Switzerland
SyndicateAccessory