Page 1 of 1

Mg42 error.

Posted: Sun Apr 26, 2009 8:49 pm
by computernerd
I modified the mohdm1 script so that I could have an mg42 in there, but nothing shows up:
// SOUTHERN FRANCE
// ARCHITECTURE: SENN
// SCRIPTING: POWZER

main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "Southern France"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "mohdm1"

// 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.script = maps/dm/mohdm1.scr
exec global/ambient.scr mohdm1

//exec global/ambient.scr mohdm2

//$world farplane 5000
//$world farplane_color (.333 .333 .329)

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

//-----------------------------------------------------------------------------

onlymg42:

local.static = spawn "statweapons/mg42_gun.tik"
local.static.origin = ( 185 473 384 )
local.static.angles = ( 0 0 0)
local.static solid
end
//-----------------------------------------------------------------------------

Posted: Sun Apr 26, 2009 9:22 pm
by neillomax
try putting it under level wait til spawn.

Posted: Sun Apr 26, 2009 9:42 pm
by $oldier Of Ra
Well of course, you didn't activate the thread.
Add:

Code: Select all

thread onlymg42
underneath waittill spawn.

Posted: Mon Apr 27, 2009 3:54 pm
by computernerd
Nope still doesn't work :(

Posted: Mon Apr 27, 2009 3:55 pm
by $oldier Of Ra
Where did you put the modified script?

Posted: Mon Apr 27, 2009 3:59 pm
by computernerd
in the pk3 file the path is as follows: maps/DM/mohdm1.scr

Posted: Mon Apr 27, 2009 4:08 pm
by $oldier Of Ra
What's that pk3's filename? It must be higher in the alphabet than "p" if you want it to be loaded instead of the original one.

Posted: Mon Apr 27, 2009 4:19 pm
by computernerd
Oh.... ya know what I completely forgot about that.

EDIT: Thanks lots m8 it works great now, thanks for reminding me about the alphabetical order I completely forgot about that. :)