Configurable Melee Lunge System
Uploaded by Masterlegodude
Support Mods
Support_MeleeLunge.zip
Jan 20th 2022, 6:43 AM
340
Description
This add-on lets you add a lunge to your melee weapon that will launch you toward your target when you use it
To add support for this system to your weapon, in your weapon's ShapeBaseImageData datablock, set the 'melee' parameter to 'true' and add 'hasLunge = true;' below that, then add 'Parent::onPreFire(%this, %obj, %slot);' to the bottom of your weapon's onPreFire function, if it doesn't have one, copy and paste this toward the bottom of your weapon's CS file function (UR_WPN_NAME_HERE)Image::onPreFire(%this, %obj, %slot) { Parent::onPreFire(%this, %obj, %slot); }
This system is also configurable via Blockland Glass, you can adjust how close you have to be before the lunge kicks in (the value set is multiplied by 2), how fast you're launched toward your target, and if it happens before or as your using your melee weapon