XML:BINA/OBJC/TURR: Difference between revisions
Jump to navigation
Jump to search
Paradox-01 (talk | contribs) m (restoring old image) |
m (copy-edit) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{XML_OBJC_Header | type=TURR | prev=TRIG | next=WEAP | name= | {{XML_OBJC_Header | type=TURR | prev=TRIG | next=WEAP | name=Turret}} | ||
== | ==General information== | ||
* The | * The XML on this page is compatible with OniSplit '''v0.9.61.0'''. | ||
* The turret | * The turret's base is part of the level geometry. (For some reason the <BaseGeometry> of [[XML:TURR|TURR]] isn't used.) | ||
* | * BINACJBOTurret is level-specific (level''x''_Final.dat). | ||
==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== | |||
== | |||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<Oni> | <Oni> | ||
Line 22: | Line 19: | ||
</Oni> | </Oni> | ||
'''''[...]''''' means at least one turret. Paste all turret data | '''''[...]''''' 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''' | |||
[[Image:XML_OBJC_TURR_modification.png|thumb|right|Standard XML does not import TURR's base geometry. See [[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== | |||
{| class="wikitable" width="100%" | {| class="wikitable" width="100%" | ||
!width=200px| XML tag | !width=200px| XML tag | ||
Line 70: | Line 60: | ||
|valign=top|Flags | |valign=top|Flags | ||
|valign=top|flag | |valign=top|flag | ||
| | |Useless, can be left empty. | ||
:Locked | :Locked | ||
:Gunk | :Gunk | ||
Line 76: | Line 66: | ||
|valign=top|Position | |valign=top|Position | ||
|valign=top|float x3 | |valign=top|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 | |Rotation | ||
Line 85: | 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, 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_ | : phr_turret_* (Plasma Rifle) | ||
: psm_turret_ | : psm_turret_* (Phase Stream Projector) | ||
: sap_turret_ | : sap_turret_* (Hughes Black Adder SMG) | ||
: sbg_turret_ | : sbg_turret_* (Super Ball Gun) | ||
: scc_turret_ | : scc_turret_* (Scram Cannon) | ||
: scr_turret_ | : scr_turret_* (Screaming Cell Cannon) | ||
: vdg_turret_ | : vdg_turret_* (Van de Graaff) | ||
|- | |- | ||
|TurretId | |TurretId | ||
|integer | |integer | ||
| | |Used by [[XML:BINA/OBJC/TRIG|laser trigger]] and BSL commands. | ||
|- | |- | ||
|valign=top|Flags | |valign=top|Flags | ||
Line 108: | 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> | ||
: Konoko | : Konoko | ||
: TCTF | : TCTF |
Latest revision as of 15:24, 3 April 2021
TURR : Turret | ||
---|---|---|
XML
AKEV << Other file types >> CONS TMBD << Other BINA >> ONIE TRIG << Other OBJC >> WEAP |
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
<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.
|
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
|
TurretId | integer | Used by laser trigger and BSL commands. |
Flags | flag |
|
<TargetedTeams> | flag | Multiple flags are separated by a space, e.g. <TargetedTeams>Konoko TCTF RogueKonoko</TargetedTeams>
|