Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features without permission from or credit to me
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
As long as you keep it free and open source, you can use the code included in this mod. Note that this doesn't mean you can copy my mod and release it whole.
I do not allow modified or not modified versions of this mod to be released or uploaded anywhere. You need my permission to release any variations of this mod.
I reserve the right to include whatever changes you made here in this mod. If you want me to add something to this mod, you can contact me.
These terms don't apply to ports to other games. You must contact me and get my permission first to port/appropriate this mod to other games. I always reserve the right to port them myself.
You can always learn from the source to make new stuff. The source code is uploaded mainly to help new mod authors start. It's ready to build (VS 2019 - Release build).
File credits
Thanks to Artumino and lfrazer for PapyrusVR and all the help.
Thanks to Aerowynx, Cangar and Rallyeator for testing.
Thanks to Rallyeator for the artwork.
Thanks to /u/Zaga932 for the idea of using spellcasting audios for haptic feedback patterns.
Thanks to Cangar for creating the matlab scripts to get audio frequencies to use as spell haptic patterns.
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.7.3
Added support for spell casting/staff casting haptics while mounted (Support for Steeds of Ultima VR).
Fixed a bug that caused CTD when activating Skyshards.
Other minor fixes.
Version 1.7.2
Added unarmed support for player attacking feedback.
Fixed a bug that caused a ctd when left hand weapons are used.
Adjusted melee haptics slightly to give stronger haptics. Added meleedurationmultiplier to adjust this.
Version 1.7.1
Fixed a bug that caused a ctd when this mod is used with WeaponThrowVR.
Version 1.7.0
Added staff support.
Fixed the bug that caused haptics not firing when spells are cast too fast in succession.
Added additional melee strength multipliers to differentiate 6 different weapon types. Adjustable in the config.
Removed leftHandedMode from the ini. Left handed mode is detected automatically from game settings now.
Added dual wield blocking support. It will stop haptics if it detects blocking during casting even if you don't release the trigger.
Added menu detection in the middle of spell casting (It will stop when menu is open and continue after menu is closed if you still didn't release the trigger)
Added some variation to melee haptics. Checks if the weapon is a blunt(axe,mace,2h axe) or not(sword,dagger,2h sword) and plays a different type of sequence.
Replaced event based spell casting detection with Animation graph based detection. So it's now compatible with VRIK open hand casting.
Added a haptic effect for fire and forget spell release. Configurable with magicreleasestrength variable in the config file.
Fixed a bug that sometimes caused secondary hand haptics with two handed weapons.
Version 1.6.0
Added Enhanced Melee Feedback (Attack, Power Attack, Bash, Block)
Fixed another bug that caused spellcasting feedback to continue after releasing trigger.
Version 1.5.0
Fixed a bug that caused spellcasting feedback to continue after releasing trigger.
Added Arrow Release haptic feedback after a delay.
Using a staff was causing a CTD. Fixed it by disabling haptic feedback for staffs.
Version 1.3.1
Ignore spells feature is added. You can add spells under [ignoredspells] in config file and give them a value of 0 to disable or 1 to get only 1 loop of feedback for that spell.
Version 1.3.0
Spells now have distinct vibration patterns. Thanks to Cangar for creating the matlab scripts to get the frequencies!
Bows now have increasing vibration pattern while pulling.
Config parameters are changed. You need to overwrite your old config file and reconfigure the one that comes with the mod.
Version 1.2.0
Remade the mod entirely from scratch. It now consists of only a SKSE plugin. DLL plugin name changed! Old versions including esp file, scripts and plugin dll should be deleted first.
VR Body is now supported. All other compatibility issues should be resolved.
Left handed mode is supported with a simple configuration file change.
DESCRIPTION
This mod consists of an SKSE plugin to call openvr_api functions on skyrimvr events.
Spellcasting, Enhanced Bow and Melee haptic feedback on vr controllers is implemented.
VRIK is supported including open hand casting.
If you have any requests, suggestions, ideas, please post it. Don't hold back!
Added SKSEVR Plugin source to the download section to help fellow modders.
INSTALLATION Install with a Mod Manager or extract contents to SkyrimVR\Data directory.
CONFIGURATION
This mod features a mod configuration file in "SKSE\Plugins\HapticSkyrimVRConfig.txt"
Because of the limitations in openvr api, I made all the parameters configurable to support different controllers. You can find the descriptions of settings in the config file comments.
Main configuration file comes with preconfigured values that work for me with vive and index controllers.
FUTURE I don't think anything else is left. But if you think of something, let me know. Always happy to hear your ideas!