obj
density = 1
icon = 'objs.dmi'
icon_state = "bullet"
Bullet
Bump(mob/M)
if(ismob(M))
M.HP -= 10
M.DeathCheck(M)
del(src)
mob
verb
Fire()
set hidden = 1
if(src.fired == 1)
src << "You already fired WAIT!!!."
return
if(src.Ammo <= 0)
src << "Not enough Ammo to fire."
return
src.Ammo -= 1
src.fired = 1
flick("fire",src)
var/obj/A = new /obj/Bullet (src.loc)
A.dir = src.dir
walk(A,A.dir,1)
sleep(10)
src.fired = 0
del(A)
if i set bullet to density = 0 so i can go over water it don't hit who you shoot.How can i make it density = 0 and it still his a usr if it hits them>?
<code>turf/water density=0 Enter(atom/movable/A) if (istype(A,/mob)) return 0 //Don't allow mobs through else return ..() //Do allow other stuff through</code>