AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   How i can block weapons sound? (https://forums.alliedmods.net/showthread.php?t=135878)

bogdyuttzu 08-20-2010 13:13

How i can block weapons sound?
 
How i can block weapons fire sound?

lucas_7_94 08-20-2010 13:21

Re: How i can block weapons sound?
 
not possible.

Vechta 08-20-2010 13:28

Re: How i can block weapons sound?
 
Quote:

Originally Posted by lucas_7_94 (Post 1276945)
not possible.

It's possible to block them and add new O.o

bogdyuttzu 08-20-2010 13:43

Re: How i can block weapons sound?
 
ok it's possible and how block?

lucas_7_94 08-20-2010 14:01

Re: How i can block weapons sound?
 
with AMXX , its IMPOSSIBLE [ Change , Replace , Block ] Weapons sound's , Except knife

You can change the weapon sound, but , it's a entity weapon.

NiHiLaNTh 08-20-2010 14:14

Re: How i can block weapons sound?
 
About changing and replacing I agree with you.About blocking no...
Code:

const m_flNextPrimaryAttack = 46
const m_flNextAttack  = 83

public plugin_init( )
{
      RegisterHam( Ham_WeaponPrimaryAttack, "weapon_ak47", "fw_Ak47Attack_Post", 1 )
}

public fw_Ak47Attack_Post( iEnt )
{
      new pPlayer = get_pdata_cbase( iEnt, 41, 4 )

      set_pdata_float( iEnt, m_flNextPrimaryAttack, 9999.0, 4 )
      set_pdata_float( Player, m_flNextAttack, 9999.0 )
}


En[!]m@ 08-20-2010 15:49

Re: How i can block weapons sound?
 
what about adding new weapons?

jc980 08-20-2010 23:14

Re: How i can block weapons sound?
 
Quote:

Originally Posted by NiHiLaNTh (Post 1276987)
About changing and replacing I agree with you.About blocking no...
Code:

const m_flNextPrimaryAttack = 46
const m_flNextAttack  = 83

public plugin_init( )
{
      RegisterHam( Ham_WeaponPrimaryAttack, "weapon_ak47", "fw_Ak47Attack_Post", 1 )
}

public fw_Ak47Attack_Post( iEnt )
{
      new pPlayer = get_pdata_cbase( iEnt, 41, 4 )

      set_pdata_float( iEnt, m_flNextPrimaryAttack, 9999.0, 4 )
      set_pdata_float( Player, m_flNextAttack, 9999.0 )
}


is this posible with all weapons except knife?

albert123 08-21-2010 00:59

Re: How i can block weapons sound?
 
Has another way to precache sound for knife too

sunx 08-21-2010 02:01

Re: How i can block weapons sound?
 
It isnt easy to "precache" new sounds for weapons, cause you need to make a new enity weapon - like minigun.

For the knife you can precache new sounds easily ... for example: the "knife knockback" plugin ... you can take the code from this plugin to precache for example :)


All times are GMT -4. The time now is 16:08.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.