FSOD Lava Dmg
Beiber
How do I do?
But seriously, I have no idea where to start on fixing this
The hp on Admin is not lowering on that client because the vit is at 1billion but it does take damage
if CheckArea.IsThisLava(player.X, player.Y); //Checking if the player location is Lava or not
(##Calculate Damage of Lava/Speed/Time##) //Calculating the Damage of the Lava over Speed to ensure that it gets the correct damage over time
if player.hp != CalculatedHP //This will run every time they stand on lava and take damage
player.Disconnect(); //Disconnect
(##Calculate Damage of Lava/Speed/Time##)
(Inputs Damage)
if player.hp != CalculatedHP //This will run if it is suppose to damage them and this will not run if player damage error exception runs
player.Disconnect();
{ if (client.Player.Owner == null) return; WmapTile tile = client.Player.Owner.Map[(int)packet.Position.X, (int)packet.Position.Y]; ObjectDesc objDesc = tile.ObjType == 0 ? null : client.Manager.GameData.ObjectDescs[tile.ObjType]; TileDesc tileDesc = client.Manager.GameData.Tiles[tile.TileId]; if (tileDesc.Damaging && (objDesc == null || !objDesc.ProtectFromGroundDamage)) { int dmg = (int)client.Player.StatsManager.Random.obf6((uint)tileDesc.MinDamage, (uint)tileDesc.MaxDamage); dmg = (int) client.Player.StatsManager.GetDefenseDamage(dmg, true); int calcdmg = client.Player.HP -= dmg; client.Player.HP -= dmg; client.Player.UpdateCount++; if (client.Player.HP <= 0) client.Player.Death(tileDesc.ObjectId); else if (client.Player.HP != calcdmg) client.DIsconnect(); //either client.Disconnect or client.Player.Disconnect(sorry I am not infront of the source rn) } }