obj/gun/verb
Get()
set src in oview(1)
src.Move(usr)
obj/bullet
icon = 'energyball.dmi'
density=1
var/owner
mob
proc/Shoot()
var/obj/bullet/E = new/obj/bullet(src.loc)
E.owner=src
while(E)
step(E,src.dir)
for(var/mob/M as mob)
Bump(M)
proc/Deathcheck()
if(src.hp<=0)
view() << "[usr] killed [src]!"
src.hp = src.maxhp
src.loc = locate (1,2,3)
var/hp = 10
var/maxhp = 10
verb/shoot()
for(var/mob/M as mob in oview(5))
if(!M)
return
else
usr.Shoot()
Problem description:
the code wont fire visible energyballs (bullets) at the enemy!
If the bullet is doing damage through a bump proc, then the visual problem means its in the icon
If so, make a new state, edit it and check the movement state box