XML:BINA/OBJC/TURR
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.
- "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 ..."
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
<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)
- <TurretId> (used by laser trigger and BSL commands)
- <Flags>
- 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>)