Ejemplo n.º 1
0
        public ModCore()
        {
            curGameTime = Game.GameTime;

            zoneManagerScript = new ZoneManager();
            gangManagerScript = new GangManager();
            mindControlScript = new MindControl();
            menuScript        = new MenuScript();

            this.Aborted += OnAbort;

            this.KeyUp += OnKeyUp;
            this.Tick  += OnTick;

            Logger.Log("mod started!", 2);

            bool successfulInit = GangMemberUpdater.Initialize();

            while (successfulInit == false)
            {
                Yield();
                successfulInit = GangMemberUpdater.Initialize();
            }

            successfulInit = GangVehicleUpdater.Initialize();

            while (successfulInit == false)
            {
                Yield();
                successfulInit = GangVehicleUpdater.Initialize();
            }
        }
Ejemplo n.º 2
0
        public MindControl()
        {
            instance = this;

            defaultMaxHealth = Game.Player.Character.MaxHealth;
        }