From c6dd3cf8696b41ecefe06c2a2a398eb0e6d54c2c Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Sun, 6 Jan 2008 14:21:46 +0000 Subject: [PATCH] Commit valid archetype I forgot last time. git-svn-id: svn+ssh://svn.code.sf.net/p/crossfire/code/arch/trunk@8136 282e977c-c81d-0410-88c4-b93c2d0d6712 --- dev/wip/manhole/manhole.arc | 198 +++-------------------------------- dev/wip/manhole/manhole.face | 6 ++ 2 files changed, 19 insertions(+), 185 deletions(-) create mode 100644 dev/wip/manhole/manhole.face diff --git a/dev/wip/manhole/manhole.arc b/dev/wip/manhole/manhole.arc index 935dd94f8..ea3b47c7f 100644 --- a/dev/wip/manhole/manhole.arc +++ b/dev/wip/manhole/manhole.arc @@ -2,9 +2,7 @@ # the arch/trunk/connect/Hole directory. The difference is that this archetype # is a 64 x 64 bit multi-tile HOLE. # -# This is a "correct" HOLE-based manhole modelled after connect/Hole/pit.arc -# The animation does not work. The hole function does work, and is aligned -# with the manhole graphic on the head tile. +# This animation shold work as expected. # Object manhole_closed_1 name manhole @@ -13,38 +11,33 @@ activate_on_push 1 activate_on_release 1 no_pick 1 face manhole.114 -anim -manhole.111 -manhole.112 -manhole.113 -manhole.114 -mina +animation manhole is_animated 0 -wc 4 -maxsp 0 visibility 50 magicmap black +wc 4 end More Object manhole_closed_1a face manhole.114 +animation manhole x 1 end More Object manhole_closed_1b face manhole.114 +animation manhole y 1 end More Object manhole_closed_1c face manhole.114 +animation manhole x 1 y 1 end # -# This is a "correct" HOLE-based manhole modelled after connect/Hole/pit.arc -# The animation does not work. The hole function does work, and is aligned -# with the manhole graphic on the head tile. +# This animation should work. # Object manhole_open_1 name manhole @@ -53,12 +46,7 @@ activate_on_push 1 activate_on_release 1 no_pick 1 face manhole.111 -anim -manhole.111 -manhole.112 -manhole.113 -manhole.114 -mina +animation manhole is_animated 0 move_on walk wc 0 @@ -69,182 +57,22 @@ end More Object manhole_open_1a face manhole.111 +animation manhole +maxsp 1 x 1 end More Object manhole_open_1b face manhole.111 +animation manhole +maxsp 1 y 1 end More Object manhole_open_1c face manhole.111 -x 1 -y 1 -end -# -# This animation works, but the x1, y1, x1 y1 pieces have the wrong face, so -# the player view of the closed manhole is messed up. The animation takes -# place at x-1, y-1 instead of at x,y, and the hole is not aligned with the -# location of the head tile (which is misplaced). -# -Object manhole_closed_2 -name manhole -type 94 -activate_on_push 1 -activate_on_release 1 -no_pick 1 -face manhole.114 -anim -manhole.111 -manhole.112 -manhole.113 -manhole.114 -mina -is_animated 0 -wc 4 -maxsp 0 -visibility 50 -magicmap black -end -More -Object manhole_closed_2a -face manhole.111 -x 1 -end -More -Object manhole_closed_2b -face manhole.111 -y 1 -end -More -Object manhole_closed_2c -face manhole.111 -x 1 -y 1 -end -# -# This animation does not work even though it is set up just like the -# manhole_closed_2 arch. -# -Object manhole_open_2 -name manhole -type 94 -activate_on_push 1 -activate_on_release 1 -no_pick 1 -face manhole.111 -anim -manhole.111 -manhole.112 -manhole.113 -manhole.114 -mina -is_animated 0 -move_on walk -wc 0 maxsp 1 -visibility 50 -magicmap black -end -More -Object manhole_open_2a -face manhole.114 -x 1 -end -More -Object manhole_open_2b -face manhole.114 -y 1 -end -More -Object manhole_open_2c -face manhole.114 -x 1 -y 1 -end -# -# These animations work, and look correct in-game, though the hole that -# things drop through is not aligned with the manhole which is the same -# as manhole_closed_1 except that the graphic is not corrupted. All that -# changed from the above is that the faces for the non-head pieces have -# been removed. Gridarta places the head at x,y and places "no face" -# indications at at x+1,y, x,y+1, and x+1,y+1. -# -# Specifying no face instead of blank.111 also works, except that in -# Gridarta, the non-head pieces are "no face" instead of yellow blanks. -# -Object manhole_closed_3 -name manhole -type 94 -activate_on_push 1 -activate_on_release 1 -no_pick 1 -face manhole.114 -anim -manhole.111 -manhole.112 -manhole.113 -manhole.114 -mina -is_animated 0 -wc 4 -maxsp 0 -visibility 50 -magicmap black -end -More -Object manhole_closed_3a -blank.111 -x 1 -end -More -Object manhole_closed_3b -blank.111 -y 1 -end -More -Object manhole_closed_3c -blank.111 -x 1 -y 1 -end -# -# This animation works with the same symptoms as manhole_closed_3. -# -Object manhole_open_3 -name manhole -type 94 -activate_on_push 1 -activate_on_release 1 -no_pick 1 -face manhole.111 -anim -manhole.111 -manhole.112 -manhole.113 -manhole.114 -mina -is_animated 0 -move_on walk -wc 0 -maxsp 1 -visibility 50 -magicmap black -end -More -Object manhole_open_2a -blank.111 -x 1 -end -More -Object manhole_open_2b -blank.111 -y 1 -end -More -Object manhole_open_2c -blank.111 +animation manhole x 1 y 1 end diff --git a/dev/wip/manhole/manhole.face b/dev/wip/manhole/manhole.face new file mode 100644 index 000000000..9c461113a --- /dev/null +++ b/dev/wip/manhole/manhole.face @@ -0,0 +1,6 @@ +animation manhole +manhole.111 +manhole.112 +manhole.113 +manhole.114 +mina