mob
proc
Fire()
if(!src.equip||src.fired||src.reloading)return
var/obj/Guns/G=src.weapon
if(G.ACapacity<=0)
if(src.LocateAmmo()){src.reloading=1;src.Reload()}
else src<<"You need more ammo"
return
src.fired=1
var/damage = round(rand(G.Fire_Power/2,G.Fire_Power))
spawn(G.Firerate)if(src)src.fired=0
G.ACapacity--
G.suffix="[G.ACapacity]/[G.MACapacity]"
var/atom/movable/T = null
for(var/atom/movable/a in view(src))
if(!a||!a.density)continue
T = a
break
if(T)
src.dir = get_dir(src,T)
if(istype(T,/mob/AI))
s_damage(T,damage,"red")
T.Health -= damage
T.Death()
Problem description:
I got two errors.
Auto aim.dm:25:error:T.Health:undefined var
Auto aim.dm:26:error:T.Death:undefined proc
Also, if this get fixed, ill let you know if the shooting not works.
It also helps to point out the lines the errors are pointing to. Just double click them in DM and it will select that line.