PWAD How to add to addons: To add this to mods, just take the pre-existing lua and dump it in your mod! .. Or just load this file by itself, and any bosses that the player would fight would end up not being able to die! ___________________________________________________________________________ known issues: - metal sonic ends up in a infinite cycle for his evasion - some bosses end up freezing during their attacks, causing them to just be still targets instead of actual bosses. - CEZ3s bossfight ends up being virtually unbeatable due to how fast the spike balls go because of the hp. -- (NOT COMPATABLE WITH BOSSES WHO RELY ON CHECKING HP FOR ATTACKS) local enemyhp = CV_RegisterVar({ name = "togglehigherbrakhp", defaultvalue = "On", flags = CV_NETVAR, PossibleValue = CV_OnOff }) local enemyhpam = CV_RegisterVar({ name = "higherbrakhp_amount", defaultvalue = "238", flags = CV_NETVAR, PossibleValue = CV_Natural }) addHook("MobjSpawn", function(mo) if (mo.hbham == nil) then mo.hbham = enemyhpam.value end end) addHook("MobjThinker", function(mo) if enemyhp.value == 0 then return end if (mo.health <= 12) and (mo.hbham >= 12) and (mo.flags & MF_BOSS) then mo.health = $ + 238 mo.hbham = $ - 1 end end) local enemyhp = CV_RegisterVar({ name = "togglehigherbosshp", defaultvalue = "On", flags = CV_NETVAR, PossibleValue = CV_OnOff }) local enemyhpam = CV_RegisterVar({ name = "higherbosshp_amount", defaultvalue = "92", flags = CV_NETVAR, PossibleValue = CV_Natural }) addHook("MobjSpawn", function(mo) if (mo.hbham == nil) then mo.hbham = enemyhpam.value end end) addHook("MobjThinker", function(mo) if enemyhp.value == 0 then return end if (mo.health <= 8) and (mo.hbham >= 8) and (mo.flags & MF_BOSS) then mo.health = $ + 92 mo.hbham = $ - 1 end end) local enemyhp = CV_RegisterVar({ name = "togglehigherdifficultaddonbosshp", defaultvalue = "On", flags = CV_NETVAR, PossibleValue = CV_OnOff }) local enemyhpam = CV_RegisterVar({ name = "higherdifficultaddonbosshp_amount", defaultvalue = "100", flags = CV_NETVAR, PossibleValue = CV_Natural }) addHook("MobjSpawn", function(mo) if (mo.hbham == nil) then mo.hbham = enemyhpam.value end end) addHook("MobjThinker", function(mo) if enemyhp.value == 0 then return end if (mo.health <= 20) and (mo.hbham >= 20) and (mo.flags & MF_BOSS) then mo.health = $ + 100 mo.hbham = $ - 1 end end) local enemyhp = CV_RegisterVar({ name = "togglehigheraddonbosshp", defaultvalue = "On", flags = CV_NETVAR, PossibleValue = CV_OnOff }) local enemyhpam = CV_RegisterVar({ name = "higheraddonbosshp_amount", defaultvalue = "90", flags = CV_NETVAR, PossibleValue = CV_Natural }) addHook("MobjSpawn", function(mo) if (mo.hbham == nil) then mo.hbham = enemyhpam.value end end) addHook("MobjThinker", function(mo) if enemyhp.value == 0 then return end if (mo.health <= 10) and (mo.hbham >= 10) and (mo.flags & MF_BOSS) then mo.health = $ + 90 mo.hbham = $ - 1 end end) NOTEBOSSESLUA_BRAK5LUA_HPLUA_ADD1a LUA_ADD2