At 01:35 AM 9/24/2004 -0400, you wrote:
He i was wondering how the damage is done depending on the distnace
between attacker and victim in CS. Maybe some calculations or info on
this will be helpfull.

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

As a first stab at the problem, you might try calculating the distance between the damaged entity and pevAttacker in TakeDamage. Then scale flDamage inversely with respect to that distance.

Persuter


_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to