Skip to content

Commit

Permalink
Merge pull request Civ13#2548 from savethetreez/branch
Browse files Browse the repository at this point in the history
Adds a distance var to the animated rockets
  • Loading branch information
savethetreez authored Jan 12, 2024
2 parents 4f5eccf + a8fdf21 commit cdd295d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/game/objects/map_metadata/siberiad.dm
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@
flammable = FALSE
anchored = TRUE
var/active = FALSE
var/flight_time = 3 SECONDS
var/flight_time = 4 SECONDS
var/flight_distance = 15 // in tiles
pixel_x = -32
layer = 6.01

Expand All @@ -210,6 +211,6 @@
if (!new_player_mob_list.Find(M))
//M << SPAN_DANGER("<font size=3>A nuclear missile has been launched!</font>")
M.client << uploaded_sound
animate(src, pixel_y = 15*32, time = flight_time, alpha = 150, easing = SINE_EASING | EASE_IN)
animate(src, pixel_y = flight_distance*32, time = flight_time, alpha = 150, easing = SINE_EASING | EASE_IN)
spawn(flight_time) // has to be equal to flight time else it'll look weird
qdel(src)

0 comments on commit cdd295d

Please sign in to comment.