public override void OnClick() { if (Weapon.Parent == From) { SearingWeapon socket = Weapon.GetSocket <SearingWeapon>(); socket?.ToggleExtinguish(From); } }
public static void OnWeaponRemoved(BaseWeapon wep) { SearingWeapon socket = wep.GetSocket <SearingWeapon>(); if (socket != null && !socket.Extinguished) { socket.Extinguished = true; wep.Hue = 2500; } }
public static bool CanSear(BaseWeapon weapon) { SearingWeapon socket = weapon.GetSocket <SearingWeapon>(); return(socket != null && !socket.Extinguished); }