swiftlys2/docs/api/ai/
API Reference Events

IOnWeaponServicesCanUseHookEvent

Interface
Namespace: SwiftlyS2.Shared.Events · Assembly: SwiftlyS2.CS2.dll
[Obsolete("This event is deprecated and will be removed in future versions. Use GameHooks instead.")]
public interface IOnWeaponServicesCanUseHookEvent
View source

Properties

OriginalResult

The original result of the CanUse call.

bool OriginalResult { get; }
Property Value

Weapon

The weapon.

CCSWeaponBase Weapon { get; }
Property Value

WeaponServices

The weapon services.

CCSPlayer_WeaponServices WeaponServices { get; }

Methods

SetResult(bool)

Intercept and modify the can use result. This will modify the can use result and stop the following hooks and original function.

void SetResult(bool result)
Parameters
  • resultboolThe result to modify.