AE:Weapons: Difference between revisions

1,645 bytes removed ,  13 December 2023
m
wording of fmbox
m (wording of fmbox)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|align=right
{{fmbox
![[ONK:ONK|Oni ni Kanabô]]<br>http://geyser.oni2.net/ONK/ONK.png
  | text  = This project was discontinued because [[AE:ONK|ONK]]'s hex-editing was obsolesced by [[OniSplit]], and because the [[AE]] initiative no longer comes bundled with original content. Some of the weapons below '''are''' available from within the AE Installer, including WMC Lite and the Telekinetic Bracelet, under the name "New Weapons Collection".
  }}
{|style="float:right"
![[AE:ONK|Oni ni Kanabô]]<br>[[Image:ONK.png]]
|}
|}
Modded weapons and weapon-related stuff should go here
Modded weapons and weapon-related stuff should go here.
==Weapons==
 
==Weapon classes==
This involves modifying [[OBD:ONWC|ONWC]] files (weapon classes) in '''level0_Final.dat'''.
This involves modifying [[OBD:ONWC|ONWC]] files (weapon classes) in '''level0_Final.dat'''.


You may want to back up '''level0_Final.dat''' before proceeding.
You may want to back up '''level0_Final.dat''' before proceeding.
===SBG===
===SBG===
;SBG2 & SBG2bis
;SBG2 & SBG2bis
Line 13: Line 18:
*SBG2 fires regular SBG rounds as primary ammo, and WMC grenades as secondary ammo.
*SBG2 fires regular SBG rounds as primary ammo, and WMC grenades as secondary ammo.
*SBG2bis fires WMC grenades as primary ammo, and regular SBG rounds as secondary ammo.
*SBG2bis fires WMC grenades as primary ammo, and regular SBG rounds as secondary ammo.
[[ONK:Patching|Patch]] the file '''w5_sbg.ONWC''' in '''level0_Final.dat''' with one of the following TRMA files, depending on the file IDs of the involved files in your version of Oni.
Patch the file '''w5_sbg.ONWC''' in '''level0_Final.dat''' with one of the following ONWC files, depending on the file IDs of the involved files in your version of Oni.
{|border=1 cellspacing=0
{|border=1 cellspacing=0
!colspan=2|File ID
!colspan=2|File ID
Line 44: Line 49:
|[http://geyser.oni2.net/ONK/weapons/SBG2/SBG2_a.ONWC SBG2]
|[http://geyser.oni2.net/ONK/weapons/SBG2/SBG2_a.ONWC SBG2]
|[http://geyser.oni2.net/ONK/weapons/SBG2/SBG2_b.ONWC SBG2]
|[http://geyser.oni2.net/ONK/weapons/SBG2/SBG2_b.ONWC SBG2]
|
|-
|[http://geyser.oni2.net/ReOni/ONK/weapons/SBG2bis/SBG2bis_a.ONWC SBG2bis]
|[http://geyser.oni2.net/ReOniMac/ONK/weapons/SBG2bis/SBG2bis_b.ONWC SBG2bis]
|
|
|}
|}
Line 69: Line 70:
*in the hex editing window, change the value at 0xD4 from 0E 3E 08 00 to 0C A6 00 00 (if you want it to reload with energy cells) or to 08 A6 00 00 (if you want it to reload with ballistic ammo)
*in the hex editing window, change the value at 0xD4 from 0E 3E 08 00 to 0C A6 00 00 (if you want it to reload with energy cells) or to 08 A6 00 00 (if you want it to reload with ballistic ammo)


http://edt.oni2.net/images/WMClite.jpg
[[Image:WMC lite hex changes.jpg]]


Then you get what I call WMC Lite : something like a regular weapon, that AI can pick up and reload if they have the right ammo, and something you can move normally with. Plus fading plus laser sight plus ammo meter. Plus holstering, even though it looks super-weird.
Then you get what I call WMC Lite : something like a regular weapon, that AI can pick up and reload if they have the right ammo, and something you can move normally with. Plus fading plus laser sight plus ammo meter. Plus holstering, even though it looks super-weird.
Line 75: Line 76:
===Black Equalizer===
===Black Equalizer===
An Equalizer with a rapid-fire mode, coming soon...
An Equalizer with a rapid-fire mode, coming soon...
===Campbell Adder===
===Campbell Adder===
A Black Adder with a single-shot mode, coming soon...
A Black Adder with a single-shot mode, coming soon...
===Framerate Friendly Fireworks===
===Framerate Friendly Fireworks===
Mukade's Red Ball with a much slower fire rate and limited ammo.
Mukade's Red Ball with a much slower fire rate and limited ammo.
Line 85: Line 88:


Coming (sigh...) soon...
Coming (sigh...) soon...


===Telekinetic bracelet===
===Telekinetic bracelet===
Mutant Muro's Tractor (attractive force field) and Thunderbolt (repulsive force field) in one combined.
Mutant Muro's Thunderbolt (attractive force) and "Blanka" (repulsive force) in one weapon.


http://geyser.oni2.net/pics/screenshots/tractor1.jpg
[[Image:Muro thunderbolt weapon.jpg]]


http://geyser.oni2.net/pics/screenshots/thunderbolt.jpg
[[Image:Muro blanka weapon.jpg]]


To get this power you need to:
To get this power you need to:
Line 98: Line 100:
* Choose the w10_sni.ONWC file in the list on the left (set the extension filter to ONWC)
* Choose the w10_sni.ONWC file in the list on the left (set the extension filter to ONWC)
* Look for '''w10_sni_e01''' in the data viewer (top right, right column)
* Look for '''w10_sni_e01''' in the data viewer (top right, right column)
* Replace it with '''w13_muro_e01''' (Tractor) or '''w14_muro_e01''' (Thunderbolt)
* Replace it with '''w13_muro_e01''' (Thunderbolt) or '''w14_muro_e01''' (Blanka)


http://edt.oni2.net/images/MMTractor.jpg
[[Image:MM Tractor hex changes.jpg]]




More advanced hack instructions coming Soon(TM).
More advanced hack instructions coming Soon(TM).


----
==Advanced weapon handling==
 
==Other stuff==
===Breaking Glass===
 
http://edt.oni2.net/shots/ss8.jpg
 
The glass can be broken by kicks after modifying the 3RAPh2h_dust_p01.BINA file.
Here's how:
* Open the level0_Final.dat with OniUnPacker
* Use the Binary.raw editor to select the file 3RAPh2h_dust_p01.BINA
* Look at the chunk between 0x550 and 0x6F8
* The 0x00 at 0x550 change it to 0x1E ("Glass Charge")
* The 0x00 at 0x0x634 change it to 0x03 ("radius" type : float)
* The 0x00000000 at 0x0x638 change it to 0x00000040 or 0x00000041 ("radius" value : 2.0 or 8.0)
Note that we've left the first argument of set 2 ("blast-vel" for "Glass Charge") as is. "Linear Change"s "rate" was of the right type (float), and the value (6.0) is nothing extreme.
Look at the second variable of h2h_dust_p01 : it's the 0x34=52 byte chunk between 0x340 and 0x374.
There's the name ("alpha") right at the start. The initialisation value you can see at 0x35C (it's a float, since the type at 0x358 is 0x03).
*If we just make this float 0.125 (make the 0x00000000 at 0x35C a 0x0000003E) we'll have 12.5%-transparent dust right away.
 
The changes will look like this:
 
http://edt.oni2.net/images/breakglass.jpg
 
Some sample movies by geyser:
[http://geyser.oni2.net/_VIDEO_/WMV/glass_lab.wmv Bio-Research lab]
[http://geyser.oni2.net/_VIDEO_/WMV/glass_state.wmv Regional State Building]
[http://geyser.oni2.net/_VIDEO_/WMV/glass_compound.wmv Syndicate Mountain Compound]
 
===Deadly Glass===
 
The shards of the glass can be modified to hurt.
 
Here's how:
 
* Open the  file3RAPglass_shard.BINA in OniUnPacker.
* Select the file3RAPglass_shard.BINA
The 0x0B="Die" at 0x10B4 we make a 0x1A ("Damage Char").
The 0x00 at 0x117C we make a 0x03 (type of "damage" : float)
The 0x00000000 at 0x1180 we make a 0x00000040 (value of "damage" : 2.0)
 
 
 
http://edt.oni2.net/images/deadlyglass.jpg
 
===Holstering===
===Holstering===
Either we'll make the AI smarter about holstering, or we'll just disable holstering for rifles (or all weapons).
Either we'll make the AI smarter about holstering, or we'll just disable holstering for rifles (or all weapons).
===Handgrenades===
 
===Hand grenades===
Probably scripted, not only patched.
Probably scripted, not only patched.
[[Category:Obsolete AE mods]]