Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOM committed Jun 28, 2023
1 parent 451cd85 commit 67814fb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/modules/cm_marines/orbital_cannon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -409,18 +409,15 @@ var/list/ob_type_fuel_requirements
for(var/mob/living/user in urange(radius_size, epicenter))

var/distance = get_accurate_dist(get_turf(user), epicenter)

var/distance_percent = ((radius_size - distance) / radius_size)

var/total_shake_factor = abs(max_shake_factor * distance_percent)

// it's of type cluster.
if(!max_knockdown_time)
shake_camera(user, 0.5, total_shake_factor, frequency)
continue

shake_camera(user, total_shake_factor, frequency)

shake_camera(user, 3, total_shake_factor, frequency)
user.KnockDown(rand(max_knockdown_time * distance_percent, (max_knockdown_time * distance_percent + 1)))

if(!user.knocked_down)
Expand Down

0 comments on commit 67814fb

Please sign in to comment.