Remove fall damage
#1

Hi, how is it possible to remove fall damage? Slice removed it in weapon-config.inc, but how?
Reply
#2

Using SKY plugin:
- Server sided health
- Custom health bar (GTA SA health bar is no longer used)
- Adjust 3D health bar value only to maintain server sided health
- And i guess give infinite health to client side so whenever you fall you won't be affected
Reply
#3

No, I have custom damage system in my script, it would totally mess it up. And I'm not planning to change anything if I'd use it.
Reply
#4

Try
PHP Code:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    new 
Float:hp;
    if(
weaponid == 54GetPlayerHealth(playeridhp), hp+=amountSetPlayerHealth(playeridhp);
    return 
1;

Reply
#5

Quote:
Originally Posted by Shinja
View Post
Try
PHP Code:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    new 
Float:hp;
    if(
weaponid == 54GetPlayerHealth(playeridhp), hp+=amountSetPlayerHealth(playeridhp);
    return 
1;

Yeah, I could do that myself, but I want to totally remove the damage, so player won't die when they fall.
Reply
#6

Quote:
Originally Posted by GoldenLion
View Post
No, I have custom damage system in my script, it would totally mess it up. And I'm not planning to change anything if I'd use it.
Quote:
Originally Posted by GoldenLion
View Post
Hi, how is it possible to remove fall damage? Slice removed it in weapon-config.inc, but how?
weapon-config.inc uses that plugin. There's no other way to cancel fall damage.
Reply
#7

But Slice made that somehow for weapon-config.inc. Your health can be unlimited, but if you fall from very high you will die anyways if I'm right, but Slice removed that somehow.
Reply
#8

Yes, like I said before, weapon-config uses SKY plugin.
Reply
#9

Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) 
{
     if (issuerid == INVALID_PLAYER_ID)
    {
           return 0;
    }
}
//This will cause no damage to player if player fall or damage himself
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)