AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [TF2|LINUX] proxysend (https://forums.alliedmods.net/showthread.php?t=339634)

arthurdead 09-23-2022 08:29

[TF2|LINUX] proxysend
 
remade sendproxy from scratch

https://github.com/arthurdead/proxysend

do not report issues on this thread use github

theoretically should be more performant

keep in mind this is not SDKHooks

don't do this:
Code:

change_player_variable(int client, bool value)
  variable[client] = value;

OnClientPutInServer(int client)
  proxysend_hook(client, "m_iNetVar", variable_callback):

variable_callback(int entity):
  if(variable[entity])
    result = 2
    return Pl_Changed
  return Pl_Continue

do this instead:
Code:

change_player_variable(int client, bool value)
  if(value)
    proxysend_hook(client, "m_iNetVar", variable_callback):
  else
    proxysend_unhook(client, "m_iNetVar", variable_callback):

variable_callback(int entity):
  result = 2
  return Pl_Changed

or do it the first way idk your code your rules


All times are GMT -4. The time now is 04:41.

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