uwadmin12

MOD:[K1] Saber Throw Knockdown Effect

Recommended Posts

[K1] Saber Throw Knockdown Effect


Description

This mod adds a climactic Knock Down effect to a lightsaber throw (DC 5 + character level + WIS/CHA modifier against reflex save). Only Adv. Lightsaber Throw can knockdown its primary target; Normal lightsaber throw will NOT have this effect. (Which makes sense, “Advanced” implies more fancy effects)

Installation

  1. Make sure override folder exists at game root directory
  2. Run TSLPatcher to install
  3. (Not recommended: if you really want to install manually, I’m sure you could figure out the procedure by looking at tslpatchdata/changes.ini file)

Compatibility

This mod shouldn’t cause any conflict. (It adds completely new function and modifies an existing line of spells.2da that no normal mod would touch.)

Permissions

Do not claim credit for this mod and do not use assets from this mod without my permission

Special Thanks

  • Fred Tetra for Kotor Tool
  • Stoffe for TSLPatcher

Legal

THIS MODIFICATION IS NOT SUPPORTED BY BIOWARE/OBSIDIAN ENTERTAINMENT, LUCASARTS, DISNEY OR ANY LICENSERS/SPONSORS OF THE MENTIONED COMPANIES. USE OF THIS FILE IS AT YOUR OWN RISK AND THE ABOVE MENTIONED COMPANIES OR THE AUTHOR IS NOT RESPONSIBLE FOR ANY DAMAGE CAUSED TO YOUR COMPUTER FOR THE USAGE OF THIS FILE.


  • Submitter
  • Submitted
    08/02/2019
  • Category
  • K1R Compatible
    No

 

  • Like 1

Share this post


Link to post
Share on other sites

An interesting mod!

From what I understand the primary target is knocked down if it fails a saving throw while additional targets won't be affected?

Have you considered extending the effect to the additional targets too if they'd fail an easier to resist saving throw (ex. DC 0 + character level + WIS/CHA modifier against reflex save)?

Cheers!

Share this post


Link to post
Share on other sites

Thanks for the suggestion! And yeah additional targets won't be affected. My excuse: the momentum of a saber throw should diminish after the first hit to an extent that it can't knock down a target anymore. The main reason, however, is that `EffectForcePushed()` seems to only knock down targets away from the PC, which makes sense for the first target but not for the additional ones (in most situations).

Should there be a way to control the direction that a target is knocked down, I would certainly consider implementing the what you mentioned.

Best.

  • Like 1

Share this post


Link to post
Share on other sites

Hello!

There is a problem with this mod and the AI. The knocked down opponent doesn't resume its attack.

I am showing this in a video here: https://youtu.be/3J0R8SbRcpY

The vanilla behavior is such that the enemy would just attack again instead of waiting for a party member to get closer.

  • Thanks 1

Share this post


Link to post
Share on other sites

Hi Salk, really appreciate the issue report!

I am very intrigued by this behavior and was able to reproduce the issue with Horned Kath Hound, Katarrn, and droids in Marka Ragnos' tomb. However, when I tested it on other combat scenarios, the target only waits until the current round ends and proceeds to charge toward my party regardless of distance.

I'm convinced it's some hidden engine issue, when EffectForcePushed is used as a standalone effect, it does not signal the events properly, (shamelessly blame the engine for everything that's gone wrong🤣). Unfortunately, nwscript.nss' source code isn't available and there is no way I could pin down the very source of this issue. Nonetheless, if I append a very short stun effect after the knockdown, the issue went away (I retested all 3 scenarios to make sure). It becomes clear that when the stun effect is over, it resets/clears the object's state and signals events properly. Since the failure to resume attack only occurs on Human-Subrace-Beast and Droid, I added condition checks in the original script and applied a very short stun/droid-stun effect after the knockdown.

Dropping the attached ncs to your override should now fix the issue, I'll make an update shortly. Let me know if the issue persists, or if there are any other weird behaviors, thanks again!

fp_saberthrow.ncs

  • Thanks 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.