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

Custom Grenade Sounds . . Tactical OPS like


Post New Thread Reply   
 
Thread Tools Display Modes
KMFrog
Senior Member
Join Date: Oct 2007
Old 12-21-2007 , 07:10   Re: Custom Grenade Sounds . . Tactical OPS like
Reply With Quote #21

been playing a bit more with this...

- I've now written in cvars to set the sounds and text messages for each nade type

- The "fire in the hole" sound is now the only blocked radio sound.. the rest work fine

My last and final problem is this:

I cant seam to single out and block the radio text messages. Looking at the data sent with the user message it seams the sever sends a generic user message for all radio commands - but that cant be possible because the client prints the correct text even when the sound messages are blocked.

So there must be some data I cant find/access which I'm going to have to access to block only the "fire in the hole" messages.

I tried to hack round it (naturally) but the sound message is sent after the text message, and the weapon_fire event is also triggered after both user messages are sent.... so the only way I can see to do it is:

- find some data to single out "fire in the hole" text messages in the usrmsg hook

- Block all radio text user messages and be done with it

- Block all radio text user messages and then create fake ones depending on the radio sound user message sent after the blocked one ... which sucks.

Maybe someone with a bit more knowledge of user messages can help me out *hint* *hint*
__________________
Was I helpful or not? Rate Me!

Last edited by KMFrog; 12-21-2007 at 07:12.
KMFrog is offline
---> | OJ | <---
Junior Member
Join Date: Dec 2007
Old 12-25-2007 , 09:17   Re: Custom Grenade Sounds . . Tactical OPS like
Reply With Quote #22

help please ??????
---> | OJ | <--- is offline
---> | OJ | <---
Junior Member
Join Date: Dec 2007
Old 12-30-2007 , 13:54   Re: Custom Grenade Sounds . . Tactical OPS like
Reply With Quote #23

---> | OJ | <--- is offline
---> | OJ | <---
Junior Member
Join Date: Dec 2007
Old 01-03-2008 , 07:42   Re: Custom Grenade Sounds . . Tactical OPS like
Reply With Quote #24

=(
---> | OJ | <--- is offline
KMFrog
Senior Member
Join Date: Oct 2007
Old 01-03-2008 , 09:53   Re: Custom Grenade Sounds . . Tactical OPS like
Reply With Quote #25

Hey, Ive still not found a way to single out the fire in the hole radio messages from the rest of the radio messages - and as you can see nobody has posted any hints/help here - so this may not even be possible with the current feature set of SM.

I will clean up the code I have and post it here later - that will at least allow you to have custom sounds for each grenade.
__________________
Was I helpful or not? Rate Me!
KMFrog is offline
---> | OJ | <---
Junior Member
Join Date: Dec 2007
Old 01-04-2008 , 11:16   Re: Custom Grenade Sounds . . Tactical OPS like
Reply With Quote #26

thx KMFroq for your help.

im dissapointet that nobody has posted any helpful hints,
but thx for making this plugin possible ! =)

even if it is not 100% complete.
---> | OJ | <--- is offline
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 01-04-2008 , 12:36   Re: Custom Grenade Sounds . . Tactical OPS like
Reply With Quote #27

It should be possible to block Fire in the Hole, but it might not be particular easy to block it ONLY for he_grenade, since weapon_fire comes after. I'll post more once I'm home from work.

The RadioText bitbuffer, from what I've been able to figure out from here with a little help from BAIL since my resources are limited has the following parameters:

byte - Source of the radio, client index
byte - Probably the radio message id. There should be a list of these on the client
5 strings - Tokens and data for the client to format into the radio message. The first one is always #Game_radio_location in CSS. This is the token for "player location" and gets replaced by the appropriate location based on the players language settings.

The second int is probably the only thing you need. I don't have access to CSS client files so have't been able to do anything further on that. I have seen the file before though and know it exists. I may have the two bytes backwards, but I believe client index is first.

RadioText is not fully defined in the SDK since HL2MP doesn't use it. It isn't registered in hl2mp_usermessages but is in sdk_usermessages
__________________
I'm a blast from the past!

Last edited by ferret; 01-04-2008 at 12:39.
ferret is offline
KMFrog
Senior Member
Join Date: Oct 2007
Old 01-04-2008 , 19:08   Re: Custom Grenade Sounds . . Tactical OPS like
Reply With Quote #28

I think i found what your talking about while i was having a look.

If I recall, what you say is the radio message ID never changes...
Maybe I didnt do things correctly though

Anyway, attached is the source and compiled plugin for use.
It will allow custom sounds for grenades - but not text.

Check out the source code to see the CVARS to configure the plugin
what you need most for now is:
Code:
FNH_sound_flashbang "ambient/animal/horse_5.wav"
FNH_sound_smokegren "ambient/animal/horse_4.wav"
FNH_sound_hegren "ambient/animal/horse_3.wav"
Here is where i got up to:
Attached Files
File Type: zip FrogsNadeHack v2.zip (5.6 KB, 118 views)
__________________
Was I helpful or not? Rate Me!
KMFrog is offline
stone newbie
Junior Member
Join Date: Oct 2010
Old 07-07-2011 , 11:21   Re: Custom Grenade Sounds . . Tactical OPS like
Reply With Quote #29

hello people

I am looking for a plugin,what changes the grenade exploding sound.
I like a Molotov cocktail sound, for a grenade.

maybe someone can help me?

THX and mfg stone
stone newbie 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 06:40.


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