I have tested the 1.5.6 files attached here.@McRustReloaded @salva @xandeturf
Even better. I tested this fully with python plugin calls. Everything seems to be perfect.
I changed NPCHurt, NPCKiled, PlayerHurt, EntityHurt, EntityDestroyed
to the takedamage event hook, and that one method processes all of them. This should save a lot of juice, and should be a lot more faster. I went through all of them, and tested the damageamount changes. All seem fine. The old code for them was pretty shit, It was from Magma. I'm afraid there are still codes that are from magma that i havent noticed yet.
PlayerKilled remained at the same spot, so you can still decide if you want to drop loot or not.
Now no longer shows error when you break wall with C4 (this solved)
But it still fails to remove "Barricade RepairBench WorkBench StorageBox LargeStorageBox Campfire Furnace"
Example I have removed 4 barricades and this appears:
In NGC View with NGC ViewID ID 105185289 (1605: 10) to send RPC "ClientHealthUpdate"
In NGC View with NGC ViewID ID 105185287 (1605: 8) to send RPC "ClientHealthUpdate"
In NGC View with ID NGC ViewID 105185286 (1605: 7) to send RPC "ClientHealthUpdate"
In NGC View with NGC ViewID ID 105185288 (1605: 9) to send RPC "ClientHealthUpdate"
Regards!!