mirror of
https://github.com/goonstation/goonstation-2020.git
synced 2026-07-17 10:02:21 +01:00
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
/datum/projectile/shrink_beam
|
|
name = "space-time disruption"
|
|
icon = 'icons/obj/projectiles.dmi'
|
|
icon_state = "sinebeam3"
|
|
brightness = 1
|
|
//How much of a punch this has, tends to be seconds/damage before any resist
|
|
power = 10
|
|
//How much ammo this costs
|
|
cost = 50
|
|
//How fast the power goes away
|
|
dissipation_rate = 1
|
|
//How many tiles till it starts to lose power
|
|
dissipation_delay = 10
|
|
//Kill/Stun ratio
|
|
ks_ratio = 0.0
|
|
//name of the projectile setting, used when you change a guns setting
|
|
sname = "shrink beam"
|
|
//file location for the sound you want it to play
|
|
shot_sound = 'sound/effects/warp1.ogg'
|
|
//How many projectiles should be fired, each will cost the full cost
|
|
shot_number = 1
|
|
//What is our damage type
|
|
damage_type = 0
|
|
//With what % do we hit mobs laying down
|
|
hit_ground_chance = 10
|
|
//Can we pass windows
|
|
window_pass = 0
|
|
projectile_speed = 15
|
|
|
|
var/turf/target = null
|
|
var/failchance = 5
|
|
|
|
on_hit(atom/hit)
|
|
if (hit.shrunk >= 2) return
|
|
if (istype(hit, /atom/movable))
|
|
hit.shrunk++
|
|
hit.Scale(0.75, 0.75)
|
|
return |