public void PlayRandom() { ProvideHapticFeedback(0, 0, (FeedbackType)(RandomNumber.Between(0, 97)), false, FeedbackType.NoFeedback); }
private void label_Click(object sender, EventArgs e) { SaveSettings(); if (mainForm.tactsuitVr != null) { float locationHeight = ((float)(RandomNumber.Between(0, 100)) / 100.0f) - 0.5f; float locationAngle = (float)(RandomNumber.Between(0, 360)); if (sender == lblIntensityDefaultHead) { mainForm.tactsuitVr.ProvideHapticFeedback(0, locationHeight, TactsuitVR.FeedbackType.DefaultHead, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityUnarmedHead) { mainForm.tactsuitVr.ProvideHapticFeedback(0, locationHeight, TactsuitVR.FeedbackType.UnarmedHead, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityGunHead) { mainForm.tactsuitVr.ProvideHapticFeedback(0, locationHeight, TactsuitVR.FeedbackType.GunHead, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityBloaterZombie) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.UnarmedBloater, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityHeadcrab) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, 0.35f, TactsuitVR.FeedbackType.UnarmedHeadcrab, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityArmoredHeadcrab) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, 0.35f, TactsuitVR.FeedbackType.UnarmedHeadcrabArmored, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityToxicHeadcrab) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, 0.35f, TactsuitVR.FeedbackType.UnarmedHeadcrabBlack, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityLightningDog) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, 0.35f, TactsuitVR.FeedbackType.UnarmedHeadcrabFast, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityRunnerHeadcrab) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, 0.35f, TactsuitVR.FeedbackType.UnarmedHeadcrabRunner, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityFastZombie) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.UnarmedFastZombie, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityPoisonZombie) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.UnarmedPoisonZombie, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityZombie) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.UnarmedZombie, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityBlindZombie) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.UnarmedZombieBlind, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityZombine) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.UnarmedZombine, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityAntlion) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.UnarmedAntlion, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityAntlionGuard) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.UnarmedAntlionGuard, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityManhack) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.UnarmedManhack, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityBarnacle) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.GrabbedByBarnacle, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityConcussionGrenade) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.ConcussionGrenade, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityBugbaitGrenade) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.BugBaitGrenade, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityFragGrenade) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.FragGrenade, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensitySpyGrenade) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.SpyGrenade, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityHandGrenade) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.HandGrenade, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityRollerGrenade) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.RollerGrenade, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityRollerMine) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.RollerMine, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityCombine) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.Combine, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityCombineHeavy) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.CombineS, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityCombineGantry) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.CombineGantry, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityMetroPolice) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.MetroPolice, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensitySniper) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.Sniper, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityStrider) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.Strider, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityTurret) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.Turret, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityFoliageTurret) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.FoliageTurret, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityEnvironmentalExplosion) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.EnvironmentExplosion, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityEnvironmentalLaser) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.EnvironmentLaser, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityEnvironmentalFire) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.EnvironmentFire, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityEnvironmentalSpark) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.EnvironmentSpark, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityEnvironmentalPoison) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.EnvironmentPoison, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityEnvironmentalRadiation) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.EnvironmentRadiation, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityDamageExplosion) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.DamageExplosion, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityDamageLaser) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.DamageLaser, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityDamageFire) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.DamageFire, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityDamageSpark) { mainForm.tactsuitVr.ProvideHapticFeedback(locationAngle, locationHeight, TactsuitVR.FeedbackType.DamageSpark, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityPlayerPistol) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.PlayerShootPistol, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityPlayerShotgun) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.PlayerShootShotgun, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityPlayerSMG) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.PlayerShootSMG, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityPlayerShootDefault) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.PlayerShootDefault, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityGrenadeLaunch) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.PlayerGrenadeLaunch, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityFallbackPistol) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.FallbackPistol, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityFallbackShotgun) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.FallbackShotgun, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityFallbackSMG) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.FallbackSMG, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityKickbackPistol) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.KickbackPistol, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityKickbackShotgun) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.KickbackShotgun, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityKickbackSMG) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.KickbackSMG, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityHeartbeat) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.HeartBeat, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityHeartbeatFast) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.HeartBeatFast, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityHealthPenUse) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.HealthPenUse, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityHealthstationUse) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.HealthStationUse, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityHealthstationArm) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.HealthStationUseLeftArm, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityBackpackStoreClip) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.BackpackStoreClip, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityBackpackStoreResin) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.BackpackStoreResin, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityBackpackRetrieveClip) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.BackpackRetrieveClip, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityBackpackRetrieveResin) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.BackpackRetrieveResin, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityItemHolderStore) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.ItemHolderStore, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityItemHolderRemove) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.ItemHolderRemove, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityGravityGloveLock) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.GravityGloveLockOn, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityGravityGlovePull) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.GravityGlovePull, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityGravityGloveCatch) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.GravityGloveCatch, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityWeaponClipInsert) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.ClipInserted, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityWeaponChamberRound) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.ChamberedRound, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityCough) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.Cough, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityCoughHead) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.CoughHead, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityShockOnHand) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.ShockOnHandLeft, false, TactsuitVR.FeedbackType.NoFeedback); } if (sender == lblIntensityEnvironmentalDefault) { mainForm.tactsuitVr.ProvideHapticFeedback(0, 0, TactsuitVR.FeedbackType.DefaultDamage, false, TactsuitVR.FeedbackType.NoFeedback); } } }