Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Starman01 on October 15, 2005, 04:34:42 am

Title: Question about debris-strength
Post by: Starman01 on October 15, 2005, 04:34:42 am
I have a small problem, so maybe one of you guys can help me out here.

I noticed many mods and models that have debris in the centerpart of the pof-file.

Everytime I try that, the debris will be destroyed nearly instantly once the mainship explodes. I guess this is because the explosion is starting in the center of the model, and the value from "Expl blast" or "expl damage" is destroying the debris-chunk right away.

So what can be done, to increase the strength of the debrisparts (though I don't want to decrease the "expl blast" at all). I hope there is a solution. Until now , I never made any center debris, since it was just a waste of modelling time.

Thanks :)

Starman
Title: Re: Question about debris-strength
Post by: Starman01 on November 20, 2005, 02:28:03 am
:bump:

Sorry to bump this one here up, but I need the Info. Can anyone help me ?

Thanks
Title: Re: Question about debris-strength
Post by: StratComm on November 20, 2005, 02:40:30 am
Unless your explosion damage is of value on magnitude with a small nova, I doubt it's the explosion itself causing them to blow up.  Unless someone can point out where hitpoints are assigned, debris hitpoints are hardcoded and are set very high.  Furthermore the number of debris that can be present is fixed as well IIRC, which means that if you have more debris chunks in your model than are allowed the extra ones will blow up basically as soon as they are spawned. 
Title: Re: Question about debris-strength
Post by: phreak on November 20, 2005, 05:21:28 pm
Large debris pieces that aren't from subsystem explosions have ship_strength/8 hitpoints and will blow up when more than 10000 meters from the player.  There is a 1/6 chance that the a hull debris piece lifetime will last between 1.5-2.5 seconds.  All subsystem debris pieces live between 1.5-2.5 seconds.  A debris piece will also explode if its the oldest active piece, the debris limit is reached (10) and a new piece needs to be created.
Title: Re: Question about debris-strength
Post by: FireCrack on November 20, 2005, 06:37:28 pm
Speaking of such... how can you make subsystem debris?
Title: Re: Question about debris-strength
Post by: Starman01 on November 21, 2005, 03:27:35 pm
Large debris pieces that aren't from subsystem explosions have ship_strength/8 hitpoints and will blow up when more than 10000 meters from the player.  There is a 1/6 chance that the a hull debris piece lifetime will last between 1.5-2.5 seconds.  All subsystem debris pieces live between 1.5-2.5 seconds.  A debris piece will also explode if its the oldest active piece, the debris limit is reached (10) and a new piece needs to be created.

Sounds complicated. Guess the "ship_strength/8 hitpoints " could be my problem.