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 ??
multiple scr for sp
Moderator: Moderators
-
agentmad007
- Brigadier General
- Posts: 570
- Joined: Tue Feb 24, 2004 3:52 pm
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:
You can set threads or spawn points that should be used , according to the gametype.
Hope this help
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
Deadly and slient.