Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Hooking
Re: Hooking [message #453704 is a reply to message #453653] Fri, 09 September 2011 06:28 Go to previous messageGo to previous message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma:
General (2 Stars)

The SSGM plugin interface (see example plugin) basically contains all hooks that are available. You should use that instead of the Add...Hook functions, because contrary to what the name suggests, they support only a single hook, and SSGM is already using it. Calling the Add...Hook functions will often break SSGM or plugin functionality.

If there is any hook you think would be useful, let us know, so that we can implement it.

As for addConnectionAcceptanceFilter, best look at ConnectionAcceptanceFilter.h and BanSystem.cpp. A connection acceptance filter is basically used to check whether a user can join or not, and makes it possible to do some relatively time consuming background checking asynchronously without stalling the server and causing lag for all players ingame. This allows for "nice" banning of the player, instead of the join-and-kick behavior that was used before TT.

The ban system currently handles serial validation, and waits for the serial to be fetched before allowing the player to join. For example, this may be useful to implement route-based/"localnode" banning nicely without the join-and-kick bahavior.


BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reduce Arty screen shake feature
Next Topic: Missing textures on fan maps
Goto Forum:
  


Current Time: Thu Jan 09 14:00:13 MST 2025

Total time taken to generate the page: 0.00933 seconds