Esempio n. 1
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;
     }
 }
Esempio n. 2
0
 private static void AssignValues()
 {
     generalParams          = new ModifierParams.General(enableCountdown, showOnScoreOverlay, allowScoreDisablingMods, useChannelPoints, cooldownBetweenModifiers, enableTwitchModifiers, maxActiveModifiers, showModStatus, disableForOst);
     speedParams            = new ModifierParams.Speed(speedEnabled, speedDuration, speedCooldown, minSpeed, maxSpeed);
     aimParams              = new ModifierParams.AimAssist(aimAssistEnabled, aimAssistDuration, aimAssistCooldown, minAimAssist);
     psychadeliaParams      = new ModifierParams.Psychedelia(psychedeliaEnabled, psychedeliaDuration, psychedeliaCooldown, minPsychedeliaSpeed, maxPsychedeliaSpeed);
     mineParams             = new ModifierParams.Mines(minesEnabled, minesDuration, minesCooldown);
     wobbleParams           = new ModifierParams.Wobble(wobbleEnabled, wombleEnabled, woobleEnabled, wroblEnabled, wobbleDuration, wobbleCooldown, wobbleMinSpeed, wobbleMaxSpeed);
     invisGunsParams        = new ModifierParams.InvisGuns(invisibleGunsEnabled, invisibleGunsDuration, invisibleGunsCooldown);
     particlesParams        = new ModifierParams.Particles(particlesEnabled, particlesDuration, particlesCooldown, minParticles, maxParticles);
     zOffsetParams          = new ModifierParams.ZOffset(zoffsetEnabled, zoffsetDuration, zoffsetCooldown, minZoffset, maxZoffset);
     betterMeleesParams     = new ModifierParams.BetterMelees(betterMeleesEnabled, betterMeleesDuration, betterMeleesCooldown);
     randomOffsetParams     = new ModifierParams.RandomOffset(randomOffsetEnabled, randomOffsetDuration, randomOffsetCooldown, minRandomOffsetX, maxRandomOffsetX, minRandomOffsetY, maxRandomOffsetY);
     scaleParams            = new ModifierParams.Scale(scaleEnabled, scaleDuration, scaleCooldown, minScale, maxScale);
     randomColorParams      = new ModifierParams.RandomColors(randomColorsEnabled, randomColorsDuration, randomColorsCooldown);
     colorSwapParams        = new ModifierParams.ColorSwap(colorSwapEnabled, colorSwapDuration, colorSwapCooldown);
     streamModeParams       = new ModifierParams.StreamMode(streamModeEnabled, streamModeDuration, streamModeCooldown, maxStreamSpeed);
     hiddenTelegraphsParams = new ModifierParams.HiddenTelegraphs(hiddenTelegraphsEnabled, hiddenTelegraphsDuration, hiddenTelegraphsCooldown);
     unifyColorsParams      = new ModifierParams.UnifyColors(unifyColorsEnabled, unifyColorsDuration, unifyColorsCooldown);
     //timingAttackParams = new ModifierParams.TimingAttack(timingAttackEnabled, timingAttackDuration, timingAttackCooldown);
     //nukeParams = new ModifierParams.Nuke(nukeEnabled, nukeDuration, nukeCooldown);
     stutterChainParams = new ModifierParams.StutterChains(stutterChainsEnabled, stutterChainsDuration, stutterChainsCooldown, stutterChainsMin, stutterChainsMax);
     //bopModeParams = new ModifierParams.BopMode(bopModeEnabled, bopModeDuration, bopModeCooldown);
 }