Give Rexy a sonic bark cyberdog weapon!

Post » Fri Dec 09, 2011 11:26 pm

Cool, Rexy goes ranged! Here's how:

1) Extract skeleton_SonicBark.nif from the Old Blues DLC, put it into the Override directory, now you can use this skeleton with base game only mods or access it through any DLC. Use the new skeleton with the Rexy template, while at it, fix Gabe's skeleton as well, Obsidian, clever as they are, are using a deprecated skeleton for all Gabe templates, so Gabe cannot shoot his damn weapon, cause he's missing his projectile node and will spawn without a weapon most of the time.

2) Make the sonic bark weapon more useful - set ammo to AmmoNVDLC03SmallEnergyCellHologram for DT bypass, add LakelurkShriek effect to it, cause it's a sonic weapon as well.

3) Add the following code to NVDLC03MQ00SCRIPT:

AddFormToFormList RexWeaponList NVDLC03SonicBarkRexREF.setcombatstyle NVDLC03CSGabeRangedset RexREF.CombatStyleRanged to 1RexREF.additem AmmoNVDLC03SmallEnergyCellHologram 1RexREF.additem NVDLC03SonicBark 1


4) Now, when talking to Rexy, you should be able to switch his combat style. Except it's difficult to access NVDLC03CSGabeRanged and NVDLC03CSGabeMelee combat styles outside DLC03. So unless you are using this DLC for your primary mod, you need to somehow establish a link between base game and the Blues DLC. Here's an example:

a) Link some base game object to some DLC03 object as linkedref (need to do this in DLC03, unfortunately, so be careful to avoid conflicts!). For example, link VendorContainerCliffBriscoeREF to X8SawControlPanelREF.

B) When talking to Rexy and trying to change combatstyle, run the following code in VNPCFollowers quest:

VendorContainerCliffBriscoeREF.entertrigger RexREF


c) Add the following code to VendorMerchantContainerScript in base game:

BEGIN onTriggerEnter RexREFref oLinkedset oLinked to getlinkedrefoLinked.entertrigger RexREF ;this will trigger the OnTriggerEnter block on X8SawControlPanelREF objectEND


c) Add the following code to NVDLC03X8SawControlPanelSCRIPT in DLC03:

BEGIN onTriggerEnter RexREFif RexREF.CombatStyleRangedset RexREF.CombatStyleRanged to 0 ;this variable MUST be used, cause it's the one hard-coded in the teammate GUI!RexREF.setcombatstyle NVDLC03CSGabeMeleeelseset RexREF.CombatStyleRanged to 1RexREF.setcombatstyle NVDLC03CSGabeRangedendifEND


If it's too much work for you, you can also use default combat styles FollowersCombatStyleRanged and FollowersCombatStyleMelee, I guess
User avatar
Taylah Illies
 
Posts: 3369
Joined: Fri Feb 09, 2007 7:13 am

Post » Fri Dec 09, 2011 1:56 pm

I just want to leave Rex to live with the king after I fix him.
User avatar
Rodney C
 
Posts: 3520
Joined: Sat Aug 18, 2007 12:54 am


Return to Fallout: New Vegas