New weapon! - "Lazy Boy"

This commit is contained in:
Pecusx
2022-11-08 18:45:06 +01:00
parent 4bd58b40fd
commit b3b8633574
9 changed files with 51 additions and 20 deletions
+20
View File
@@ -848,6 +848,26 @@ invSelectDef
ply
jmp DecreaseDefensive ; bypass activation
NotBattery
cmp #ind_Lazy_Boy_______
bne NoLazyBoy
; Lazy Boy - do it like battery
mva #sfx_smoke_cloud sfx_effect
phy
jsr PrepareAIShoot
;jsr FindBestTarget3 ; find target with lowest energy
jsr FindBestTarget2 ; find nearest tank neighbour
sty TargetTankNr
; aiming
jsr TakeAim ; direction still in A (0 - left, >0 - right)
lda Force
sta ForceTableL,x
lda Force+1
sta ForceTableH,x
lda NewAngle
sta AngleTable,x
ply
jmp DecreaseDefensive ; bypass activation
NoLazyBoy
cmp #ind_Long_Barrel____
bne NotBarrel
; if activate long barrel, we do it differently too