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

ListenOverrides Issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 09-26-2013 , 16:37   ListenOverrides Issue
Reply With Quote #1

I must be missing something or have this backwards, but it looks like it should be working as I expect it to, but it appears it isn't.

I want alive players to not hear dead/spectator players (unless the alive player is an admin) and dead players can hear all alive and dead/spectator players
Attached Files
File Type: sp Get Plugin or Get Source (listen_test.sp - 126 views - 7.4 KB)
__________________
View my Plugins | Donate
TnTSCS is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-27-2013 , 09:39   Re: ListenOverrides Issue
Reply With Quote #2

Will this look funny ??
Spoiler




*hope those players listen flags not affect to this "override"
PHP Code:
SetClientListeningFlags
GetClientListeningFlags

#define VOICE_NORMAL        0    /**< Allow the client to listen and speak normally. */
#define VOICE_MUTED        1    /**< Mutes the client from speaking to everyone. */
#define VOICE_SPEAKALL        2    /**< Allow the client to speak to everyone. */
#define VOICE_LISTENALL        4    /**< Allow the client to listen to everyone. */
#define VOICE_TEAM        8    /**< Allow the client to always speak to team, even when dead. */
#define VOICE_LISTENTEAM    16    /**< Allow the client to always hear teammates, including dead ones. */ 
__________________
Do not Private Message @me

Last edited by Bacardi; 09-27-2013 at 09:55.
Bacardi is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 09-27-2013 , 17:42   Re: ListenOverrides Issue
Reply With Quote #3

I'll try out your version, thanks for supplying it... I think it's pretty much what I had... maybe the listenflags are being messed with when using override
__________________
View my Plugins | Donate
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-13-2013 , 10:14   Re: ListenOverrides Issue
Reply With Quote #4

Okay, so with the below plugin, my server crashes on every map change.

http://pastebin.com/qicmmK2p

I've got the accelerator plugin running and have crashes listed in the crash.limetech.org site.

psychonic started looking into this yesterday when I was on IRC, but I don't know what he found out, if anything.

He said nothing has changed and the plugin shouldn't be causing this...

here are the first 10 lines of the stack trace:
Code:
Stack Trace
Function
0	sdktools.ext.2.css.so!__SourceHook_FHCls_IVoiceServerSetClientListening0::Func(int, int, bool) [voice.cpp:59 + 0xf]
1	server_srv.so!CVoiceGameMgr::UpdateMasks() + 0x2d6
2	server_srv.so!CGameRules::Think() + 0x34
3	server_srv.so!CCSGameRules::Think() + 0x16
4	server_srv.so!CGameRules::FrameUpdatePostEntityThink() + 0xbd
5	server_srv.so!CMultiplayRules::FrameUpdatePostEntityThink() + 0x22
6	server_srv.so!InvokeMethodReverseOrder(void (IGameSystem::*)()) + 0x220
7	server_srv.so!IGameSystem::FrameUpdatePostEntityThinkAllSystems() + 0x17
8	server_srv.so!CServerGameDLL::GameFrame(bool) + 0x166
9	sourcemod.2.css.so!__SourceHook_FHCls_IServerGameDLLGameFramefalse::Func(bool) [sourcemod.cpp:49 + 0x1a]
__________________
View my Plugins | Donate
TnTSCS 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 05:12.


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