Guys, it looks like he is new to the ground and we should avoid charging him with partial scripting codes
Originally Posted by
<T|F|B>The Beaver
I haven’t been using any script at the moment. One of my friends mentioned something about a map .scr file but I don’t know what I would need to change in it to make weather. Would it be the lines you listed above? If so where would I put them. Would I also have to do anything In radiant still? Sorry for all these questions I’m just really lost here.
You have to create a file having the same name as your map, ending with the .scr extension (i.e: "mohdm5.scr"), then copy the code below and paste it inside your newly created file :
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Map name"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
// 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
level waittill spawn
// Rain setup
level.rain_speed = "32"
level.rain_speed_vary = "16"
level.rain_length = "2"
level.rain_width = "1"
level.rain_density = ".2"
level.rain_slant = "250"
level.rain_min_dist = "1800"
level.rain_numshaders = 12
level.rain_shader = "textures/snow0"
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
The rain code is self-explanatory. For tutorials about scripting, I don't have any links in hand but others could give one or more to you