If your map's script is working, you should hear background sounds.
exec global/ambient.scr mohdm4 //<-- ambient sound
You should probably choose a different name for your map and script because the game already has a "minefield.scr" in the global folder.
maps/dm/my_minefield.bsp
maps/dm/my_minefield.scr
minefield tutorial?
Moderator: Moderators
Re: sound
Good idea in general to avoid confusion, but it's workin anywaytltrude wrote:You should probably choose a different name for your map and script because the game already has a "minefield.scr" in the global folder.
Yes your minefield worked exellent!wacko wrote:Errr, so?
U did put bsp and scr into maps/dm?
U did launch ur map as a deathmatch map?
Your minefield didn't work?
U did copy ma pk3 into mohaa/main?
U did launch my map minefield?
My minefield did work?
You did take a look into my map file?
You did compare the both trigger_multiples?
...
Yes I did put both files in maps/dm
Yes I launched it in deathmach.
I took your scr file and used it instead.
I changed this line:
Code: Select all
level.script = maps/dm/Smallhills_minefield.scr Classname trigger_multiple
cnt 5
targetname minefield
I'm already using a scr file, just called OBC_SmallHills.scr for the fog.
It says :
Code: Select all
// Small Hills
// ARCHITECTURE: Liberator
// SCRIPTING: Nemesis
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "DIE"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
$world farplane_color "0.309804 0.313726 0.341176"
level.fogplane = 2000
$world farplane level.fogplane
level.script = maps/dm/OBC_SmallHills.scr
level waittill spawn
endI'd changed the name on the script from minefield to Smallhills_minefield. It didn't help
Lib[/code]
I liberate stuff...the danish way..
script
You can only have one level script for your map and it has to be named the same as your .bsp map name.
"Smallhills_minefield.scr" will not load if your map is named "OBC_SmallHills.bsp". So, my recommendation is to combine the two scripts into one named "OBC_SmallHills.scr". You can easily add the fog lines to the other script, or just add the minefield_setup line to the one you posted above.
"Smallhills_minefield.scr" will not load if your map is named "OBC_SmallHills.bsp". So, my recommendation is to combine the two scripts into one named "OBC_SmallHills.scr". You can easily add the fog lines to the other script, or just add the minefield_setup line to the one you posted above.
YES im dying when stepping into the trigger!
...but second time I dont. The sound of triggering a mine is just continuing where ever I go in the map without exploding....that is even if I close the game and return, it doesn't blow me up....it just making the sound, continously:?
Lib
Lib
I liberate stuff...the danish way..
Is this the right way to do it?
Code: Select all
// Small Hills
// ARCHITECTURE: Liberator
// SCRIPTING: Nemesis
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "DIE"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
$world farplane_color "0.309804 0.313726 0.341176"
level.fogplane = 2000
$world farplane level.fogplane
level.script = maps/dm/OBC_SmallHills.scr
thread global/minefield.scr::minefield_setup // <-- runs minefield script thread
level waittill spawn
endI liberate stuff...the danish way..
