Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Starman01 on May 26, 2006, 03:47:33 am

Title: Collission Damage
Post by: Starman01 on May 26, 2006, 03:47:33 am
Hello,

in conjunction to this thread here :

http://www.hard-light.net/forums/index.php/topic,39483.0.html

Maybe one of you coders can give me a more detailled information how the  collission-damage is working. I know it has something to do with the density stuff, but I'm not sure how it is exactly related.

What I want to do is this (if possible) :

Collission fighters/fighters, fighter/capitalships and fighter/asteroids should be deadly. Best would be, that when the player (and other fighters too) is at full speed and crashing into something, than this is a death-sentence. Collission with less speed should at least result into critical damages.

Can this be achived with the stuff currently in the code ?

Thanks in advance for clarification :)

Starman
Title: Re: Collission Damage
Post by: CaptJosh on May 26, 2006, 03:48:48 am
If I'm not mistaken, that's a table issue, not a code issue, but I'm sure someone will correct me if I'm wrong.
Title: Re: Collission Damage
Post by: Starman01 on May 26, 2006, 03:51:46 am
I know it's a table issue, but I want to know how the code handles it, because I wasn't able to set it right till now, and so far no one was able to give me the necessary hint. But certainly one of the SCP-Guys can give me the missing clue :)
Title: Re: Collission Damage
Post by: Goober5000 on May 26, 2006, 10:35:01 am
This can be done, but the AI is really stupid at avoiding collisions with capships.
Title: Re: Collission Damage
Post by: Mars on May 26, 2006, 10:41:18 am
And you thought your wingmen died off fast before.
Title: Re: Collission Damage
Post by: Starman01 on May 26, 2006, 11:40:57 am
This can be done, but the AI is really stupid at avoiding collisions with capships.

Yeah, I also thought about that. But hopefully when it is a table issue, then maybe I can restrict it to the player, because we have seperate table-entries for all playerships (since they need limited afterburner).

I tried it again today, Asteroid are already doing what I want. Crash normal, and you got big damage. Crash at high velocity and you die.
However, I tried changing the values for densitiy and the model mass in the pof-file, and neither one did work.

Can you tell me how this collission damage is calculated ? Unfortunately I have changed the modelmass when converting the models, certainly I will have to change that.
Title: Re: Collission Damage
Post by: redsniper on May 28, 2006, 02:50:42 pm
But being able to ram other fighters is one of the things that makes FS2 great! After playing Tie Fighter and having to make sure you don't so much as breathe on another ship (lest you die a sudden death), it's nice to be able to just crash into that Dragon you can't seem to hit and watch it explode. :D (yes, I really did manage to ram a Dragon once, 'twas easier than shooting it.)
Title: Re: Collission Damage
Post by: Starman01 on May 29, 2006, 12:19:12 pm
Guess that's a matter of taste. I liked in the older flightsims when I crashed into something and die. IMO that's more realistic and you are forced to manuever a little more carefully :)
Title: Re: Collission Damage
Post by: Prophet on May 29, 2006, 02:07:45 pm
Yes. Many times I have nearly crapped myself because of that daredevil TIE fighter pilot who just barely missed me after a tight manouver.
On the other hand I still remember with horror all those times when a Star Destroyer commits the infamous "Baseball Bat" manouver.
Title: Re: Collission Damage
Post by: Wanderer on May 29, 2006, 03:33:51 pm
Remember the collisions in old XWing.... things like assault gunboats or shuttles were real harbingers of doom. :shaking: TIEs usually died nicely but those things... I probably died more often due their debris pieces that glanced the fighter than due to anything else
Title: Re: Collission Damage
Post by: Mars on May 29, 2006, 07:54:02 pm
The Colossus is the new baseball bat of doom.
Title: Re: Collission Damage
Post by: Apathy on May 31, 2006, 05:02:55 pm
The Colossus is the new baseball bat of doom.

rofl true.

speaking of stupid wingmen, is AI improvements next on the list for you SCP guys?
Title: Re: Collission Damage
Post by: karajorma on May 31, 2006, 05:11:19 pm
Nope.

We're all scared of the AI code.