Skip to content

Commit

Permalink
framework
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuuhuuuu committed Jan 9, 2024
1 parent 35fe698 commit 21f59f2
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion code/game/cas_manager/datums/cas_fire_envelope.dm
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,24 @@
mission_error = "Target is off bounds or obstructed."
return
change_current_loc(target_turf)
playsound(target_turf, soundeffect, 70, TRUE, 50)
playsound(shootloc, soundeffect, vol = 70, vary = TRUE, 50, falloff = 8)

Check failure on line 262 in code/game/cas_manager/datums/cas_fire_envelope.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "shootloc"

Check failure on line 262 in code/game/cas_manager/datums/cas_fire_envelope.dm

View workflow job for this annotation

GitHub Actions / Run Linters

proc called with non-kwargs after kwargs: playsound()

var/relative_dir
for(var/mob/M in range(15, target_turf))
if(get_turf(M) == target_turf)
relative_dir = 0
else
relative_dir = Get_Compass_Dir(M, target_turf)

var/ds_identifier = "LARGE BIRD"
if (M.mob_flags & KNOWS_TECHNOLOGY)
ds_identifier = "DROPSHIP"

M.show_message( \
SPAN_HIGHDANGER("A [ds_identifier] FLIES [SPAN_UNDERLINE(relative_dir ? uppertext(("TO YOUR " + dir2text(relative_dir))) : uppertext("right above you"))]!"), SHOW_MESSAGE_VISIBLE, \
SPAN_HIGHDANGER("YOU HEAR SOMETHING GO [SPAN_UNDERLINE(relative_dir ? uppertext(("TO YOUR " + dir2text(relative_dir))) : uppertext("right above you"))]!"), SHOW_MESSAGE_AUDIBLE \
)

sleep(flyto_period)
stat = FIRE_MISSION_STATE_FIRING
mission.execute_firemission(linked_console, target_turf, dir, fire_length, step_delay, src)
Expand Down

0 comments on commit 21f59f2

Please sign in to comment.