2019-09-15 16:23:33 +00:00
|
|
|
public SHOTS_ADD
|
|
|
|
shots_add proc near
|
2019-02-25 22:15:16 +00:00
|
|
|
xor ax, ax
|
|
|
|
mov bx, _shot_ptr
|
|
|
|
|
|
|
|
@@loop:
|
|
|
|
cmp bx, offset _shots_end
|
|
|
|
jnb short @@ret
|
|
|
|
add bx, size shot_t
|
|
|
|
cmp [bx+shot_t.flag], 0
|
|
|
|
jnz short @@loop
|
|
|
|
mov word ptr [bx+shot_t.flag], 1
|
2019-11-15 19:54:33 +00:00
|
|
|
mov eax, _player_pos.cur
|
2019-02-25 22:15:16 +00:00
|
|
|
mov dword ptr [bx+shot_t.pos.cur], eax
|
|
|
|
mov dword ptr [bx+shot_t.pos.velocity], (-12 shl 4) shl 16 or (0)
|
|
|
|
mov word ptr [bx+shot_t.patnum_base], 20
|
|
|
|
mov ax, bx
|
|
|
|
add bx, size shot_t
|
|
|
|
mov _shot_ptr, bx
|
|
|
|
|
|
|
|
@@ret:
|
|
|
|
retn
|
2019-09-15 16:23:33 +00:00
|
|
|
shots_add endp
|
2019-02-25 22:15:16 +00:00
|
|
|
even
|