Exemplo n.º 1
0
        public TimedEvent ShieldTimer(int timeoutDelay, Dictionary <string, object> args)
        {
            TimedEvent timedEvent = new TimedEvent(timeoutDelay);

            timedEvent.Args    = args;
            timedEvent.OnFire += CallBack;
            return(timedEvent);
        }
Exemplo n.º 2
0
        public void CallBack(TimedEvent e)
        {
            var dict = e.Args;

            e.Kill();
            Fougerite.Player pl = (Fougerite.Player)dict["inshield"];
            onshield.Remove(pl.UID);
            pl.MessageFrom("SpawnShield", DeactiveMessage);
            if (RustBusterSupport)
            {
                pl.SendConsoleMessage("shieldgotalk2");
            }
        }