2023-05-21: Yes, we're back. No, you can't login yet

Configurable Melee Lunge System

Uploaded by Masterlegodude

The add-on board icon. Support Mods
The add-on file name icon. Support_MeleeLunge.zip
The add-on upload date icon. Jan 20th 2022, 6:43 AM
The add-on download count icon. 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

Comments (0)