Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 02/27/13 22:02

Samer
Member
From: Lebanon
Registered: 09/04/09
Website

Infinite Ammo Gun Bug

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

#2 02/28/13 06:02

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: Infinite Ammo Gun Bug

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. smile

Offline

#3 02/28/13 23:02

Samer
Member
From: Lebanon
Registered: 09/04/09
Website

Re: Infinite Ammo Gun Bug

thank you smile

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

#4 03/02/13 06:03

Samer
Member
From: Lebanon
Registered: 09/04/09
Website

Re: Infinite Ammo Gun Bug

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

#5 03/02/13 09:03

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: Infinite Ammo Gun Bug

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

#6 03/02/13 11:03

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: Infinite Ammo Gun Bug

Wow  smile  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

#7 03/02/13 11:03

Samer
Member
From: Lebanon
Registered: 09/04/09
Website

Re: Infinite Ammo Gun Bug

isn't he great ^_^ ?
thanks so much paradox big_smile


Join our Oni Facebook Group
Check My YouTube Channel for my Oni Videos.
Check My Wiki page for all my stuff

Offline

#8 03/02/13 20:03

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/07
Website

Re: Infinite Ammo Gun Bug

Paradox is awesome in figuring these things out!

Offline

Board footer

Powered by FluxBB