Page 1 of 1

multiple scr for sp

Posted: Thu Apr 28, 2005 5:27 pm
by ViPER
Is there a way to set up multiple scr for running the same single player map with different conversion scripts?

i.e.

1. map/m2l2

2. map/obj/m2l2

3. map/dm/m2l2

is it possible to run a bsp in maps with a scr from a diff folder??

if so how would it be scripted and where ??

Posted: Thu Apr 28, 2005 9:02 pm
by agentmad007
You can use a multiplayer script for FFA TDM DM or OBJ type.But i am not sure that you can use the same script for Single player and Multiplayer .

So here is the way i know for Multiplayer maps:


Code: Select all


main:
exec global/DMprecache.scr
level.script = maps/dm/my_map_name.scr
exec global/ambient.scr 

level.gametype=getcvar g_gametype

if (level.gametype == "1") //FFA
	{ 

Do your stuff here (remove or add things for instance)
	}
if (level.gametype == "2")//TDM
	{ 
Do your stuff here (remove or add things for instance)
	}
if (level.gametype == "4")//OBJ
	{ 
Do your stuff here (remove or add things for instance)
	}
if (level.gametype == "5")//TOW
	{ 
Do your stuff here (remove or add things for instance)
	}
if (level.gametype == "6")//LIB
	{ 
Do your stuff here (remove or add things for instance)
	}



You can set threads or spawn points that should be used , according to the gametype.

Hope this help

Posted: Thu Apr 28, 2005 9:20 pm
by ViPER
cool thanks