forked from historicalsource/wwf-wrestlemania
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BAMSEQ4.ASM
executable file
·209 lines (151 loc) · 4.27 KB
/
BAMSEQ4.ASM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
**************************************************************
*
* Software: Jamie Rivett
* Initiated: 12/8/94
*
* COPYRIGHT (C) 1992 WILLIAMS ELECTRONICS GAMES, INC.
*
**************************************************************
.file "bamseq4.asm"
.title "Bam Bam animation sequences"
.width 132
.option b,d,l,t
.mnolist
.include "macros.h"
.include "mproc.equ"
.include "sys.equ"
.include "game.equ"
.include "plyr.equ"
.include "anim.equ"
.include "sound.h"
.include "bamimg.h"
.include "damage.equ"
.INCLUDE "SWEAT.EQU"
******************************************************************************
* EXTERNAL REFERENCES
.ref DO_SCREAM,HIT_THE_MAT,SMALL_BOUNCE,CALL_MISSES
.ref am_I_dizzy,am_I_dead,ckzpos,start_run_anim
.ref bam_faceup_getup_anim,bam_fall_back_anim
******************************************************************************
* SYMBOLS DEFINED IN THIS FILE
******************************************************************************
* EQUATES FOR THIS FILE
#*****************************************************************************
*
* GENERIC BOUNCE
SUBR bam_slamnobounce_anim
.word ANI_SETMODE,MODE_UNINT | MODE_NOAUTOFLIP
.word ANI_ZEROVELS
.word ANI_SETSPEED,100h
.word ANI_SETPLYRMODE,MODE_ONGROUND
WL 1,B3CP3B+FR1
WL 3,B3CP3B+FR1
WL 4,B3CP3B+FR2
WL 4,B3CP3B+FR3
WL 4,B3CP3B+FR4
WL 4,B3CP3B+FR5
.word ANI_WAITHITGND
.word ANI_ZERO_XZVELS
WL 2,B3CP3B+FR7
WL 10,B3RL1A+FR1 ;1st frame of roll
.word ANI_WAITROLL
WL ANI_CHANGEANIM,bam_faceup_getup_anim
SUBR bam_slambounce_anim
.word ANI_SETMODE,MODE_UNINT | MODE_NOAUTOFLIP
.word ANI_ZEROVELS
.word ANI_SETSPEED,100h
.word ANI_SETPLYRMODE,MODE_ONGROUND
.word ANI_DEBRIS,300,1,0,8,0 ;%chance, tbl index, x,y,z off
WL 1,B3CP3B+FR1
WL ANI_CODE,ckzpos
WL ANI_SET_YVEL,040000h
WL 3,B3CP3B+FR1
WL 4,B3CP3B+FR2
WL 4,B3CP3B+FR3
WL 4,B3CP3B+FR4
WL 4,B3CP3B+FR5
.word ANI_WAITHITGND
.word ANI_ZERO_XZVELS
WL 2,B3CP3B+FR7
WL 10,B3RL1A+FR1 ;1st frame of roll
.word ANI_WAITROLL
WL ANI_CHANGEANIM,bam_faceup_getup_anim
SUBR bam_slambounce2_anim
.word ANI_SETMODE,MODE_UNINT | MODE_NOAUTOFLIP
.word ANI_ZEROVELS
.word ANI_SETSPEED,100h
.word ANI_SETPLYRMODE,MODE_ONGROUND
.word ANI_DEBRIS,300,1,0,8,0 ;%chance, tbl index, x,y,z off
WL 1,B4UC3Z+FR8
WL ANI_CODE,ckzpos
WL 3,B4UC3Z+FR8
.word ANI_WAITHITGND
.word ANI_ZEROVELS
WL ANI_CODE,HIT_THE_MAT
.word ANI_XFLIP
WL ANI_SET_YVEL,030000h
WL 4,B3CP3B+FR1
WL 4,B3CP3B+FR2
WL 4,B3CP3B+FR3
WL 4,B3CP3B+FR4
WL 4,B3CP3B+FR5
.word ANI_WAITHITGND
.word ANI_ZERO_XZVELS
WL 2,B3CP3B+FR7
WL 10,B3RL1A+FR1 ;1st frame of roll
.word ANI_WAITROLL
WL ANI_CHANGEANIM,bam_faceup_getup_anim
#*****************************************************************************
SUBR bam_breakneck2_anim
.word ANI_SETMODE,MODE_UNINT | MODE_NOAUTOFLIP
.word ANI_ZEROVELS
.word ANI_SETSPEED,100h
WLWWWW ANI_CREATEPROC,CREATE_SWEAT,0,SPRAYD_SWEAT,SWEAT_PER,0
.word ANI_OFFSET,0,52,0
WL 6,B4UC3B+FR3
WL 6,B4UC3B+FR4
WL 6,B4UC3B+FR5
WL 1,B4UC3B+FR6
.word ANI_WAITHITGND
WL ANI_CODE,HIT_THE_MAT
.word ANI_SHAKEALL,2
.word ANI_SHAKER,40
WL 3,B3FD3C+FR1
WL 3,B3FD3C+FR2
WL 3,B3FD3C+FR3
WL 3,B3FD3C+FR4
WL 3,B3FD3C+FR5
.word ANI_ZERO_XZVELS
WL ANI_CODE,HIT_THE_MAT
WL 8,B3RL1A+FR7
.word ANI_WAITROLL
WL ANI_CHANGEANIM,bam_faceup_getup_anim
#*****************************************************************************
SUBR bam_arm_broken_anim
.word ANI_SETMODE,MODE_UNINT|MODE_NOAUTOFLIP
.word ANI_SETPLYRMODE,MODE_NORMAL
.word ANI_SETSPEED,100h
WL ANI_SET_YVEL,40000h
WLW ANI_SET_XVEL,-38000h,AM_HIT_REL
WLW ANI_SET_ZVEL,10000h,AM_HIT_REL
WL ANI_CODE,DO_SCREAM
.word ANI_WAITHITGND
.word ANI_ZEROVELS
WL 4,B4AH4A+FR2
WL 4,B4AH4A+FR3
WL 4,B4AH4A+FR4
WL 4,B4AH4A+FR5
WL 4,B4AH4A+FR6
WL 1,B4ST4Z+FR1
WL ANI_CODE,am_I_dead
;If I'm dead, goto fall back
WL ANI_IFNOTSTATUS2,#nodead
WL ANI_CHANGEANIM,bam_fall_back_anim
; .word ANI_END
#nodead
.word ANI_FACEDOWN
.word ANI_SETMODE,MODE_NORMAL
.word ANI_END
******************************************************************************
.end