Hooks called by srcdsproxy

Summary

Hooks

Run by the proxy commands that act on players (Transfer, netban add and netban addip) for every player on this server they are about to affect, the same way the command interpreter runs it for a command with immunity set.
Called on the server when the countdown of a player in a server transfer area has ended, right before they are moved to the area's server.

Hooks

CommandCheckImmunity(actor, target, false)

server plugins/srcdsproxy/plugin/sv_plugin.lua:287

Run by the proxy commands that act on players (Transfer, netban add and netban addip) for every player on this server they are about to affect, the same way the command interpreter runs it for a command with immunity set.

Parameters

  • actor Player Player who runs the command
  • target Player Player the command targets
  • can_equal Boolean Whether a target of the same standing may be affected

Returns

  • Boolean Return false if the target is immune to the actor

Called from

Call sites

ProxyAreaShouldTransfer(actor, area, backend)

server plugins/srcdsproxy/plugin/lib/sv_transfer_areas.lua:181

Called on the server when the countdown of a player in a server transfer area has ended, right before they are moved to the area's server. The player is in the area, alive and may enter that server as far as the proxy has told this server. Whatever is returned, the player is not moved again until they leave the area and enter it anew.

Parameters

  • actor Player The player who is about to be moved
  • area Map The transfer area, with the backend and delay fields
  • backend String Name of the server the player is about to be moved to

Returns

  • Boolean Return false to keep the player from being moved

Called from

Call sites

Defined in