XML:BINA/OBJC/WEAP: Difference between revisions

From OniGalore
< XML:BINA‎ | OBJC
Jump to navigation Jump to search
(.)
 
m (filename added)
Line 1: Line 1:
'''general information'''
'''general information'''
* '''BINACJBOWeapon.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.
* There are two ways to spawn weapons.
* There are two ways to spawn weapons.
: A) by using original or custom teleport flags which needs a BSL command, e.g.:
: A) by using original or custom teleport flags which needs a BSL command, e.g.:

Revision as of 10:53, 4 January 2009

general information

  • BINACJBOWeapon.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.
  • There are two ways to spawn weapons.
A) by using original or custom teleport flags which needs a BSL command, e.g.:
weapon_spawn w3_phr 5
B) by using this weapon collection file


XML structure

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

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

example

weapon_preview.png

       <Object Id="8240" Type="WEAP">
           <Header>
               <Flags>0</Flags>
               <Position>-1519 45 1521</Position>
               <Rotation>180 0 0</Rotation>
           </Header>
           <OSD>
               <Class>w14_sbg2</Class>
           </OSD>
       </Object>


tags

  • <Flags> : (unknown)
  • <Position> : (weapon is spawned at this xyz-position)
  • <Rotation> : (weapon has xyz-rotation (in degrees); only x is useful)
  • <Class>
w1_tap
w2_sap
w3_phr
w4_psm
w5_sbg
w6_vdg
w7_scc
w8_mbo
w9_scr
w10_sni (for AE)
w11_ba1
w12_ba2 (for AE)
w13_muro (for AE)
w14_sbg2 (for AE)
(any other AE or custom weapon without file pre- and suffix; e.g. ONWCw24_psr.oni is just called by w24_psr)
(ONWC files are stored in level0)