Exemple #1
0
        void OnTick(object sender, EventArgs e)
        {
            gangManagerScript.Tick();
            menuScript.Tick();

            if (GangWarManager.instance.shouldDisplayReinforcementsTexts)
            {
                GangWarManager.instance.alliedNumText.Draw();
                GangWarManager.instance.enemyNumText.Draw();
            }

            //zix attempt controller recruit
            if (ModOptions.instance.joypadControls)
            {
                if (Game.IsControlPressed(0, GTA.Control.Aim) || Game.IsControlPressed(0, GTA.Control.AccurateAim))
                {
                    if (Game.IsControlJustPressed(0, GTA.Control.ScriptPadRight))
                    {
                        RecruitGangMember();
                    }

                    if (Game.IsControlJustPressed(0, GTA.Control.ScriptPadLeft))
                    {
                        menuScript.CallCarBackup(false);
                    }

                    if (Game.IsControlJustPressed(0, GTA.Control.ScriptPadUp))
                    {
                        zoneManagerScript.OutputCurrentZoneInfo();
                    }
                }
            }
        }
Exemple #2
0
        void OnTick(object sender, EventArgs e)
        {
            curGameTime = Game.GameTime;
            gangManagerScript.Tick();
            mindControlScript.Tick();
            menuScript.Tick();

            //war stuff that should happen every frame
            if (GangWarManager.instance.shouldDisplayReinforcementsTexts)
            {
                GangWarManager.instance.alliedNumText.Draw();
                GangWarManager.instance.enemyNumText.Draw();

                if (ModOptions.instance.emptyZoneDuringWar)
                {
                    Function.Call(Hash.SET_PED_DENSITY_MULTIPLIER_THIS_FRAME, 0);
                    Function.Call(Hash.SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME, 0);
                }
            }

            //zix attempt controller recruit
            if (ModOptions.instance.joypadControls)
            {
                if (Game.IsControlPressed(0, GTA.Control.Aim) || Game.IsControlPressed(0, GTA.Control.AccurateAim))
                {
                    if (Game.IsControlJustPressed(0, GTA.Control.ScriptPadRight))
                    {
                        RecruitGangMember();
                    }

                    if (Game.IsControlJustPressed(0, GTA.Control.ScriptPadLeft))
                    {
                        menuScript.CallCarBackup(false);
                    }

                    if (Game.IsControlJustPressed(0, GTA.Control.ScriptPadUp))
                    {
                        zoneManagerScript.OutputCurrentZoneInfo();
                    }
                }
            }
        }