Head shot damage increase

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
Havoc 526
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 317
Joined: Sat Apr 04, 2009 6:24 pm
Projects :: Something
Games I'm Playing :: Xenoblade Splatoon
Location: Howling at the Moon

Head shot damage increase

Post by Havoc 526 »

Is there also a way to increase the damage ratio from critical hits on infantry?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Head shot damage increase

Post by AQT »

The

Code: Select all

MaxDamage = ""
line in an ordnance's ODF, perhaps?
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 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: Atlanta, GA xfire=myers73 IngameName=mYers

Re: Head shot damage increase

Post by myers73 »

i think i recall seeing it in the unit odf, some line about critical hit, and where the critical hit is....i dont think it would be in the weapon odf
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 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: Building a railway to Coruscant
Contact:

Re: Head shot damage increase

Post by trainmaster611 »

According to psych0fred's docs
A headshot on a soldier makes damage x 3.

This is at the moment hardcoded, let me know if you need to specify it per soldier.
As far as I know, he never did make it specifiable. But there is a line that lets you specify damage multipliers for vehicles on the basis of individual parts (ie, leg, belly, butt, etc).
A vehicle/flyer/walker/turret can specify a multiplier for a specific collision body.

Look in the atst odf for an example, temporary I put in a multiplier of 1.5 for a hit in the head.



HitLocation = "p_head 1.5"



When a bullet hits a body that has a damage multiplier greater then 1.0 it displays an extra flash.

Its "headshot.fx" if anyone is interested in playing with it (in common). Same effect for vehicles and soldiers.

User avatar
Havoc 526
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 317
Joined: Sat Apr 04, 2009 6:24 pm
Projects :: Something
Games I'm Playing :: Xenoblade Splatoon
Location: Howling at the Moon

Re: Head shot damage increase

Post by Havoc 526 »

I see. :? Okay, I'll see what I can do with that.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Head shot damage increase

Post by Fiodis »

As a tag-along to this, is it possible to alter (perhaps through hex editing) the location of a soldier's critical hit point? I assume it's bone_head or whatever, but can you shift that designation around?
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: Head shot damage increase

Post by DarthD.U.C.K. »

i doubt that you can change the bone
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Head shot damage increase

Post by Fiodis »

No; but can you change which bone is the critical hit spot?
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: Head shot damage increase

Post by DarthD.U.C.K. »

thats what i meant
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 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: Building a railway to Coruscant
Contact:

Re: Head shot damage increase

Post by trainmaster611 »

Fiodis wrote:As a tag-along to this, is it possible to alter (perhaps through hex editing) the location of a soldier's critical hit point? I assume it's bone_head or whatever, but can you shift that designation around?
You can alter set the CollisionHeadOffset which is what defines where the head is.
cis_inf_default wrote:CollisionHeadOffset = "0.0 -0.2 0.0"
They use it for the droids and the wookiee.
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: Head shot damage increase

Post by DarthD.U.C.K. »

im not shure if its practical for more than just changing the height a bit because the collision will still move woth the headbone
Post Reply