ID:144160
 
Code:
obj/Bullet
icon='ammo.dmi'
icon_state="Bullet"
Bump(A)
if(ismob(A))
var/mob/M=A
M.health-=rand(20,30)
M.HPRefresh()
if(M.health<=0)
M.Death(usr)
if(istype(A,/turf/))
var/turf/T = A
if(T.density)
del(src)

if(istype(A,/obj/))
var/obj/B = A
if(B.density)
del(src)


Problem description:

What's wrong with this code, the bullets go though the person or dense item
You should probably read your code again, and for future reference do that too. The bullet is not dense, so it obviously can't bump into anything >_>
You forgot to make the bullets dense :P
density=1
In response to Speedro
what do I put in the M.Death(here!!!!)
In response to Poal
right under the part where you drain the players health >_> Did you even program that?
In response to Speedro
Speedro wrote:
right under the part where you drain the players health >_> Did you even program that?
I mean What do I put IN M.Death(HERE)
In response to Poal
Oh >_> obviuosly the argument your passing back as the one taking the damage - M


_<
In response to Speedro
you put whoever that proc is going to have effect on so in this case as Speedro said M
In response to Speedro
Speedro wrote:
Did you even program that?

He obviously didn't. :\