gpstar81 / GPStar-proton-pack

GPStar Proton Pack and Neutrona Wand
https://www.gpstartechnologies.com
GNU General Public License v3.0
38 stars 9 forks source link

Neutrona wand vibration on Activate #357

Open nomakewan opened 3 months ago

nomakewan commented 3 months ago

Discussed in https://github.com/gpstar81/GPStar-proton-pack/discussions/331

Originally posted by **Toy203** June 28, 2024 Would be cool to have the option to make the wand vibrate for a sec while activating the secondary switches, as it is turning on. Best would be to have the option to enable "activating vibration" alongside the other "vibrate when firing" option

This is possible; we already have math that handles ramps, so we could utilize that ramp code to ramp the vibration motor down from max right when the vent switch gets flipped, kinda like there was a surge of energy into the wand which then stabilizes. For 84/89 anyway.

For Afterlife/FE since the wand has its own noises for all three switches and none of them are a distinct "startup" like 84/89 have, might be worth instead modifying the "Always vibrate" code here so that as each switch is thrown the vibration slowly ramps up alongside the audio pitch until reaching full when all three are up.