#1 2017-12-15 16:09:14

gaya
Member

Locational damage

Is it possible to detect where a shot landed in the player model skeleton, so we can add locational damage like leg, torso and head shots?

Offline

#2 2018-09-26 20:09:34

Hypernova^
Member

Re: Locational damage

Yep easy, just compare the z of the hit position vector in relation to something that stays constant with the player (I use eyeheight). The tricky part is telling the server to accept your modified damage (as it does its own calculations on the gamestate). The way I implemented headshots into Adrenaline Cube 2 was detecting headshots clientside and telling the server how many headshots were registered (hacky and insecure, I know :D).

Offline

Board footer