Damage from lava.

I’m looking for place in code where is written damage taken from lava or slime while you swim in it. Can anybody help me?

Sorry for my english. /emoticons/default_wink.png

In Player.cpp, in the function EnvironmentalDamage is where the damage is actually done to the player, but it also applies to drowning and to falling, and maybe some other stuff.

If you wanted to put something in there just for slime and lava you could do this:

if (type == DAMAGE_LAVA || type == DAMAGE_SLIME)




Thanks You