Number Cruncher Eggman can get blown up by land mines (and logs a warning)
Not sure if it's intentional, since you can't kill him otherwise AFAIK, but the script crashes(?) when it happens (the game otherwise continues on its merry way). I thought it was pretty funny, though.
WARNING: ...acers-data/data/scripts.pk3|lua/schoolhouse/LUA_EGSH:46: attempt to index field 'target' (a nil value)
stack traceback:
...acers-data/data/scripts.pk3|lua/schoolhouse/LUA_EGSH:46: in function 'A_SlideyChase'
...acers-data/data/scripts.pk3|lua/schoolhouse/LUA_EGSH:75: in function <...acers-data/data/scripts.pk3|lua/schoolhouse/LUA_EGSH:60>
The contents of A_SlideyChase
, for reference (not sure if the Lua lives anywhere outside of the assets?):
function A_SlideyChase(actor, var1, var2)
P_Thrust(actor, R_PointToAngle2(actor.x, actor.y, actor.target.x, actor.target.y), FixedMul(actor.info.speed*FRACUNIT/12, actor.scale))
A_FaceTarget(actor, 0, 0)
end
I have a replay of the incident from Grand Prix, but naturally that won't reproduce the script warning.
I would also like to state for the record that, prior to checking the script, I was referring to him as "Teeth Eggman".
Edited by Will