AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Damages and distances (https://forums.alliedmods.net/showthread.php?t=98678)

Sputnik53 07-27-2009 18:59

Damages and distances
 
Hello.

I've been trying to study how is the distance used to reduce amount of damage in Counter-Strike. Currently there's no sense in what I've seen when using a function to log damages from different distances.

Here's a few examples:
(distance = damage)
Code:

awp
0 = 456
512 = 452
1024 = 448
2048 = 440

m4
0 = 124
512 = 124
1024 = 120
2048 = 112

ak47
0 = 140
512 = 140
1024 = 136
2048 = 132

(on the left is distance, right is damage)

There doesn't seem to be a multiplier that'd fit in for all these weapons. Infact when I researched some more I saw that different hitboxes have different damage drop at same distances.

Can someone help me out here? I'm trying to figure how much would damage drop in 50 meters.


All times are GMT -4. The time now is 18:20.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.