Example #1
0
            public override void OnClick()
            {
                if (Weapon.Parent == From)
                {
                    SearingWeapon socket = Weapon.GetSocket <SearingWeapon>();

                    socket?.ToggleExtinguish(From);
                }
            }
Example #2
0
        public static void OnWeaponRemoved(BaseWeapon wep)
        {
            SearingWeapon socket = wep.GetSocket <SearingWeapon>();

            if (socket != null && !socket.Extinguished)
            {
                socket.Extinguished = true;
                wep.Hue             = 2500;
            }
        }
Example #3
0
        public static bool CanSear(BaseWeapon weapon)
        {
            SearingWeapon socket = weapon.GetSocket <SearingWeapon>();

            return(socket != null && !socket.Extinguished);
        }