Player Resource Consortium

Neverwinter Nights => Builders => Topic started by: Complex on January 26, 2012, 08:39:37 AM

Title: Hips fix?
Post by: Complex on January 26, 2012, 08:39:37 AM
Hi guys, im trying to modify PRC Hips to make it work as bioware's, how can i do this without modifying all race and classes 2da feats?

i dont mind having to modify feats.2da, but what i do not want to is to modify all classes and races 2da's. best thing would be modifying some script to make it work just like original hips, any suggestions?
Title: Re: Hips fix?
Post by: xwarren on January 26, 2012, 09:26:46 AM
Frankly I don't even know what the difference is between bioware HiPS and PRC HiPS. The code for prc version is probably in prc_hips.nss (prc_scripts.hak) and as far as I can tell this script just adds bioware HiPS as a temporary item property to players skin.

Am I missing something here?
Title: Re: Hips fix?
Post by: Complex on January 26, 2012, 09:59:32 AM
PRC HIPS works different, since it uses the Ultimate Ranger feat.
This feat uses ur_hips.nss script which only works in natural areas and avobe ground (acording to script), thus, it waits until next round to trigger the stealth mode.
Title: Re: Hips fix?
Post by: Complex on January 26, 2012, 10:11:00 AM
this is what i did to make it similar to biowares:

feats.2da:

added a 0 to ReqAction so it does not wait till next round to trigger

Quote
3457  FEAT_UR_HIPS                                          16825533 2940        ife_X1HideSight    ****           ****   ****   ****   ****   ****   ****   ****        ****        ****        0            0            0                ****     ****  2143    ****      0.5     ****       ****       1          ****       ****       ****       ****       ****       ****     ****             ****      ****              FEAT_UR_HIPS                                   6               ****        ****     ****          ****     ****        0          0   
     


ur_hips.nss:

modified script to trigger stealth mode and deactivate it:


Quote
#include "prc_inc_spells"
#include "x0_i0_modes"

void main()
{
    object oPC = OBJECT_SELF;
    object oArea = GetArea(oPC);


        object oSkin = GetPCSkin(oPC);

if(GetActionMode(oPC, ACTION_MODE_STEALTH) == FALSE){
AddSkinFeat(FEAT_HIDE_IN_PLAIN_SIGHT, IP_CONST_FEAT_HIDE_IN_PLAIN_SIGHT, oSkin, oPC, 3.0f);
        DelayCommand(0.2, SetActionMode(oPC, ACTION_MODE_STEALTH, TRUE));
       // DelayCommand(0.21, UseStealthMode());
        DelayCommand(0.2, ActionUseSkill(SKILL_HIDE, oPC));
        DelayCommand(0.2, ActionUseSkill(SKILL_MOVE_SILENTLY, oPC));

        }
        else{
           SetActionMode(oPC, ACTION_MODE_STEALTH, FALSE);
        }

}


with this update, if anybody is interested, ull have a working hips as biowares, only exception is that, in order to trigger the hips, youll have to use the active feat in stead of move silently
Title: Re: Hips fix?
Post by: DM Heatstroke on January 26, 2012, 11:04:59 AM
Why do all that when you can just add Bioware HiPS to whatever class you want to change?
Title: Re: Hips fix?
Post by: xwarren on January 26, 2012, 11:36:58 AM
urang_hips.nss is used only by Ranger/Ultimate Ranger
prc_hips.nss is used by other classes/races

Quote
it waits until next round to trigger the stealth mode.
Actually that may be intended:
http://nwvault.ign.com/View.php?view=Scripts.Detail&id=2476
one of many HiPS fixes on the vault.
Title: Re: Hips fix?
Post by: Complex on January 26, 2012, 11:51:26 AM
@Heatstroke:
i wanted to do a simple modification, not to modify all prc 2da, by modifying just 1 line @ feats.2da and the script, issue is solved.
if i wanted to modify all hips an all classes, i would have to go to each 2da file for each hips class and race and modify it.

@xwarren:
i know it was prolly intended, nevertheless, i wanted some balance between hips shadowdancer and hips with prc hips.
no, prc_hips is prolly never used, i checked some hips classes i remember: ninja, net rakshasa, and they both use UR's hips system. could not find out which classes use prc's hips, but if i do, ill let you know!

thanks guys
Title: Re: Hips fix?
Post by: xwarren on January 26, 2012, 01:24:27 PM
I was curious myself, so I checked. In current version:
prc_hips.nss - featid 3457 is used in ninja spy class and rakshasa/brownie races
urang_hips.nss - featid 3136 only in ultimate ranger class
Title: Re: Hips fix?
Post by: Complex on January 26, 2012, 02:55:16 PM
well.. that might me it, we are using 3.5 first release. these might have changed over the past 2 updates lol

thx xwarren! sorry if this was missleading