Determine if player corpse is burned

Here you can find ScriptAPI suggestions implemented in the game.
Forum rules
By using the forum you agree to the following rules.
Locked
NearHuscarl
Superfighter
Superfighter
Posts: 97
Joined: Thu Feb 07, 2019 4:36 am

Determine if player corpse is burned

Post by NearHuscarl » Sat Feb 23, 2019 5:37 pm

I am writing a script to convert infected players into zombies after dying only if the corpses are not burned yet. Currently there is only IPlayer.IsBurning but only if player is CURRENTLY burning which are not necessarily burning at the time the corpse turn into zombie. Something like IPlayer.IsBurnedCorpse?
1 x
Image

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1884
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

Post by Gurt » Sat Feb 23, 2019 7:47 pm

Good suggestion, adding it in the next update after v.1.1.1.
ScriptAPI: Added IPlayer.IsBurnedCorpse to see if the corpse is burned.
ScriptAPI: Added IPlayer.IsBurningInferno to see if a player is a burning inferno (burning rank 2).
3 x
Gurt

Locked