SwiftlyS2

IOnWeaponServicesCanUseHookEvent

Interface IOnWeaponServicesCanUseHookEvent

Namespace: SwiftlyS2.Shared.Events

Assembly: SwiftlyS2.CS2.dll

public interface IOnWeaponServicesCanUseHookEvent

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; }
Property Value

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
  • result bool — The result to modify.

On this page