Raised This Month: $158 Target: $400
 39% 

L4D Reloading sounds [ZP SUPPORTED]


Post New Thread Reply   
 
Thread Tools Display Modes
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 04-11-2010 , 07:11   Re: L4D Reloading sounds [ZP SUPPORTED]
Reply With Quote #51

And for what is this:

Quote:
IF YOU HAVE TO FLAME ABOUT ANYTHING JUST IGNORE THIS THREAD AND PRESS ALT + F4 !
ELSE, I WILL BE HAPPY ABOUT REQUESTS OR TIPPS TO MAKE IT IN BETTER WAY OR MAKE IT BETTER!
....
KadiR is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-12-2010 , 06:41   Re: L4D Reloading sounds [ZP SUPPORTED]
Reply With Quote #52

Updated
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
MustD1e
Senior Member
Join Date: Apr 2010
Old 06-11-2010 , 16:35   Re: L4D Reloading sounds [ZP SUPPORTED]
Reply With Quote #53

You try it with 20 or more players ?
Plugin will be good for ZP if sounds heard around player (locally sounds)
and delete radio messages (it's flood)
__________________

Fly with us

Last edited by MustD1e; 06-11-2010 at 16:40.
MustD1e is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 06-15-2010 , 08:05   Re: L4D Reloading sounds [ZP SUPPORTED]
Reply With Quote #54

Quote:
Originally Posted by MustD1e View Post
You try it with 20 or more players ?
Plugin will be good for ZP if sounds heard around player (locally sounds)
and delete radio messages (it's flood)
if i will have time, i will add a cvar to change the sounds as radio or emiting sounds.

just turn amx_radiomessages off to disable the messages.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
MustD1e
Senior Member
Join Date: Apr 2010
Old 06-19-2010 , 15:22   Re: L4D Reloading sounds [ZP SUPPORTED]
Reply With Quote #55

I don't need now.
Use it with your sounds

Code:
    
    #include <amxmodx>
    #include <fakemeta>
    #include <hamsandwich>

    new const gSoundList[][] =
    {
        "radio/reloadm_01.wav",
    "radio/reloadm_02.wav",
    "radio/reloadm_03.wav",
    "radio/reloadm_04.wav",
    "radio/reloadm_05.wav",
    "radio/reloadm_06.wav",
    "radio/reloadm_07.wav",
    "radio/reloadm_08.wav",
    "radio/reloadm_09.wav"
    }
    
    const CANT_RELOAD_BITSUM = ( 1 << CSW_HEGRENADE | 1 << CSW_SMOKEGRENADE | 1<<CSW_FLASHBANG | 1 << CSW_KNIFE | 1 << CSW_C4 );
    const SHOTGUNS_BITSUM    = ( 1 << CSW_XM1014    | 1 << CSW_M3 );
    const MAX_WEAPONS        = 30   // --| Max number of weapons. ( cs1.6/cz )
    
    const sg_start_reload    = 5;   // --| Shotgun start reload sequence.
    const m_iId              = 43;  // --| Weapon offset. ( return CSW_* )
    const m_fInReload        = 54;  // --| Weapon offset. ( In reload ? )


    public plugin_precache()
    {
        for ( new i; i < sizeof gSoundList; i++ )
        {
            precache_sound( gSoundList[ i ] );
        }
    }

    public plugin_init()
    {
        register_plugin( "Sound on reload", "1.0.0", "Arkshine" );
        RegisterHamsReload ();
    }
    
    public Event_OnReload ( const Entity )
    {
        new Player = pev ( Entity , pev_owner );
        
        if ( UTIL_IsWeaponReloading ( Player, Entity ) )
        {
            emit_sound( Player, CHAN_VOICE, gSoundList[ random_num( 0, sizeof gSoundList - 1 ) ], 0.8, ATTN_NORM, 0, PITCH_NORM );
        }
    }
  
    UTIL_IsWeaponReloading ( const id, const Entity )
    {
        // --| If we're holding a shotgun.
        if ( 1 << get_pdata_int ( Entity, m_iId, 4 ) & SHOTGUNS_BITSUM )
        {
            // --| We check its animation instead of m_fInSpecialReload because
            // --| Event_OnReload will be called 3 times by ball and it's a pain to
            // --| deal with that when we want to play the sound one time.
            if ( pev ( id, pev_weaponanim ) == sg_start_reload )  { return 1; }
        }

        // --| Other weapons.
        return get_pdata_int ( Entity, m_fInReload, 4 );
    }
    
    RegisterHamsReload ()
    {
        // --| Need to loop through all weapons because Ham sucks. :p
        // --| As 'post' is necessary, otherwise the offset will not work.

        new s_WeaponName[ 24 ];

        for ( new i_Wpid = 1; i_Wpid <= MAX_WEAPONS; i_Wpid++ )
        {
            // --| Don't register item/weapons which can not reload.
            if ( !( ( 1 << i_Wpid ) & CANT_RELOAD_BITSUM ) && get_weaponname ( i_Wpid, s_WeaponName, charsmax ( s_WeaponName ) ) )
            {
                RegisterHam ( Ham_Weapon_Reload, s_WeaponName, "Event_OnReload", 1 );
            }
        }
    }
__________________

Fly with us
MustD1e is offline
crashrock2
Junior Member
Join Date: Jul 2012
Old 08-15-2012 , 11:42   Re: L4D Reloading sounds [ZP SUPPORTED]
Reply With Quote #56

Why you didn't make character and then choose like FRANCIS,LOUIS,BILL and Zoey not Male Female And Random
crashrock2 is offline
NOTORIOUS7302
Junior Member
Join Date: Nov 2018
Location: Anonymous
Old 09-03-2019 , 16:04   Re: L4D Reloading sounds [ZP SUPPORTED]
Reply With Quote #57

Umm shotgun reloading doesn't show reloading
NOTORIOUS7302 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:30.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode