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

FM_PlaybackEvent for receiver


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 07-29-2021 , 18:06   FM_PlaybackEvent for receiver
Reply With Quote #1

I want to use FM_PlaybackEvent
Code:
(int flags, const edict_t *pInvoker, unsigned short eventindex, float delay, float *origin, float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2)
but NOT for invoker, only for receiver.

Because I need to set SUPERCEDE to block sound.
Is there any way?

Maybe another function on Reapi? Maybe another method?

Last edited by baneado; 07-29-2021 at 18:08.
baneado is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-29-2021 , 18:25   Re: FM_PlaybackEvent for receiver
Reply With Quote #2

what are you trying to achieve?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-29-2021 , 21:08   Re: FM_PlaybackEvent for receiver
Reply With Quote #3

One could use rh_emit_sound2 or emitsound2 module if using official hlds, to emit a sound from the invoker to a receiver.
However, if what you're trying to do is replace a gun's shoot sound, just supercede"ing" the playbackevent won't stop the sound from being played because it's also handled in the client-side.
__________________









Last edited by CrazY.; 07-29-2021 at 21:11.
CrazY. is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 07-30-2021 , 13:34   Re: FM_PlaybackEvent for receiver
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post
what are you trying to achieve?
Returning supercede to mute weapons for 3rd players that enable the /mute command (for example).
Problem? That function only appears invoker, not receiver.

I saw a server having this option. So, it's possible to do it.

Quote:
Originally Posted by CrazY. View Post
One could use rh_emit_sound2 or emitsound2 module if using official hlds, to emit a sound from the invoker to a receiver.
However, if what you're trying to do is replace a gun's shoot sound, just supercede"ing" the playbackevent won't stop the sound from being played because it's also handled in the client-side.
I'm trying to mute weapons for one player, not the player who shoots or all players
That's why I need receiver.

Last edited by baneado; 07-30-2021 at 13:54.
baneado is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 08-08-2021 , 05:02   Re: FM_PlaybackEvent for receiver
Reply With Quote #5

Solved.

New plugin submitted:
https://forums.alliedmods.net/showthread.php?t=333823

Last edited by baneado; 08-08-2021 at 05:02.
baneado 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 00:59.


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