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

SendProxy Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 03-20-2013 , 17:37   Re: SendProxy Manager
Reply With Quote #171

Quote:
Originally Posted by Afronanny View Post
Unhook should stop the output, yes. I won't be able to help debug this until Sunday when I get back to my main PC. It sounds like it could be a bug in the extension. For now though, you can just return Plugin_Continue in the callback to mimic an unhook.
The name of array props is the index like "005" instead of the array name.
Don't know if this breaks anything else, but works fine.
Code:
diff -r d5c38c561197 extension.cpp
--- a/extension.cpp    Fri Nov 02 17:44:16 2012 -0400
+++ b/extension.cpp    Wed Mar 20 22:35:41 2013 +0100
@@ -672,6 +672,9 @@
     {
         return pContext->ThrowNativeError("Could not find element %d in %s", element, info.prop->GetName());
     }
+
+    if(pProp->GetParentArrayPropName() == NULL)
+        pProp->SetParentArrayPropName(info.prop->GetName());
     
     SendPropHook hook;
     hook.objectID = entity;
@@ -721,7 +724,7 @@
     IPluginFunction *callback = pContext->GetFunctionById(params[5]);
     for (int i = 0; i < g_Hooks.Count(); i++)
     {
-        if (g_Hooks[i].Element == element && g_Hooks[i].PropType == propType && g_Hooks[i].pCallback == callback && !strcmp(g_Hooks[i].pVar->GetName(), propName) && g_Hooks[i].objectID == entity)
+        if (g_Hooks[i].Element == element && g_Hooks[i].PropType == propType && g_Hooks[i].pCallback == callback && !strcmp(g_Hooks[i].pVar->GetParentArrayPropName(), propName) && g_Hooks[i].objectID == entity)
         {
             g_SendProxyManager.UnhookProxy(i);
         }
__________________
Peace-Maker is offline
smast
AlliedModders Donor
Join Date: Aug 2012
Old 03-26-2013 , 04:56   Re: SendProxy Manager
Reply With Quote #172

@Afronanny: Did you find out anything?

Last edited by smast; 03-26-2013 at 04:56.
smast is offline
SolaTin
Junior Member
Join Date: May 2012
Location: Galactic System
Old 03-30-2013 , 16:45   Re: SendProxy Manager
Reply With Quote #173

Quote:
Originally Posted by wgooch View Post
I don't believe doing so would be possible with this extension right now. You could however use TF2Items and apply the "hide enemy health" attribute (336) to one of the player's weapons.
Note that the attribute is unused currently, so it's quite possible that it will do nothing.
Thanks!

i temporary used.
SolaTin is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 03-31-2013 , 00:23   Re: SendProxy Manager
Reply With Quote #174

Quote:
Originally Posted by smast View Post
@Afronanny: Did you find out anything?
I just uploaded Peace-Maker's patch (thanks Peace-Maker!). Try it out and let me know if it still doesn't work the way you want it to
Afronanny is offline
smast
AlliedModders Donor
Join Date: Aug 2012
Old 03-31-2013 , 04:48   Re: SendProxy Manager
Reply With Quote #175

The Unhook is working now - thanks!

But is it normal that it takes a few seconds before the first "Hook" Message appears?
smast is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 03-31-2013 , 13:57   Re: SendProxy Manager
Reply With Quote #176

Quote:
Originally Posted by smast View Post
But is it normal that it takes a few seconds before the first "Hook" Message appears?
Yes.
Afronanny is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 04-14-2013 , 10:14   Re: SendProxy Manager
Reply With Quote #177

Extension is not working in DoD:S anymore

Code:
#include <sendproxy> #define Team_Custom 4 public OnClientPutInServer(client) {     SendProxy_Hook(client, "m_iTeamNum", Prop_Int, SendProxy_TeamNum); } public Action:SendProxy_TeamNum(client, const String:PropName[], &value, element) {     PrintToServer("SendProxy_TeamNum");         if (IsPlayerAlive(client))     {         value = Team_Custom;         return Plugin_Changed;     }     return Plugin_Continue; }
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot

Last edited by Root_; 04-14-2013 at 10:15.
Root_ is offline
Lia
Junior Member
Join Date: Apr 2013
Old 04-15-2013 , 07:33   Re: SendProxy Manager
Reply With Quote #178

One more useful post,thank you
Lia is offline
IcEWoLF
Senior Member
Join Date: Jul 2007
Old 04-17-2013 , 01:06   Re: SendProxy Manager
Reply With Quote #179

Doesn't work for CS:S either.

Looks like his site is down as well too.
__________________
The 47 Ronin Gaming - http://www.47r-squad.com



Last edited by IcEWoLF; 04-17-2013 at 01:09.
IcEWoLF is offline
BenSib
Senior Member
Join Date: Aug 2008
Old 04-20-2013 , 02:00   Re: SendProxy Manager
Reply With Quote #180

did anyone save the source?
it was a really useful extension...
BenSib 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 08:36.


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