mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Prevent bouncing on springs when dead
This commit is contained in:
parent
efba660738
commit
2fa506d774
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ end
|
|||
function bhv_arena_spring_loop(obj)
|
||||
local player = gMarioStates[0].marioObj
|
||||
local dist = math.sqrt((obj.oPosX - player.oPosX) ^ 2 + (obj.oPosY - player.oPosY) ^ 2 + (obj.oPosZ - player.oPosZ) ^ 2)
|
||||
if dist < 160 then
|
||||
if dist < 160 and mario_health_float(gMarioStates[0]) > 0 then
|
||||
bhv_arena_spring_launch(obj)
|
||||
end
|
||||
if obj.oArenaSpringSprung > 0 then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue