18,970
edits
Paradox-01 (talk | contribs) m (.. and adding "general notes") |
m (link fix) |
||
(16 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{XML_OBJC_Header | prev=PATR | type=PWRU | next=TRGV | name=PowerUp}} | |||
== | |||
==General notes== | |||
* The XML on this page is based on OniSplit '''v0.9.61.0'''. | |||
* BINACJBOPowerUp is level-specific (level''x''_Final.dat). | |||
* Reminder: there are two ways to spawn powerups. | * Reminder: there are two ways to spawn powerups. | ||
: A) By using original or [[ | : A) By using the original or [[XML:BINA/OBJC/FLAG|custom]] teleport flags via the BSL command "powerup_spawn ''poweruptype:string flag:int''". | ||
: B) | : B) By using this powerup collection file. | ||
==XML structure== | |||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<Oni | <Oni> | ||
< | <Objects> | ||
'''''[...]''''' | '''''[...]''''' | ||
</ | </Objects> | ||
</Oni> | </Oni> | ||
'''''[...]''''' means at least one powerup. Paste all powerup data | '''''[...]''''' means at least one powerup block. Paste all your powerup data in there (this includes '''<font color="#0A0"><PWRU Id=""></font>''' and '''<font color="#0A0"></PWRU></font>''' tag). | ||
'''Example''' | |||
[[Image:XML_OBJC_PWRU.jpg|thumb|200px]] | |||
'''<font color="#0A0"><PWRU Id="8167"></font>''' | |||
'''<font color="#0A0">< | |||
<Header> | <Header> | ||
<Flags> | <Flags></Flags> | ||
<Position>-988.235 91.172 1513.963</Position> | <Position>-988.235 91.172 1513.963</Position> | ||
<Rotation>0 0 0</Rotation> | <Rotation>0 0 0</Rotation> | ||
Line 38: | Line 31: | ||
<Class>Shield</Class> | <Class>Shield</Class> | ||
</OSD> | </OSD> | ||
'''<font color="#0A0"></ | '''<font color="#0A0"></PWRU></font>''' | ||
==XML tags and options== | |||
* <Flags>: unknown | |||
* <Position>: powerup is spawned at this XYZ position | |||
* <Flags> : | * <Rotation>: powerup has this XYZ rotation in degrees — usually not used | ||
* <Position> : | |||
* <Rotation> : | |||
* <Class> | * <Class> | ||
:: Ammo | :: Ammo | ||
Line 52: | Line 43: | ||
:: Invisibility | :: Invisibility | ||
:: Shield | :: Shield | ||
:: LSI (level specific item; truck keys in level 19, etc | :: [[LSI]] (level specific item; truck keys in level 19, etc.) | ||
==Mod Tool addon== | |||
[[Image:xsi_addon_powerups_manager.jpg|thumb|200px|right|Powerups manager]] | |||
With [[Mod_Tool/OniTools_addon|OniTools.xsiaddon]] version 1, you can drag'n'drop BINACJBOPowerUp'''.oni''' into the viewport. Add or remove powerups and edit their position and rotation as if they were real objects. When ready, export the data as BINACJBOPowerUp.xml to a folder of your choice. | |||
{{XML}} |