-- name: \\#FF0000\\Insta Death\\#FFFFFF\\ -- description: Any damage will kill you instantly (not water or mist) function instant_death(m) if m.health < 0x800 and m.health ~= 0 and m.action ~= ACT_DEATH_EXIT and m.action ~= ACT_DEATH_EXIT_LAND and m.action ~= ACT_SWIMMING_END and m.action ~= ACT_WATER_PLUNGE and m.action ~= ACT_WATER_ACTION_END and m.action ~= ACT_WATER_PUNCH and m.action ~= ACT_BREASTSTROKE and m.action ~= ACT_WATER_IDLE and m.action ~= ACT_SPECIAL_DEATH_EXIT and m.action ~= ACT_FALLING_DEATH_EXIT and m.action ~= ACT_FALLING_EXIT_AIRBORNE and m.action ~= ACT_DEATH_ON_BACK and m.action ~= ACT_DEATH_ON_STOMACH and m.action ~= ACT_HARD_BACKWARD_GROUND_KB and m.pos.y > m.waterLevel and m.action ~= ACT_FLUTTER_KICK then m.health = 0 -- Kill Mario instantly if m.health <= 0 and m.action ~= ACT_STANDING_DEATH and m.action ~= ACT_SUFFOCATING then level_trigger_warp(m, WARP_OP_DEATH) end end end --hook_event(HOOK_MARIO_UPDATE, instant_death) hook_event(HOOK_MARIO_UPDATE, instant_death) --hook for interacting with coins