Technical questions - Vehicle Critical Points

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
vampire_lord
Rebel Sergeant
Rebel Sergeant
Posts: 216
Joined: Thu Mar 20, 2008 7:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Mexico City
Contact:

Technical questions - Vehicle Critical Points

Post by vampire_lord »

Yes, I am here with another question, but this one might be a model thing and not an script thing, anyway is for mods; how are critical points in vehicles defined? this would serve either placing some critical points in the right places like repulsorlifts on hover tanks and to make some "training" dummies for a possible training grounds/interlude map.
Last edited by vampire_lord on Thu Jan 01, 2009 10:09 am, edited 1 time in total.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Technical questions - Vehicles

Post by YaNkFaN »

I believe they are defined on the actual mode just like fire nodes hp_something I think the critical is hp_critical
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Technical questions - Vehicles

Post by DarthD.U.C.K. »

they are hardpoints included in the vehicles mesh
User avatar
vampire_lord
Rebel Sergeant
Rebel Sergeant
Posts: 216
Joined: Thu Mar 20, 2008 7:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Mexico City
Contact:

Re: Technical questions - Vehicles

Post by vampire_lord »

Thanks, I think there is nothing else to ask in Modding sub-forum for this.
--SOLVED--
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Technical questions - Vehicle Critical Points

Post by Maveritchell »

You haven't solved the topic because you obviously haven't tried anything anyone's mentioned here - because they're wrong.

A quick look in the .odf of any of the vehicles with a critical hit location would give you the answer:

Code: Select all

HitLocation             = "p_crithit 4.0"
What that gives you is a location and a scaling factor for a critical hit. "p_crithit" is a primitive object in the model that, when hit, makes a "critical hit." The number, 4.0, is the multiplier damage gets when it hits that location. It's easy to edit critical hit locations (or add them) by looking at a model in something like Unwrap 3D and choosing the primitive (usually something already predefined as an ordnance collision primitive works best) you want the critical hit location to be.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Technical questions - Vehicle Critical Points

Post by DarthD.U.C.K. »

Maveritchell wrote:You haven't solved the topic because you obviously haven't tried anything anyone's mentioned here - because they're wrong.

A quick look in the .odf of any of the vehicles with a critical hit location would give you the answer:

Code: Select all

HitLocation             = "p_crithit 4.0"
What that gives you is a location and a scaling factor for a critical hit. "p_crithit" is a primitive object in the model that, when hit, makes a "critical hit." The number, 4.0, is the multiplier damage gets when it hits that location. It's easy to edit critical hit locations (or add them) by looking at a model in something like Unwrap 3D and choosing the primitive (usually something already predefined as an ordnance collision primitive works best) you want the critical hit location to be.
:oops: uh i thought they were hardpoints, i overread the prefix
Post Reply