Thrown items can be targeted, has miss chance...

...based on distance, similar to projectiles.
This commit is contained in:
mwerezak
2014-07-15 01:14:04 -04:00
parent 836d2e40a8
commit f2845dbe76
21 changed files with 52 additions and 27 deletions

View File

@@ -303,9 +303,10 @@ var/global/list/PDA_Manifest = list()
throw_speed = 1
throw_range = 20
flags = FPRINT | TABLEPASS | CONDUCT
afterattack(atom/target as mob|obj|turf|area, mob/user as mob)
user.drop_item()
src.throw_at(target, throw_range, throw_speed)
src.throw_at(target, throw_range, throw_speed, user)
/obj/effect/stop
var/victim = null