Esempio n. 1
0
        public StreamMode(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.StreamMode _streamModeParams)
        {
            type                   = _type;
            defaultParams          = _modifierParams;
            unhookChainsParams     = _streamModeParams;
            defaultParams.duration = _streamModeParams.duration;
            defaultParams.cooldown = _streamModeParams.cooldown;

            //speedToTicks.Add(64, 30);
            //speedToTicks.Add(48, 40);
            speedToTicks.Add(32, 60);

            speedToTicks.Add(30, 80);
            speedToTicks.Add(28, 80);
            speedToTicks.Add(26, 80);
            speedToTicks.Add(24, 80);

            speedToTicks.Add(22, 120);
            speedToTicks.Add(20, 120);
            speedToTicks.Add(18, 120);
            speedToTicks.Add(16, 120);

            speedToTicks.Add(14, 160);
            speedToTicks.Add(12, 160);

            speedToTicks.Add(10, 240);
            speedToTicks.Add(8, 240);

            speedToTicks.Add(6, 320);

            speedToTicks.Add(4, 480);
        }
Esempio n. 2
0
 public BetterMelees(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.BetterMelees _betterMeleesParams)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     betterMeleesParams     = _betterMeleesParams;
     defaultParams.duration = _betterMeleesParams.duration;
     defaultParams.cooldown = _betterMeleesParams.cooldown;
 }
Esempio n. 3
0
 /*private Color oldLeftHandColor;
  * private Color oldRightHandColor;
  */
 public UnifyColors(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.UnifyColors _unifyColorsParams)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     unifyColorsParams      = _unifyColorsParams;
     defaultParams.duration = _unifyColorsParams.duration;
     defaultParams.cooldown = _unifyColorsParams.cooldown;
 }
Esempio n. 4
0
 public ColorSwap(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.ColorSwap _colorSwitchParams)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     colorSwitchParams      = _colorSwitchParams;
     defaultParams.duration = _colorSwitchParams.duration;
     defaultParams.cooldown = _colorSwitchParams.cooldown;
 }
 public HiddenTelegraphs(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.HiddenTelegraphs _hiddenTelegraphParams)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     hiddenTelegraphParams  = _hiddenTelegraphParams;
     defaultParams.duration = _hiddenTelegraphParams.duration;
     defaultParams.cooldown = _hiddenTelegraphParams.cooldown;
 }
Esempio n. 6
0
 public Nuke(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.Nuke _nukeParams)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     nukeParams             = _nukeParams;
     defaultParams.duration = _nukeParams.duration;
     defaultParams.cooldown = _nukeParams.cooldown;
 }
Esempio n. 7
0
 public BopMode(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.BopMode _bopModeParams)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     bopModeParams          = _bopModeParams;
     defaultParams.duration = _bopModeParams.duration;
     defaultParams.cooldown = _bopModeParams.cooldown;
 }
Esempio n. 8
0
 public InvisibleGuns(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.InvisGuns _invisGunsParams)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     invisGunsParams        = _invisGunsParams;
     defaultParams.duration = _invisGunsParams.duration;
     defaultParams.cooldown = _invisGunsParams.cooldown;
 }
Esempio n. 9
0
 public RandomColors(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.RandomColors _randomColorParams)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     randomColorParams      = _randomColorParams;
     defaultParams.duration = _randomColorParams.duration;
     defaultParams.cooldown = _randomColorParams.cooldown;
 }
Esempio n. 10
0
 public Particles(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.Particles _particlesParams, float _amount)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     particlesParams        = _particlesParams;
     defaultParams.duration = _particlesParams.duration;
     defaultParams.cooldown = _particlesParams.cooldown;
     amount                 = _amount;
 }
 public AimAssistChange(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.AimAssist _aimAssistParams, float _amount)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     aimAssistParams        = _aimAssistParams;
     defaultParams.duration = _aimAssistParams.duration;
     defaultParams.cooldown = _aimAssistParams.cooldown;
     amount                 = _amount;
 }
Esempio n. 12
0
 public Psychadelia(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.Psychedelia _psychadeliaParams, float _amount)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     psychadeliaParams      = _psychadeliaParams;
     defaultParams.duration = _psychadeliaParams.duration;
     defaultParams.cooldown = _psychadeliaParams.cooldown;
     amount                 = _amount;
 }
Esempio n. 13
0
 public Mines(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.Mines _mineParams)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     mineParams             = _mineParams;
     defaultParams.duration = _mineParams.duration;
     defaultParams.cooldown = _mineParams.cooldown;
     spawner                = TargetSpawnerManager.I.mSpawners[100];
 }
Esempio n. 14
0
 public ZOffset(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.ZOffset _zOffsetParams, float _amount)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     zOffsetParams          = _zOffsetParams;
     defaultParams.duration = _zOffsetParams.duration;
     defaultParams.cooldown = _zOffsetParams.cooldown;
     amount                 = _amount;
 }
Esempio n. 15
0
 public SpeedChange(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.Speed _speedParams, float _amount)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     speedParams            = _speedParams;
     defaultParams.duration = _speedParams.duration;
     defaultParams.cooldown = _speedParams.cooldown;
     amount                 = _amount;
 }
Esempio n. 16
0
 public Scale(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.Scale _scaleParams, float _amount)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     scaleParams            = _scaleParams;
     defaultParams.duration = _scaleParams.duration;
     defaultParams.cooldown = _scaleParams.cooldown;
     amount                 = _amount;
 }
Esempio n. 17
0
        public Wobble(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.Wobble _wobbleParams, float _amount)
        {
            type                   = _type;
            defaultParams          = _modifierParams;
            wobbleParams           = _wobbleParams;
            defaultParams.duration = _wobbleParams.duration;
            defaultParams.cooldown = _wobbleParams.cooldown;
            mode                   = _amount == -3 ? Mode.Wrobl : _amount == -2 ? Mode.Wooble : _amount == 0 ? Mode.Wobble : Mode.Womble;
            amount                 = _amount;
            if (amount > wobbleParams.maxSpeed)
            {
                amount = wobbleParams.maxSpeed;
            }
            if (amount < wobbleParams.minSpeed)
            {
                amount = wobbleParams.minSpeed;
            }
            switch (mode)
            {
            case Mode.Womble:
                if (wobbleParams.wombleEnabled)
                {
                    defaultParams.name = "Womble";
                }
                else
                {
                    mode = Mode.Wobble;
                }
                break;

            case Mode.Wooble:
                if (wobbleParams.woobleEnabled)
                {
                    defaultParams.name = "Wooble";
                }
                else
                {
                    mode = Mode.Wobble;
                }
                break;

            case Mode.Wrobl:
                if (wobbleParams.wroblEnabled)
                {
                    defaultParams.name = "Wrobl";
                }
                else
                {
                    mode = Mode.Wobble;
                }
                break;

            default:
                break;
            }
        }
Esempio n. 18
0
 public StutterChains(ModifierType _type, ModifierParams.Default _modifierParams, ModifierParams.StutterChains _stutterChainParams, float _amount)
 {
     type                   = _type;
     defaultParams          = _modifierParams;
     stutterChainParams     = _stutterChainParams;
     defaultParams.duration = _stutterChainParams.duration;
     defaultParams.cooldown = _stutterChainParams.cooldown;
     amount                 = _amount;
     if (amount == 0)
     {
         amount = (stutterChainParams.minRot + stutterChainParams.maxRot) / 2;
     }
     else if (amount > stutterChainParams.maxRot)
     {
         amount = stutterChainParams.maxRot;
     }
     else if (amount < stutterChainParams.minRot)
     {
         amount = stutterChainParams.minRot;
     }
 }