ID:174329
 
Hiya!
I was wondering, is there anyway to make a moving object, have a density of 0, but still Bump into mobs? Or for it to have a Density of 1, but have it NOT Bump into turfs like Water (which also have density 1)?

~GokuSS4Neo~
Well, you would have to do a lot of proc overriding. You may have to make your own entire system for movement. For something to Bump() into something else, under the normal BYOND system, both things need to have a density of 1.
In response to Jon88
I found another way of doing it saving a lot of effort, but I want someone else's opinion on it. I simply put :

obj
kb
icon = 'skills.dmi'
icon_state = "ki"
layer = MOB_LAYER + 99
Bump(mob/M)
if(istype(M,/mob))
if(M.npp == 1||M.npc == 1)
else
M.powerlevel -= ((50 * usr.Str)/usr.Def)
else
step(src,src.dir)
del(src)


Now it comes up with errors if it hits turfs like :

    cloudtwo
icon = 'turfs.dmi'
icon_state = "cloud2"
density = 1
Enter()
return 0


But I don't have many of them so it's okay!

~GokuSS4Neo~