Raised This Month: $32 Target: $400
 8% 

[TF2] SDKHook_SetTransmit and Miniguns?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 08-18-2013 , 02:06   [TF2] SDKHook_SetTransmit and Miniguns?
Reply With Quote #1

Okay, so I'm experimenting with different ways of hiding Friendly players from non-Friendly players. One thing that was suggested a while back was SetTransmit provided by SDKHooks.

Code:
public Action:Hook_SetTransmit(client, entity) {     if (cvar_settransmit == 0 || !IsValidClient(client) || !IsValidClient(entity)) {         return Plugin_Continue;     }     if (cvar_settransmit > 0 && !IsFriendly[entity] && IsFriendly[client]) {         return Plugin_Handled;     }     if (cvar_settransmit == 2 && IsFriendly[entity] && !IsFriendly[client]) {         return Plugin_Handled;     }     return Plugin_Continue; }

This seems to work pretty well. Even silences footsteps. (Voice commands and attacks are still audible, but I'll tackle that myself later.)

However, it doesn't seem to work if the player in question has a minigun equipped? Why is this? Is there some other known issue that causes this? How can I fix this, short of actually removing the weapon from the Friendly Heavy?


I have unloaded all other plugins to test this. The issue still occurs.

Server info:
Spoiler

Last edited by ddhoward; 08-18-2013 at 02:58.
ddhoward is offline
 



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 20:44.


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