/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/modules/projectiles/projectile/animate.dm
18 строк
682 B
D3athrow
Pomf do a code, fix projectiles hitting windows when they should hit something else instead
03 июл 2017, 09:16
03 июл 2017, 09:16
51df013
Код
Авторство
О чём код?
/obj/item/projectile/animate name = "bolt of animation" icon_state = "ice_1" damage = 0 damage_type = BURN nodamage = 1 flag = "energy" /obj/item/projectile/animate/to_bump(var/atom/change) if(istype(change, /obj/item) || istype(change, /obj/structure) && !is_type_in_list(change, protected_objects)) change.animationBolt(firer) else if(istype(change, /mob/living/simple_animal/hostile/mimic/copy)) var/mob/living/simple_animal/hostile/mimic/copy/targeted = change targeted.ChangeOwner(firer) else if(istype(change, /mob/living/simple_animal/hostile/mannequin)) var/mob/living/simple_animal/hostile/mannequin/targeted = change targeted.ChangeOwner(firer) ..()