Raised This Month: $12 Target: $400
 3% 

[CS:GO] How to detect when sound emit?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DSASDFGH
Senior Member
Join Date: Jul 2011
Location: Facebook
Old 02-28-2016 , 03:48   [CS:GO] How to detect when sound emit?
Reply With Quote #1

Purpose is disabling some sounds in ZR Mode, as Infect sound, Moan sounds, AddNormalSoundHook() also affect the custom sounds?
__________________
Learning SourceMod is happy
DSASDFGH is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 02-28-2016 , 03:53   Re: [CS:GO] How to detect when sound emit?
Reply With Quote #2

can't you just set the cvar? like the following

// Sound, relative to "sound" folder, to play from player on infection. ['""' = No sound]
// Default: "npc/fast_zombie/fz_scream1.wav"
zr_infect_sound ""

// The probability that a groan sound will be emitted from a zombie when shot. ['100' = 1% chance | '50' = 2% chance | '1' = 100% chance]
// Default: "5"
zr_seffects_groan "100"

// Emit a death sound when a zombie dies.
// Default: "1"
zr_seffects_death "0"

// Number of sound commands allowed within the time span, or total limit if time span is disabled. ['0' = Disable sound command limit]
// Default: "4"
zr_seffects_command_limit "1"

// Time span for sound command limiter (in seconds). ['0' = Disable time span check | positive number = Time span]
// Default: "10"
zr_seffects_command_timespan "900"

// Ambient Sounds

// Play an ambient sound to all players during gameplay.
// Default: "1"
zr_ambientsounds "0"
__________________

Last edited by 8guawong; 02-28-2016 at 03:55.
8guawong is offline
DSASDFGH
Senior Member
Join Date: Jul 2011
Location: Facebook
Old 02-28-2016 , 03:56   Re: [CS:GO] How to detect when sound emit?
Reply With Quote #3

Quote:
Originally Posted by 8guawong View Post
can't you just set the cvar? like the following

// Sound, relative to "sound" folder, to play from player on infection. ['""' = No sound]
// Default: "npc/fast_zombie/fz_scream1.wav"
zr_infect_sound ""

// The probability that a groan sound will be emitted from a zombie when shot. ['100' = 1% chance | '50' = 2% chance | '1' = 100% chance]
// Default: "5"
zr_seffects_groan "100"

// Emit a death sound when a zombie dies.
// Default: "1"
zr_seffects_death "0"

// Number of sound commands allowed within the time span, or total limit if time span is disabled. ['0' = Disable sound command limit]
// Default: "4"
zr_seffects_command_limit "1"

// Time span for sound command limiter (in seconds). ['0' = Disable time span check | positive number = Time span]
// Default: "10"
zr_seffects_command_timespan "900"

// Ambient Sounds

// Play an ambient sound to all players during gameplay.
// Default: "1"
zr_ambientsounds "0"
No, Purpose is "Personal Settings".
__________________
Learning SourceMod is happy
DSASDFGH is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 02-28-2016 , 04:16   Re: [CS:GO] How to detect when sound emit?
Reply With Quote #4

Quote:
Originally Posted by DSASDFGH View Post
No, Purpose is "Personal Settings".
ah then maybe edit the zr plugin?
__________________
8guawong is offline
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 02-29-2016 , 10:13   Re: [CS:GO] How to detect when sound emit?
Reply With Quote #5

You can test whether its sound could be hooked.

Just try it. that's the fastest way.
__________________
Starbish is offline
Reply



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 04:48.


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