mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-04 13:27:14 +00:00
sync with icculus repo
This commit is contained in:
parent
3b39173397
commit
e64fb75f84
48 changed files with 21570 additions and 521 deletions
|
@ -35,6 +35,7 @@ function v.commonInit(me, tex, snd, sz, flipDir)
|
|||
setupEntity(me, tex, -2)
|
||||
entity_scale(me, sz, sz)
|
||||
entity_setActivationType(me, AT_NONE)
|
||||
entity_setAllDamageTargets(me, false)
|
||||
entity_setFillGrid(me, true)
|
||||
v.sound = snd
|
||||
loadSound(v.sound)
|
||||
|
|
|
@ -28,6 +28,7 @@ v.savedOrb = false
|
|||
function init(me)
|
||||
setupEntity(me, "OrbHolder", -2)
|
||||
entity_setActivationType(me, AT_NONE)
|
||||
entity_setAllDamageTargets(me, false)
|
||||
end
|
||||
|
||||
function update(me, dt)
|
||||
|
|
|
@ -566,13 +566,13 @@ function exitState(me)
|
|||
end
|
||||
|
||||
function shiftWorlds(me, old, new)
|
||||
if v.riding then
|
||||
if new == WT_SPIRIT then
|
||||
entity_setRiding(v.n, 0)
|
||||
cam_toEntity(v.n)
|
||||
elseif new == WT_NORMAL then
|
||||
entity_setRiding(v.n, me)
|
||||
cam_toEntity(me)
|
||||
end
|
||||
end
|
||||
if v.riding then
|
||||
if new == WT_SPIRIT then
|
||||
entity_setRiding(v.n, 0)
|
||||
cam_toEntity(v.n)
|
||||
elseif new == WT_NORMAL then
|
||||
entity_setRiding(v.n, me)
|
||||
cam_toEntity(me)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -90,6 +90,8 @@ function v.commonInit(me, id)
|
|||
entity_setState(me, STATE_IDLE)
|
||||
|
||||
entity_setEntityLayer(me, -1)
|
||||
|
||||
entity_setAllDamageTargets(me, false)
|
||||
end
|
||||
|
||||
function postInit(me)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue