Anyone knows where to find a "minefield tutorial"?
Lib
Moderator: Moderators
Code: Select all
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "The Crossroads"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm4"
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
level waittill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/door_locked.scr::lock
level.script = maps/dm/mohdm4.scr
exec global/ambient.scr mohdm4
thread global/minefield.scr::minefield_setup // <-- runs minefield script thread
level waittill spawn
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end
Code: Select all
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "The Crossroads"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm4"
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
level waittill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/door_locked.scr::lock
level.script = maps/dm/minefield.scr
exec global/ambient.scr mohdm4
thread global/minefield.scr::minefield_setup // <-- runs minefield script thread
level waittill spawn
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end yes..I forgot to mention that The .scr file should be placed in the same dir as the .bsp file. They?re both in the map/dm dirwacko wrote:You put ur script into "main/map/dm"? So u created an additional folder called "map"? Your bsp is main/maps/dm/minefield.bsp?
You should place both, minefield.bsp nd minefield.scr into main/maps/dm
i.e. Deathmatch. Giving a map some deathmatch-spawnpoints and putting it into maps/dm "makes" it a Deathmatch map. Starting it as Singleplayer wont execute this script. For this, u'd have to put the map and scr into main/maps and change the line in ur script:Liberator wrote:Uhm...DM mode?
Code: Select all
level.script = maps/minefield.scr