[TF2] Cloak API
Cloak API Have you ever wanted to mess with watches, whether for a new custom effect or just detect it? You've come to the right place. This is an API that provides hooks for developers to use to detect and/or change the behaviours of watches. It has an SDKHook-like system and it automatically unhooks when a player disconnects, so you won't have to. Three Main Hooks - OnActivateInvisibilityWatch: Based on Code:
CTFWeaponInvis::ActivateInvisibilityWatch() - OnCleanupInvisibilityWatch: Based on Code:
CTFWeaponInvis::CleanupInvisibilityWatch() - OnUpdateCloakMeter: Based on Code:
CTFPlayerShared::UpdateCloakMeter() Examples Here is an example of a plugin that utilizes the API. https://github.com/tsuza/attr_speed_bonus_during_cloak Download Github Repository |
All times are GMT -4. The time now is 19:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.