How would you have different damage values for different parts of the body?
such as head shots, downs when hit in the leg, instant kills when hit in the chest or head, not much damage when hit in the arm or hand... does anyone know how this can be done?
One possibilty is to have different vertex inside of those hit-zones (in the middle of a zone would be best) and if the entity get hit, let it compare the target vector to the world coordinates of the vertices and the closest one is the hit zone. To have this kind of system working properly each zone needs to be the same size (or almost the same size)
there was a code in the old AUM issue I'll see if i can find it. but if I was going to do it I'd find referacne vertex on model then check if the c_trace targetxyz was above or below ect.
c_trace; vec_for_vertex(temp,1000)// a vertex in the neck if(traget.z>temp.z) { call_do _head_damage() }
you fallow? Malice
Re: Head Shot!
[Re: ]
#187635 03/08/0821:2103/08/0821:21