SA-MP Forums Archive
Gun damage float values? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: Gun damage float values? (/showthread.php?tid=302502)



Gun damage float values? - Celson - 09.12.2011

Does anyone know if someone has compiled a list of how much damage each gun does per hit?


Re: Gun damage float values? - MaTrIx4057 - 09.12.2011

I have from most common weapons

Код:
#define WEAPON_DAMAGE_DEAGLE    46
#define WEAPON_DAMAGE_SHOTGUN    3
#define WEAPON_DAMAGE_SPAS12     3
#define WEAPON_DAMAGE_MP5        8
#define WEAPON_DAMAGE_M4        10
#define WEAPON_DAMAGE_AK47      10
#define WEAPON_DAMAGE_SNIPER    41
#define WEAPON_DAMAGE_RIFLE     25
Took it out from my code.


Re: Gun damage float values? - Celson - 09.12.2011

Quote:
Originally Posted by MaTrIx4057
Посмотреть сообщение
I have from most common weapons

Код:
#define WEAPON_DAMAGE_DEAGLE    46
#define WEAPON_DAMAGE_SHOTGUN    3
#define WEAPON_DAMAGE_SPAS12     3
#define WEAPON_DAMAGE_MP5        8
#define WEAPON_DAMAGE_M4        10
#define WEAPON_DAMAGE_AK47      10
#define WEAPON_DAMAGE_SNIPER    41
#define WEAPON_DAMAGE_RIFLE     25
Took it out from my code.
Awesome. Thanks mate! (Rep+)


Re: Gun damage float values? - CyNiC - 09.12.2011

I'm pretty sure that M4 and AK47 takes 9 on OnPlayerTakeDamage.


Re : Gun damage float values? - mehdi-jumper - 09.12.2011

MatrIx it's not true.

If you want to know the exact value of weapon damage, make a code like /health (with. GetPlayerHealth) and go IG. Ask to a player to shoot you 1 time with a weapon and after this shot, tape /health and see your health level.

If you have 64 for exemple, the weapon damage is 36.

Pay attention! The weapon damage is not the same on the body and on the head.

Good luck


Re: Gun damage float values? - Finn - 09.12.2011

Why do you need to know them?


Re : Gun damage float values? - mehdi-jumper - 09.12.2011

Finn, don't post if you say things like that... He has his reasons^^


Re: Re : Gun damage float values? - Finn - 09.12.2011

Quote:
Originally Posted by mehdi-jumper
Посмотреть сообщение
He has his reasons^^
Indeed, like you can see in my previous post, I am curious what those reasons could be.