swiftlys2/docs/api/releases/features/ai/
API Reference › GameHooks

IGameHookItem

Interface
Namespace: SwiftlyS2.Shared.GameHooks · Assembly: SwiftlyS2.CS2.dll
public interface IGameHookItem
View source

Properties

CanAcquire

Hook triggered when an item can acquire logic is ran by game.

ICanAcquireItemHook CanAcquire { get; }
Property Value

GetItemInLoadout

Hook triggered when the game looks up the item in a player's loadout slot for a team (CCSPlayerInventory::GetItemInLoadout), e.g. to pick the skin of a weapon it gives. Requires "FollowCS2ServerGuidelines" to be disabled in core.jsonc.

IGetItemInLoadoutHook GetItemInLoadout { get; }
Property Value