900 |
def_shmodel("st-actorimpulse-anim", "st-ai-fg", "st-ai-sh") |
def_shmodel("st-actorimpulse-anim", "st-ai-fg", "st-ai-sh") |
901 |
|
|
902 |
def_shmodel("st-actorimpulse", namelist[1], shnamelist[1]) |
def_shmodel("st-actorimpulse", namelist[1], shnamelist[1]) |
|
|
|
|
-- frames={} |
|
|
-- for i=1,3 do |
|
|
-- def_shmodel("st-ai"..i, namelist[i],shnamelist[i]) |
|
|
-- tinsert(frames,"st-ai"..i); |
|
|
-- end |
|
|
|
|
|
-- def_anim("st-actorimpulse-anim", pingpong(buildframes(frames,30))); |
|
|
-- def_alias("st-actorimpulse", "st-ai1"); |
|
|
|
|
|
-- def_shmodel("st-actorimpulse", namelist[1], shnamelist[1]) |
|
|
-- def_anim("actorimpulse-anim", pingpong(buildframes(namelist, 20))) |
|
|
-- def_anim("actorimpulse-shanim", pingpong(buildframes(shnamelist, 20))) |
|
|
-- def_shmodel("st-actorimpulse-anim", "actorimpulse-anim", "actorimpulse-shanim") |
|
903 |
end |
end |
904 |
|
|
905 |
-- Stone impulse stone |
-- Stone impulse stone |
906 |
-- |
-- |
907 |
-- Note: It's important that the duration of the closing animation |
-- Note: It's important that the duration of the closing animation |
908 |
-- (anim2) is longer than the opening animation (anim1). Otherwise |
-- (anim2) is longer than the opening animation (anim1). Otherwise |
909 |
-- impulse stones do not work porperly! |
-- impulse stones do not work properly! |
910 |
|
|
911 |
do |
do |
912 |
namelist = def_subimages("st-stoneimpulse", {h=4}) |
namelist = def_subimages("st-stoneimpulse", {h=4}) |
913 |
def_roundstone("st-stoneimpulse", namelist[1]) |
def_roundstone("st-stoneimpulse", namelist[1]) |
914 |
frames={} |
frames={} |
915 |
for i=1,4 do tinsert(frames, namelist[i]) end |
for i=1,4 do tinsert(frames, namelist[i]) end |
916 |
def_anim("stoneimpulse-anim1", buildframes(frames, 60)) |
def_anim("stoneimpulse-anim1", buildframes(frames, 55)) |
917 |
def_roundstone("st-stoneimpulse-anim1", "stoneimpulse-anim1") |
def_roundstone("st-stoneimpulse-anim1", "stoneimpulse-anim1") |
918 |
tinsert(frames, namelist[4]) -- add 1 frame to make closing anim longer! |
tinsert(frames, namelist[4]) -- add 1 frame to make closing anim longer! |
919 |
def_anim("stoneimpulse-anim2", reverseframes(buildframes(frames, 60))) |
def_anim("stoneimpulse-anim2", reverseframes(buildframes(frames, 55))) |
920 |
def_roundstone("st-stoneimpulse-anim2", "stoneimpulse-anim2") |
def_roundstone("st-stoneimpulse-anim2", "stoneimpulse-anim2") |
921 |
end |
end |
922 |
|
|
925 |
def_shmodel("st-stoneimpulse-hollow", namelist[1], "sh-glass") |
def_shmodel("st-stoneimpulse-hollow", namelist[1], "sh-glass") |
926 |
frames={} |
frames={} |
927 |
for i=1,4 do tinsert(frames, namelist[i]) end |
for i=1,4 do tinsert(frames, namelist[i]) end |
928 |
def_anim("stoneimpulse-hollow-anim1", buildframes(frames, 60)) |
def_anim("stoneimpulse-hollow-anim1", buildframes(frames, 55)) |
929 |
def_shmodel("st-stoneimpulse-hollow-anim1", "stoneimpulse-hollow-anim1", "sh-glass") |
def_shmodel("st-stoneimpulse-hollow-anim1", "stoneimpulse-hollow-anim1", "sh-glass") |
930 |
tinsert(frames, namelist[4]) -- add 1 frame to make closing anim longer! |
tinsert(frames, namelist[4]) -- add 1 frame to make closing anim longer! |
931 |
def_anim("stoneimpulse-hollow-anim2", reverseframes(buildframes(namelist, 65))) |
def_anim("stoneimpulse-hollow-anim2", reverseframes(buildframes(namelist, 55))) |
932 |
def_shmodel("st-stoneimpulse-hollow-anim2", "stoneimpulse-hollow-anim2", "sh-glass") |
def_shmodel("st-stoneimpulse-hollow-anim2", "stoneimpulse-hollow-anim2", "sh-glass") |
933 |
end |
end |
934 |
|
|
937 |
----------------- |
----------------- |
938 |
do |
do |
939 |
local img = def_subimages("st-thief", {h=7}) |
local img = def_subimages("st-thief", {h=7}) |
940 |
local f = buildframes(img, 80) |
local f = buildframes(img, 80) |
941 |
def_anim("thief-emerge", f) |
def_anim("thief-emerge", f) |
942 |
def_anim("thief-retreat", pingpong(f)) |
def_anim("thief-retreat", pingpong(f)) |
943 |
def_roundstone("st-thief", img[1]) |
def_roundstone("st-thief", img[1]) |
944 |
def_roundstone("st-thief-emerge", "thief-emerge") |
def_roundstone("st-thief-emerge", "thief-emerge") |
945 |
def_roundstone("st-thief-retreat", "thief-retreat") |
def_roundstone("st-thief-retreat", "thief-retreat") |
946 |
end |
end |
947 |
|
|
948 |
----------------- |
----------------- |
1162 |
def_anim("doorh-closing-bg", buildframes(sh, 60)) |
def_anim("doorh-closing-bg", buildframes(sh, 60)) |
1163 |
def_shmodel("st-doorh-closing", "doorh-closing-fg", "doorh-closing-bg") |
def_shmodel("st-doorh-closing", "doorh-closing-fg", "doorh-closing-bg") |
1164 |
|
|
|
-- f=buildframes(img, 60) |
|
|
-- def_anim("doorh-opening", reverseframes(f)) |
|
|
-- def_anim("doorh-closing", f) |
|
|
-- def_shmodel("st-doorh-opening", "doorh-opening", sh[4]); |
|
|
-- def_shmodel("st-doorh-closing", "doorh-closing", sh[4]); |
|
1165 |
|
|
1166 |
img=def_subimages("st-doorv", {w=7}) |
img=def_subimages("st-doorv", {w=7}) |
1167 |
sh=def_subimages("sh-doorv", {w=7,imgw=41,imgh=41}) |
sh=def_subimages("sh-doorv", {w=7,imgw=41,imgh=41}) |
1173 |
def_anim("doorv-closing-fg", buildframes(img, 60)) |
def_anim("doorv-closing-fg", buildframes(img, 60)) |
1174 |
def_anim("doorv-closing-bg", buildframes(sh, 60)) |
def_anim("doorv-closing-bg", buildframes(sh, 60)) |
1175 |
def_shmodel("st-doorv-closing", "doorv-closing-fg", "doorv-closing-bg") |
def_shmodel("st-doorv-closing", "doorv-closing-fg", "doorv-closing-bg") |
|
-- f = buildframes(img,60) |
|
|
-- def_anim("doorv-opening", reverseframes(f)) |
|
|
-- def_anim("doorv-closing", f) |
|
|
-- def_shmodel("st-doorv-opening", "doorv-opening", sh[4]); |
|
|
-- def_shmodel("st-doorv-closing", "doorv-closing", sh[4]); |
|
1176 |
end |
end |
1177 |
|
|
1178 |
-- Door_a -- |
-- Door_a -- |