Damage question
#1

Hey, where can i get every gta weapon orginal damage?

Also

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new Float:HP;
GetPlayerHealth(playerid, HP);
if(weaponid == 31) SetPlayerHealth(playerid, HP-25);
return 1;
}

will this script increase the original m4 damage by 25 hp(for example damage was 15, and with this script it became 40) or replace m4 damage(for example it was 15, and with this script it became 25)?

Sorry for bad english, hope you understand what im trying to say ;/
Reply
#2

Please, i really need help.
Reply
#3

Not sure about the original gta sa damage, but it will increase the damage by 25, but the default damage value keeps varying everytime, so this script will sometimes reduce 40 hp sometimes 50, sometimes 35 or so on
Reply
#4

Weapon data can be retrieved from weapon.dat in the GTA SA data folder. The file can be simply read using Notepad.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)