Raised This Month: $ Target: $400
 0% 

SendProxy Manager


Post New Thread Reply   
 
Thread Tools Display Modes
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 04-05-2012 , 11:02   Re: SendProxy Manager
Reply With Quote #71

I'd like a way to unhook array props, thanks!
__________________
GoD-Tony is offline
mcpan313
Senior Member
Join Date: Mar 2010
Old 04-17-2012 , 11:11   Re: SendProxy Manager
Reply With Quote #72

server carsh!

code:
PHP Code:
#pragma semicolon 1
#include <sourcemod>
#include <sendproxy>

public OnPluginStart()
{
    
RegConsoleCmd("test"test);
}

public 
Action:test(clientargs)
{
    
SendProxy_Hook(client"m_hActiveWeapon"Prop_IntProxyCallback);
    return 
Plugin_Handled;
}

public 
Action:ProxyCallback(entity, const String:propname[], &iValueelement)
{
    
PrintToChatAll("%s:%d"propnameiValue);
    return 
Plugin_Continue;

PHP Code:
version
Version 2.1.0.2 
(left4dead2)
Network Version 2.0.4.2
Exe build
16:00:11 Dec  6 2011 (4777) (550)
plugin_print 
Loaded plugins
:
---------------------
0:    "Metamod:Source 1.9.0-dev"
---------------------
sm version
 SourceMod Version Information
:
    
SourceMod Version1.4.2
    SourcePawn Engine
SourcePawn 1.1jit-x86 (build 1.4.2)
    
SourcePawn APIv1 4v2 3
    Compiled on
Apr 13 2012 17:55:57
    Build ID
3465:0026e1394254
    http
://www.sourcemod.net/
meta version
Metamod
:Source version 1.9.0-dev
Build ID
777:62e002cdecdb-dev
Loaded 
As: Valve Server Plugin
Compiled on
Mar 21 2012
Plugin 
interface version15:14
SourceHook version
5:5
http
://www.metamodsource.net/
sm exts list
[
SMDisplaying 7 extensions:
[
01Automatic Updater (1.4.2): Updates SourceMod gamedata files
[02Webternet (1.4.2): Extension for interacting with URLs
[03Left 4 Downtown 2 Extension (0.5.3): Downtown1's extension to perform useful L4D1/L4D2 calls
[04] BinTools (1.4.2): Low-level C/C++ Calling API
[05] SendProxy Manager (1.1.2): Change stuff without actually changing stuff!
[06] Top Menus (1.4.2): Creates sorted nested menus
[07] SDK Tools (1.4.2): Source SDK Tools 
__________________
sorry, for my poor english.
mcpan313 is offline
Send a message via MSN to mcpan313
Afronanny
Veteran Member
Join Date: Aug 2009
Old 04-17-2012 , 21:32   Re: SendProxy Manager
Reply With Quote #73

Quote:
] version
Version 2.1.0.2
(left4dead2)


I haven't compiled this for Left4dead2 yet. The SDK is probably different from orangeboxvalve with regard to sendproxies.
Afronanny is offline
NameUser
Senior Member
Join Date: Apr 2012
Location: Bay Area, California
Old 04-22-2012 , 16:53   Re: SendProxy Manager
Reply With Quote #74

Quote:
Originally Posted by psychonic View Post
captioncaptioncaption
Spacespacespacespacespacespace
__________________
NameUser is offline
Send a message via Skype™ to NameUser
Afronanny
Veteran Member
Join Date: Aug 2009
Old 05-26-2012 , 15:45   Re: SendProxy Manager
Reply With Quote #75

Quote:
Originally Posted by Thrawn2 View Post
PHP Code:
sharesys->RegisterLibrary(myself"sendproxy"); 
pls

I want to use LibraryExists("sendproxy") instead of
CanTestFeatures() && GetFeatureStatus(FeatureType_Native, "SendProxy_HookArrayProp" == FeatureStatus_Available)

edit: also:
PHP Code:
#if !defined REQUIRE_EXTENSIONS
public __ext_sendproxymanager_SetNTVOptional()
{
    
MarkNativeAsOptional("SendProxy_Hook");
    
MarkNativeAsOptional("SendProxy_HookArrayProp");
    
MarkNativeAsOptional("SendProxy_Unhook");
    
MarkNativeAsOptional("SendProxy_IsHooked");
    
MarkNativeAsOptional("SendProxy_HookPropChange");
    
MarkNativeAsOptional("SendProxy_UnhookPropChange");
}
#endif 
1.1.3

- Added native for unhooking array props (SendProxy_UnhookArrayProp)
- Did all the stuff in the post above
Afronanny is offline
GNCMatt
Member
Join Date: Apr 2009
Old 07-05-2012 , 16:57   Re: SendProxy Manager
Reply With Quote #76

Is this ext still working? Or does it require an update after the tf2 update?
__________________
GNCMatt is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 07-05-2012 , 17:07   Re: SendProxy Manager
Reply With Quote #77

Still works as far as I know. I haven't heard anything about it being broken.
Afronanny is offline
GNCMatt
Member
Join Date: Apr 2009
Old 07-07-2012 , 11:12   Re: SendProxy Manager
Reply With Quote #78

I had to write it out of my plugins, wasn't working anymore.
__________________
GNCMatt is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 07-07-2012 , 15:37   Re: SendProxy Manager
Reply With Quote #79

Gamedata needed to be updated. You can download the whole package again or you can change the offsets for UpdateOnRemove to:
Windows: 104
Linux: 105
Afronanny is offline
tigerox
AlliedModders Donor
Join Date: Oct 2008
Location: Canada
Old 08-01-2012 , 20:01   Re: SendProxy Manager
Reply With Quote #80

This does not have any effect on 'm_CollisionGroup', any idea how to get it working?


PHP Code:
public Action:EventPlayerTeam(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    
    if ((
client && client <= MaxClients) && IsClientInGame(client) && GetEventInt(event"team") > 1)
    {
        
SendProxy_Hook(client"m_CollisionGroup"Prop_IntProxyCallback);
    }
}

public 
Action:ProxyCallback(entityString:propname[], &iValueelement)
{
    
iValue 2;
    
    return 
Plugin_Changed;

__________________
tigerox 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 16:28.


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