SendProxy Manager
SendProxy Manager
SendVar Proxies allow you to send netprop values to clients without actually changing them on the server. If you've coded with SDKHooks before, this should be easy to use, as I designed it to be very similar to SDKHooks. This extension only works on and is only supported on the following engines: ep2, ep2v, and css. Download (1.1.3): removed or view the source removed Here's some example code to get you started. PHP Code:
PHP Code:
Code:
enum SendPropType { If you manage to crash this, please do provide me with some debug data and the source to whatever crashed it so that I may fix said crash as quickly as possible. glhfducksducksducksducksducksducksducksducks |
Re: SendProxy Manager
captioncaptioncaption
|
Re: SendProxy Manager
L 10/16/2011 - 19:26:49: [SM] Native "SendProxy_Hook" reported: Could not find prop m_iHealth in sendtable DT_CSPlayer
Just so it doesn't get lost. |
Re: SendProxy Manager
This looks useful.
Quote:
|
Re: SendProxy Manager
same for me
|
Re: SendProxy Manager
Sounds very useful.
|
Re: SendProxy Manager
Quote:
|
Re: SendProxy Manager
Fixed your error (Could not find prop m_iHealth in sendtable DT_CSPlayer) hopefully. It now searches all datatables within datatables for the prop you want. Redownload for the updated version.
Also it handles client disconnects now, so you don't need to manually unhook it for client disconnects. captioncaption \\ captioncaption |
Re: SendProxy Manager
Updated (1.0.3).
The integer and float SendProp values are now passed through iValue and flValue in the callback. caption |
Re: SendProxy Manager
Updated again (1.0.4)
Fixed crashes related to plugin unloading/reloading. caption |
Re: SendProxy Manager
Hi afro, the extensions doesn't seem to load here:
[SM] Unable to load plugin "HealthFix.smx": Required extension "SendProxy Manager" file("sendproxy.ext") not running (Windows server) |
Re: SendProxy Manager
Awesome! Thanks alot. I've always wanted to do that <3
|
Re: SendProxy Manager
[03] <FAILED> file "sendproxy.ext.dll": Could not find interface: ISourceMod
|
Re: SendProxy Manager
file "sendproxy.ext.dll": Could not find interface: ISourceMod
|
Re: SendProxy Manager
update the SM to the latest snapshot
|
Re: SendProxy Manager
This was compiled against SM 1.4
It will not work on 1.3 1.3 is almost out the window, with 1.4 almost released. Upgrade to 1.4 kthx caption |
Re: SendProxy Manager
Updated (1.0.5)
Added support for vectors caption |
Re: SendProxy Manager
Updated (1.0.6)
Now automatically sets sv_parallel_packentities to 0 on extension load to avoid threading errors caption |
Re: SendProxy Manager
how are we supposed to get sourcemod 1.4 when its not even released
|
Re: SendProxy Manager
Cool extension, but how is it useful?
|
Re: SendProxy Manager
Quote:
Look under the development branch. Select the most recent release for the OS your sever runs. |
Re: SendProxy Manager
Quote:
caption |
Re: SendProxy Manager
Quote:
Unfortunately I haven't played enough TF2 (5 mins total) to know enough about the game to work on something like that. Eventually though! |
Re: SendProxy Manager
Updated (1.0.7):
Thanks AzuiSleet for cleaning up my mess! caption |
Re: SendProxy Manager
Quote:
|
Re: SendProxy Manager
linux :
Quote:
SourceMod 1.4.0-dev (build 3419); :cry: |
Re: SendProxy Manager
Did you put the extension in the extensions directory?
caption |
Re: SendProxy Manager
I would really like to see this be able to choose which clients receive the modified SendProp. I did a little peeking and you can set the DataTable proxy function and modify the recipients but that will probably block the table getting sent to all the clients. Good work regardless Afronanny.
captionwhydoyoudothiscaption |
Re: SendProxy Manager
Quote:
The Source engine just doesn't support sending different netprop values to different clients. It's possible to hack around it, but it would be a CPU-intensive, memory-hogging mess of a plugin that would have to detour just about every function that had a CFrameSnapshot* in its calling parameters and would be responsible for keeping track of and populating a CFrameSnapshot for every client for every tick. The only other way I can think of is to play with packets as they're being sent, which would probably be the easiest solution, but not if you want an easy API that can send any netprop value to any client. You'd have to know which netprop you want to change, which packet the entity is being transmitted to the client in, and exactly where in the packet that netprop value is. So that isn't the best solution either. I'll keep trying, but I have little hope that this will work. (Maybe Valve will add this feature in the future. Imagine the endless new plugin possibilities that this feature would bring!) caption |
Re: SendProxy Manager
Quote:
/root/SERVER/games/zm/css/cstrike/addons/sourcemod/extensions +sendproxy.autoload +sendproxy.ext.so /root/SERVER/games/zm/css/cstrike/addons/sourcemod/gamedata +sendproxy.txt used files from the original archive :grrr: |
Re: SendProxy Manager
Seems very interesting. Can someone spitball some ideas about how this would be used? Why would you want to change the client netprops but not on the server?
|
Re: SendProxy Manager
basically the server calculates with the original values while the clients see faked ones instead.
i didn't test any of those: make all players think a player is low at health, but really has like 5000. make a player seem like he's on team blue but he really is red and therefore takes damage inflicted by his seemingly blue teammates. give a player the uberglow without being ubered and still taking damage. move entities without moving them. |
Re: SendProxy Manager
I think I did something wrong in string/array proxying. Once I get back to a Windows computer I'll be able to get fixes for that compiled and pushed out.
|
Re: SendProxy Manager
Very useful extension indeed. Thanks!
Quote:
With this extension I can send glows only to 1 person or only to the infected team. |
Re: SendProxy Manager
Quote:
|
Re: SendProxy Manager
Updated (1.0.8):
Vector and String proxy hooks now copyback correctly ducksducksducksducks |
Re: SendProxy Manager
So for example you could make it appear that your character is sitting in one spot but be in another? lol.
|
Re: SendProxy Manager
You could, if you wanted to.
ducks |
Re: SendProxy Manager
Any chance of getting array support? I'd like to do something like this:
Code:
CCSPlayerResource: Code:
|
Re: SendProxy Manager
Quote:
I shall ponder this and try some things. ducksducks |
All times are GMT -4. The time now is 10:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.