mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-28 18:41:37 +00:00
## About The Pull Request stop forgetting to include mapload, if you don't include it then every single subtype past it by default doesn't include it for example, `obj/item` didn't include mapload so every single item by default didn't fill in mapload  ## Regex used: procs without args, not even regex `/Initialize()` procs with args `\/Initialize\((?!mapload)((.)*\w)?` cleanup of things i didn't want to mapload: `\/datum\/(.)*\/Initialize\(mapload`
39 lines
822 B
Plaintext
39 lines
822 B
Plaintext
// Honker
|
|
|
|
/obj/projectile/bullet/honker
|
|
name = "banana"
|
|
damage = 0
|
|
movement_type = FLYING
|
|
projectile_piercing = ALL
|
|
nodamage = TRUE
|
|
hitsound = 'sound/items/bikehorn.ogg'
|
|
icon = 'icons/obj/hydroponics/harvest.dmi'
|
|
icon_state = "banana"
|
|
range = 200
|
|
embedding = null
|
|
shrapnel_type = null
|
|
|
|
/obj/projectile/bullet/honker/Initialize(mapload)
|
|
. = ..()
|
|
SpinAnimation()
|
|
|
|
/obj/projectile/bullet/honker/on_hit(atom/target, blocked = FALSE)
|
|
. = ..()
|
|
var/mob/M = target
|
|
if(istype(M))
|
|
if(M.anti_magic_check())
|
|
return BULLET_ACT_BLOCK
|
|
else
|
|
M.slip(100, M.loc, GALOSHES_DONT_HELP|SLIDE, 0, FALSE)
|
|
|
|
// Mime
|
|
|
|
/obj/projectile/bullet/mime
|
|
damage = 40
|
|
|
|
/obj/projectile/bullet/mime/on_hit(atom/target, blocked = FALSE)
|
|
. = ..()
|
|
if(iscarbon(target))
|
|
var/mob/living/carbon/M = target
|
|
M.silent = max(M.silent, 10)
|