mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-03 18:14:01 +00:00
fix predatorytunicate always spitting out to the left, now it's the facing direction
This commit is contained in:
parent
0a3f57486b
commit
bbc6636c65
1 changed files with 5 additions and 1 deletions
|
@ -190,7 +190,11 @@ function exitState(me)
|
||||||
elseif entity_isState(me, STATE_TRAPPED) then
|
elseif entity_isState(me, STATE_TRAPPED) then
|
||||||
--entity_addVel(v.trappedEnt, -800, 0)
|
--entity_addVel(v.trappedEnt, -800, 0)
|
||||||
if v.trappedEnt ~= 0 then
|
if v.trappedEnt ~= 0 then
|
||||||
entity_push(v.trappedEnt, -800, 0, 1)
|
local pushx = -800 -- left
|
||||||
|
if entity_isfh(me) then -- facing right?
|
||||||
|
pushx = -pushx
|
||||||
|
end
|
||||||
|
entity_push(v.trappedEnt, pushx, 0, 1)
|
||||||
end
|
end
|
||||||
v.trappedEnt = 0
|
v.trappedEnt = 0
|
||||||
if v.trapDelay == 0 then
|
if v.trapDelay == 0 then
|
||||||
|
|
Loading…
Add table
Reference in a new issue