/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/modules/components/ai/human/throw_attack.dm
14 строк
395 B
DamianX
Ported component AI to the new component system (#30751)
22 сен 2021, 22:30
Не верифицирован
22 сен 2021, 22:30
4a5f2e4
Код
Авторство
О чём код?
/datum/component/ai/melee/throw_attack /datum/component/ai/melee/throw_attack/cmd_attack(atom/target) if(!isliving(target)) return 0 var/mob/living/M = parent if(!istype(M)) return 0 var/obj/item/I = M.get_active_hand() if(I && I.throwforce > I.force && get_dist(M,target) > 2) //Better to throw it at the fucker M.throw_mode_on() M.ClickOn(target) M.throw_mode_off() return 1