public static void Postfix(CyclopsFireSuppressionSystemButton __instance)
        {
            SubRoot  cyclops = __instance.subRoot;
            NitroxId id      = NitroxEntity.GetId(cyclops.gameObject);

            NitroxServiceLocator.LocateService <Cyclops>().BroadcastActivateFireSuppression(id);
        }
        public static void Postfix(CyclopsFireSuppressionSystemButton __instance)
        {
            SubRoot cyclops = __instance.subRoot;
            string  guid    = GuidHelper.GetGuid(cyclops.gameObject);

            NitroxServiceLocator.LocateService <Cyclops>().ActivateFireSuppression(guid);
        }
Exemplo n.º 3
0
 private static void Postfix(CyclopsFireSuppressionSystemButton __instance)
 {
     if (__instance.active)
     {
         HandReticle_LateUpdate.activateCyclopsCrosshair = true;
     }
 }
Exemplo n.º 4
0
        public void StartFireSuppression(NitroxId id)
        {
            GameObject cyclops = NitroxIdentifier.RequireObjectFrom(id);
            CyclopsFireSuppressionSystemButton fireSuppButton = cyclops.RequireComponentInChildren <CyclopsFireSuppressionSystemButton>();

            using (packetSender.Suppress <CyclopsFireSuppression>())
            {
                // Infos from SubFire.StartSystem
                fireSuppButton.subFire.StartCoroutine(StartFireSuppressionSystem(fireSuppButton.subFire));
                fireSuppButton.StartCooldown();
            }
        }
        public override void Process(CyclopsFireSuppression sonarPacket)
        {
            GameObject cyclops = GuidHelper.RequireObjectFrom(sonarPacket.Guid);
            CyclopsFireSuppressionSystemButton fireSuppButton = cyclops.RequireComponentInChildren <CyclopsFireSuppressionSystemButton>();

            using (packetSender.Suppress <CyclopsFireSuppression>())
            {
                // Infos from SubFire.StartSystem
                fireSuppButton.subFire.StartCoroutine(StartSystem(fireSuppButton.subFire));
                fireSuppButton.StartCooldown();
            }
        }