ID:157904
 
would removing the persons ability to see other mobs and making their icon invisible to other mobs be a good way to handle a singlep player mode on a game?

also how would you go about making the person see only non client mobs? turn off mob sight and add the npc's to client screen? what are your views.
Rapmaster wrote:
would removing the persons ability to see other mobs and making their icon invisible to other mobs be a good way to handle a singlep player mode on a game?

Probably not the best way to handle things unless you either go into some deep programming, otherwise you'll have for example; A player walks up to a boss and attempts to hit it, but suddenly the boss explodes in flames and is destroyed by another player.
In response to Maximus_Alex2003
true :( not realy worth the deep programing either so meh
In response to Rapmaster
You could use
http://developer.byond.com/hub/IainPeregrine/dmp_writer
and
http://developer.byond.com/hub/IainPeregrine/dmp_reader
on new() to save and load a temp map. Basically just have them start at loc(X,Y,1) and have it save then load a map with
mob/player
New()
src.loc = loc(STARTX,STARTY,1)
mapsave()
sleep(5)
mapload()
mob/player/proc/mapsave()
var/map_name = "temp"
var/dmp_writer/D = new()
var/turf/south_west_deep = locate(1,1,src.z)
var/turf/north_east_shallow = locate(world.maxx,world.maxy,src.z)
D.save_map(south_west_deep, north_east_shallow, map_name, flags = DMP_IGNORE_PLAYERS)
mob/player/proc/mapload()
var/file_name = "temp.dmp"
var/new_maxz = world.maxz + 1
var/dmp_reader/new_reader = new()
new_reader.load_map(file_name)
src.z = new_maxz

Keeping in mind this will make a new z level with a copy of the zlevel 1 each time a player is made.
In response to Chrismonster555
would lummox swapmaps be more efficient for this type of thing?