lfnetwork.com mark read register faq members calendar

Thread: Stasis Field bug (both Kotor and TSL)
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 06-19-2009, 07:42 PM   #1
WRFan
Rookie
 
Join Date: Jun 2009
Posts: 63
Stasis Field bug (both Kotor and TSL)

There's a spelling mistake in the Stasis Field script which causes the script to lose its SpellTargetLocation, so some enemies are ignored. This bug is present in both Kotor games. The variable "oTarget" is used twice:

Quote:
oTarget = GetFirstObjectInShape(SHAPE_SPHERE, 10.0, GetLocation(oTarget), FALSE, OBJECT_TYPE_CREATURE | OBJECT_TYPE_PLACEABLE);
...
oTarget = GetNextObjectInShape(SHAPE_SPHERE, 10.0, GetLocation(oTarget), FALSE, OBJECT_TYPE_CREATURE | OBJECT_TYPE_PLACEABLE);
Instead, a new variable must be defined and then used throughout the script:

Quote:
object oSecond = GetFirstObjectInShape(SHAPE_SPHERE, 10.0, GetLocation(oTarget), FALSE, OBJECT_TYPE_CREATURE);
...
oSecond = GetNextObjectInShape(SHAPE_SPHERE, 10.0, GetLocation(oTarget), FALSE, OBJECT_TYPE_CREATURE);
So either change oTarget to oSecond everywhere in the script except for the GetLocation part, or replace "GetLocation(oTarget)" by "GetSpellTargetLocation()"

Besides, what the hell is the "OBJECT_TYPE_PLACEABLE" for? Putting computers and tables in stasis? lol. Obsidian removed this nonsense in TSL and it should be removed in Kotor 1 too.

Last edited by WRFan; 06-19-2009 at 07:47 PM.
WRFan 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 > Stasis Field bug (both Kotor and TSL)

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 04:31 AM.

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