mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 12:04:48 +01:00
Fixes a rare runtime with the clingtacle (#22046)
* Fixes-the-runtime * Snowball review
This commit is contained in:
@@ -118,9 +118,10 @@
|
||||
if(recoil)
|
||||
shake_camera(user, recoil + 1, recoil)
|
||||
|
||||
var/muzzle_range = chambered.muzzle_flash_range
|
||||
var/muzzle_strength = chambered.muzzle_flash_strength
|
||||
var/muzzle_range = chambered?.muzzle_flash_range
|
||||
var/muzzle_strength = chambered?.muzzle_flash_strength
|
||||
var/muzzle_flash_time = 0.2 SECONDS
|
||||
|
||||
if(suppressed)
|
||||
playsound(user, fire_sound, 10, TRUE, ignore_walls = FALSE, extrarange = SILENCED_SOUND_EXTRARANGE, falloff_distance = 0)
|
||||
muzzle_range *= 0.5
|
||||
|
||||
Reference in New Issue
Block a user