ID:152940   Jul 1 2005, 6:39 am Problem description: Im making a maze type game, but players have to have density otherwise they can walk through walls, how am I to fix this?
 Jul 1 2005, 6:42 am mob player icon = 'player.dmi' density=1 that's like the first thing you learn in the DM guide
 Jul 1 2005, 6:45 am In response to Popisfizzy then players blocxk other players, i need something that will let them walk through each other, but not the walls....
 Jul 1 2005, 6:48 am In response to Derekjeterisgod just make the spaces in between the mazes two wide instead of one
 Jul 1 2005, 6:51 am In response to Popisfizzy Popisfizzy wrote: just make the spaces in between the mazes two wide instead of one I know theres a way to have a player density of 0 and a wall density of 1... Like in DWMA2 they have a player density of 0, but there is a wall density too
 Jul 1 2005, 6:53 am In response to Derekjeterisgod ```mob/Move() if(var/mob/M in get_step(src,src.dir)) src.loc=locate(M)//Moves it on top of M else ..() ``` *** Untested ***
 Jul 1 2005, 6:59 am In response to Flame Sage pdensity.dm:2:error:var/mob/M:undefined var pdensity.dm:3:error:M:undefined var pdensity.dm:3:error:locate:undefined proc pdensity.dm:4:error:else :'else' clause without preceding 'if' statement pdensity.dm:4:error::missing expression i dont know what id need to plug in to fix that
 Jul 1 2005, 7:00 am In response to Derekjeterisgod You copied and pasted it, tsk tsk tsk; thats veery bad =P. Anyway just retab it, here on the forums its all done with spaces. O-matic
 Jul 1 2005, 7:04 am In response to O-matic well now i got 2 errors... pdensity.dm:2:error:var/mob/M:undefined var pdensity.dm:3:error:M:undefined var
 Jul 1 2005, 7:06 am In response to Derekjeterisgod Hmm change it to for() Also, put a return at the end, indented, so that it does not contiouslly warp you. Note: This is just a patch job, this probablly isn't the best way to do it, but it works.
 Jul 1 2005, 7:09 am In response to Flame Sage lol, players cannot move now
 Jul 1 2005, 7:11 am In response to Derekjeterisgod Code: ```mob/Move() for(var/mob/M in get_step(src,src.dir)) src.loc=locate(M)//Moves it on top of M return ``` Problem description: is what i was suppose to edit to?
 Jul 1 2005, 7:21 am In response to Derekjeterisgod mob/Move() for(var/mob/M in get_step(src,src.dir)) src.loc=locate(M)//Moves it on top of M return ..()
 Jul 1 2005, 7:21 am In response to Derekjeterisgod well, i gtg ill check back later SOMEONE HELP!
 Jul 1 2005, 7:21 am In response to Flame Sage k ill try that
 Jul 1 2005, 7:24 am In response to Derekjeterisgod i think i can edit that in, just add density to player so they will use the walk through, but i gtg ill let you know if it works
 Jul 2 2005, 2:30 am In response to Derekjeterisgod my god -_- MOBS HAVE AUTO DENSTY 1!!
 Jul 2 2005, 3:26 am In response to Mega Zero x wouldnt it be easier to make your walls use Enter()? ```mob player density = 0turf wall Enter(mob/M) if(istype(M,/mob/player/)) return 0 ```
 Jul 2 2005, 5:13 am In response to Farkas ```mob/Bump(mob/M) if(M.client && src.client) src.loc=M.loc ..() ``` try that
 Jul 2 2005, 11:57 am In response to Dark Weasel I think 2/10 people got what Derekjeterisgood tried to say. He wants players be able to walk through players but not through walls. And that you would use: ```mob/player{density=0}turf/wall Enter(mob/player/M) if(istype(M,/mob/player))return 0 else{..()} ```
Page: 1 2