lfnetwork.com mark read register faq members calendar

Thread: Cutscene Fight Issue
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 04-20-2014, 08:30 PM   #1
Fallen Guardian
Wandering the Galaxy...
 
Fallen Guardian's Avatar
 
Join Date: Aug 2010
Location: Unknown Regions
Posts: 1,286
Current Game: Knights of the Old Republic
Veteran Modder Helpful! 
Cutscene Fight Issue

So here's the problem:

I have two NPCs fighting during a dialogue sequence in KotOR 2, so essentially it's an all bark and no bite battle. One of the participants is a party member, the other is just an NPC. The party member seems to love using power attack while doing the fight, which is all well and good until the NPC starts getting knocked over and backwards by this party member.

My problem with this is I absolutely need both the party member and the NPC to remain in the spots I have preordained for them, thus the knock down caused by the power attack is troublesome. The party member comes pre-loaded with power attack (as in they join the party with it) so I can't just gamble on them not having it, and I'm far too lazy (at least until this is my last option) to script out the whole fight with individual cutscene attacks.

So far, in order to remove the power attack's unwanted effects, I've tried using immunity effects, doing something like this:

Code:
  effect eImmunity = EffectImmunity(IMMUNITY_TYPE_KNOCKDOWN);
  effect eCritical = EffectImmunity(IMMUNITY_TYPE_CRITICAL_HIT);

     ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eImmunity, oNPC, 35.0);
     ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eCritical, oNPC, 35.0);
This didn't fix the problem, as the party member was still able to achieve a knockdown on the NPC. Is there any other way I could go about preventing the NPC from being knocked down by the power attack? Such as a saving throw boost, or something of that nature?

EDIT: Turns out I was on the right path of thinking - I added boosts to the NPC's saving throws and it solved my problem. The source code is below. If a mod could close this thread, that'd be great.

Code:
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectSavingThrowIncrease(SAVING_THROW_ALL, 250, SAVING_THROW_TYPE_ALL), oNPC, 35.0);


The truly fallen cannot return to the light. If someone "falls" and "returns," they never really, truly fell.

Current Work in Progress: Dantooine Tension

Released Works
Blaster Pistol Enhancement
Dustil Restoration
Ebon Hawk Texture Enhancement
Gaffi Stick Improvement
Weapon Model Overhaul Texture Rework (Thanks to Toasty Fresh!)
Sunry Murder Recording Enhancement
VP's Hi Poly Tin Cans - KotOR 1 Version

Last edited by Fallen Guardian; 04-21-2014 at 06:42 PM. Reason: Found a solution.
Fallen Guardian is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Cutscene Fight Issue

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:37 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.