XML:BINA/OBJC/PWRU: Difference between revisions

From OniGalore
< XML:BINA‎ | OBJC
Jump to navigation Jump to search
m (.. and adding "general notes")
 
m (...)
Line 2: Line 2:
==[[OBD:BINA/OBJC/PWRU|BINA/OBCJ/PWRU]]: powerups==
==[[OBD:BINA/OBJC/PWRU|BINA/OBCJ/PWRU]]: powerups==
===general notes===
===general notes===
* '''BINACJBOPowerUp.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).
* Reminder: there are two ways to spawn powerups.
* Reminder: there are two ways to spawn powerups.
: A) By using original or [[OBD_talk:BINA/OBJC/FLAG|custom teleport flags]] in BSL command "powerup_spawn ''poweruptype:string flag:int''".
: A) By using original or [[OBD_talk:BINA/OBJC/FLAG|custom teleport flags]] in BSL command "powerup_spawn ''poweruptype:string flag:int''".
: B) And of course by using this powerup collection file.
: B) And of course by using this powerup collection file.


===XML structure===
===XML structure===

Revision as of 10:59, 4 January 2009

BINA/OBCJ/PWRU: powerups

general notes

  • BINACJBOPowerUp.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.
  • Reminder: there are two ways to spawn powerups.
A) By using original or custom teleport flags in BSL command "powerup_spawn poweruptype:string flag:int".
B) And of course by using this powerup collection file.

XML structure

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

[...] means at least one powerup. Paste all powerup data into there (this includes <Object ...> and </Object> tag).

example

powerup_preview.png

       <Object Id="8167" Type="PWRU">
           <Header>
               <Flags>0</Flags>
               <Position>-988.235 91.172 1513.963</Position>
               <Rotation>0 0 0</Rotation>
           </Header>
           <OSD>
               <Class>Shield</Class>
           </OSD>
       </Object>


XML tags and options

  • <Flags> : (unknown -- seems to be always 0)
  • <Position> : (powerup is spawned at this xyz-position)
  • <Rotation> : (powerup has xyz-rotation (in degrees) -- usually not used)
  • <Class>
Ammo
EnergyCell
Hypo
Invisibility
Shield
LSI (level specific item; truck keys in level 19, etc..)