Hi,
go to the file GameGuru\Files\scriptbank\ai\module_combatshoot.lua and open it with a texteditor.
add these lines in the main method:
if g_PlayerHealth < 1 then
combattype = ai_combattype_guard
startingstate = ai_state_startidle
end
I added them at line 86 so it looks like this:
-- handle hurt response
if combattype == ai_combattype_guard then
module_combatcore.hurt(e,ai_state_startfireonspot)
else
module_combatcore.hurt(e,ai_state_startidle)
end
-- handle events
module_combatcore.headshot(e)
module_combatcore.punch(e,PlayerDist,combattype,ai_state_startfireonspot)
module_combatcore.recover(e,ai_state_startpatrol)
module_combatcore.fireonspot(e,AIObjNo)
module_combatcore.reloadweapon(e)
-- handle debugging
-- module_core.debug(e,AIObjNo,PlayerDist,combattype)
if g_PlayerHealth < 1 then
combattype = ai_combattype_guard
startingstate = ai_state_startidle
end
end
that's it
Ebe Editor Free - Build your own EBE structures with easy and without editing any text files
Thread and Download