[plugin] Electric Shock - fix (Patreon)
Downloads
Content
This plugin fires an electric current at a selected target.
When the current hits, the target reacts with convulsions driven by force and torque. You can adjust the current color and jitter, and choose between single-target mode and area mode.
Sound effects are also supported by loading the included sound asset bundle. Smoke particles can appear at the hit point as well, and these can be controlled from the Effects tab.
In addition, enabling the BB Skin-related toggle in the Reaction tab allows this plugin to integrate with the BB Skin system included in the Airsoft Gun plugin.
Once you start using it, you'll pick up the controls very quickly.
The only part that might be a little confusing is the distinction between Target Categories and Target Filtering. A separate filtering category is available for situations where you want an object to remain within the target category, but do not want it to receive force- or torque-based reactions.
That's why I created a separate category tab specifically for that purpose.
Using it is simple.
Add the CS to a CUA or Empty, select the target, and then fire.
Basically, it works similarly to the AirsoftGun plugin.
The code related to splitting features into group tabs was referenced from moyashi post-processing plugin.
https://hub.virtamate.com/threads/post-processing.42942/
The original creator of the Stun Baton asset is listed below.
Star Wars Stun Baton
LarsH.
https://skfb.ly/oMEFW
+
fix
Fixed an issue where electric sparks appeared split or offset in VR.
Also fixed an issue where bb_skin bruises were not applied to the face area.