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(); } }
public MindControl() { instance = this; defaultMaxHealth = Game.Player.Character.MaxHealth; }