Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 27/2/13 22:07

Samer
Member
From: Lebanon
Registered: 4/9/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 (27/2/13 22:07)


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

Offline

#2 28/2/13 6:19

paradox-01
Member
From: Germany
Registered: 14/1/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 28/2/13 23:53

Samer
Member
From: Lebanon
Registered: 4/9/09
Website

Re: Infinite Ammo Gun Bug

thank you smile

Last edited by Samer (1/3/13 0:26)


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

Offline

#4 2/3/13 6:59

Samer
Member
From: Lebanon
Registered: 4/9/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 2/3/13 9:26

paradox-01
Member
From: Germany
Registered: 14/1/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 (2/3/13 9:35)

Offline

#6 2/3/13 11:10

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

Re: Infinite Ammo Gun Bug

Wow  smile  I always wondered what caused that, but I didn't know the answer was so complicated!


byproducts are fine, but where's the beef?

Offline

#7 2/3/13 11:57

Samer
Member
From: Lebanon
Registered: 4/9/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 2/3/13 20:59

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

Re: Infinite Ammo Gun Bug

Paradox is awesome in figuring these things out!

Offline

Board footer

Powered by FluxBB