mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-01-24 15:30:48 +00:00
Wait about 2s before despawning killed mobs.
This gives them enough time to play their death animations before they disappear.
This commit is contained in:
@@ -20,6 +20,7 @@ struct Mob : public BaseNPC {
|
||||
const int maxHealth;
|
||||
time_t killedTime = 0;
|
||||
const int regenTime;
|
||||
bool despawned = false; // for the sake of death animations
|
||||
|
||||
Mob(int x, int y, int z, int type, int hp, int angle, int rt)
|
||||
: BaseNPC(x, y, z, type), maxHealth(hp), regenTime(rt) {
|
||||
|
||||
Reference in New Issue
Block a user