Custom vehicle damage
#5

Shotguns does different amounts of damage depending how many bullets hit the vehicle, and it would take a very long time to calculate this for every weapon.
It's very easy having a custom damage script for players.
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    new Float:health;
    GetPlayerHealth(playerid, health);
    SetPlayerHealth(playerid, health + amount);
    return 1;
}
This will just give them the health back they were damaged of, and then you can set new values of damage for each weapon.
But how do you do this with vehicles? There must be a way, or maybe an include someone has made for this?
Reply


Messages In This Thread
Custom vehicle damage - by CalvinC - 19.01.2015, 05:59
Re: Custom vehicle damage - by Schneider - 19.01.2015, 06:37
Re: Custom vehicle damage - by CalvinC - 19.01.2015, 07:55
Re: Custom vehicle damage - by Sime30 - 19.01.2015, 08:21
Re: Custom vehicle damage - by CalvinC - 19.01.2015, 08:40
Re: Custom vehicle damage - by Threshold - 19.01.2015, 08:54
Re: Custom vehicle damage - by CalvinC - 19.01.2015, 10:44

Forum Jump:


Users browsing this thread: