Jump to content

Need Expert Opinion on Script.


DaemonGrin

Recommended Posts

Been playing around with different death mechanics for a mod I am making and I looked towards the NVDLC01ghostSCRIPT. Couldn't get a version of it working properly would either be invulnerable, not work, or pretty close to the vanilla script the body parts would explode even if I was shooting the torso. So I played around with various setups overly simplified and I have a functioning script but I want to have someone experienced take a look and see if there are possible issues with it.

 

 

 

scn DGHuskResurrectSCRIPT

Begin OnDeath

if (IsInCriticalStage GooStart) || (IsInCriticalStage GooEnd) || (IsInCriticalStage DisintegrateStart) || (IsInCriticalStage DisintegrateEnd)
	KillActor Player;
	Return;
ElseIf (IsLimbGone 0 12 == 0)
	SetActorValue PerceptionCondition 100;
	SetActorValue RightAttackCondition 100;							
	SetActorValue RightMobilityCondition 100;
	SetActorValue LeftAttackCondition 100;
	SetActorValue LeftMobilityCondition 100;
	ResurrectActor 1
	Return;
endif

End

 

I appreciate anyone taking a look and providing any feedback about it!

Geoff

 

EDIT - Forgot to add SetActorValue EnduranceCondition 100; when i was testing it I kept shooting in the torso and everytime he resurrected his torso was crippled so he was in a infinite stun lock XD.

 

EDIT #2 - Is 100 the cap for setting these values? Second does a higher level increase the durability of limbs?

Link to comment
Share on other sites

The explosion chance is set by the BodyPartData, you can increase or decrease it there, and set the type of dismembering effects, or disable dismemberment entirely.

 

Yeah I know that but using defaultbodypartsdata so it would change it for 600+ users. I had a custom bodypartdata but discovered if it is not properly linked to a ragdoll it will crash the game if you dismember after death. I couldn't figure out how to link it to a ragdoll. None appeared in the drop down menu, though geck said it was linked if you looked at the user info of npcragdoll and in fnvedit though wouldn't show in the custom bodypartsdata. Before anyone thinks the data was wrong the creature used vanilla mesh and skeleton with it's caps. I changed nothing in the model other than textures and in the custom data changed blood and gore to robot equivalents. I used default as the template that's how I got the geck to say it was a user along with FNVedit. I was working on a self disintegration to counter that but derpy me realized if the ragdoll wasn't properly setup then the constraint effect wouldn't work and well I ended up with a corpse and ashepile ><. Next step was destruction data (much like eyebots) but that left no lootable container as was just to quick. So I had to change everything from a custom creature to an npc enemy with a resurrect ability. Sorry I had a flash back to working with the bodypartsdata lol.

 

Thanks,

Geoff

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...