You are not logged in.
Pages: 1
Does anyone know how to fix the infinite ammo bug with some custom guns (after ammo is over if you keep pressing it continues to shoot and the meter gets buggy)
if someone could take a look at this https://dl.dropbox.com/u/22609960/buggy%20gun.zip the onwc xml included and can spot what's wrong I'd appreciate it .. I'm trying to fix some bugs in the weapons collection packs.
Last edited by Samer (02/27/13 22:02)
Join our Oni Facebook Group
Check My YouTube Channel for my Oni Videos.
Check My Wiki page for all my stuff
Offline
This weapon has <MaxShots> 10 and starts 4 bullet emitters (_e01) per shot.
Each bullet emitter has <UsedAmmo> 1.
4, 8, 12 -- the third shot exceed MaxShot 10. Setting it to 12 will fix the bug.
Offline
thank you
Last edited by Samer (03/01/13 00:03)
Join our Oni Facebook Group
Check My YouTube Channel for my Oni Videos.
Check My Wiki page for all my stuff
Offline
there's this other bug with the shot gun that i can't figure out ... even though there's a shot delay, if the mouse is continuously pressed it keeps making the sound as if it's shooting though it's not https://dl.dropbox.com/u/22609960/shg%20buggy.zip
Join our Oni Facebook Group
Check My YouTube Channel for my Oni Videos.
Check My Wiki page for all my stuff
Offline
The shotgun uses many files from the pistole which is a automatic weapon. The w1 particle and sound files were optimized for the pistol.
- The sound file hold some gunshots in one track.
- The BINA mechanics play the full track when automatic fire is used and stop the track early when only one bullet gets fired.
Imo, you need more than one change to overcome the problem.
Here's a possible solution: https://dl.dropbox.com/u/139715/temp/w19_shg.zip
Change log:
1) Changed ONWC's <ParticleClass> to w19_shg_e01
2) Cloned BINA3RAPw1_tap_e01.xml and rename the clone to BINA3RAPw19_shg_e01.xml
3) BINA modifications
old content:
<Events>
<Pulse>
<EmitParticles>
<Emitter>0</Emitter>
<Particles>1</Particles>
</EmitParticles>
</Pulse>
<Start>
<AmbientSound>
<Sound>tctf_handgun</Sound>
</AmbientSound>
</Start>
<Stop>
<EndAmbientSound />
</Stop>
</Events>
new content:
<Events>
<Pulse>
<ImpulseSound>
<Sound>shg_fire</Sound>
</ImpulseSound>
<EmitParticles>
<Emitter>0</Emitter>
<Particles>1</Particles>
</EmitParticles>
</Pulse>
</Events>
4) Created a new file: OSBDshg_fire.imp.xml
<?xml version="1.0" encoding="utf-8"?>
<Oni>
<ImpulseSound>
<Group>tctf_echo</Group> <!-- OSBD grp file -->
<Priority>Normal</Priority>
<Volume>
<Distance>
<Min>20</Min>
<Max>200</Max>
</Distance>
<Angle>
<Min>360</Min>
<Max>360</Max>
<MinAttenuation>0</MinAttenuation>
</Angle>
</Volume>
<AlternateImpulse>
<Treshold>0</Treshold>
<Impulse></Impulse>
</AlternateImpulse>
<ImpactVelocity>0</ImpactVelocity>
<MinOcclusion>0.5</MinOcclusion>
</ImpulseSound>
</Oni>
Last edited by paradox-01 (03/02/13 09:03)
Offline
Wow I always wondered what caused that, but I didn't know the answer was so complicated!
Check out the Anniversary Edition Seven at ae.oni2.net!
Offline
isn't he great ^_^ ?
thanks so much paradox
Join our Oni Facebook Group
Check My YouTube Channel for my Oni Videos.
Check My Wiki page for all my stuff
Offline
Paradox is awesome in figuring these things out!
Offline
Pages: 1