Page 2 of 2

Posted: Tue May 04, 2004 9:44 pm
by meowmix11
Heres my script for map mohdm1:

Code: Select all

// 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

thread spawncrate 

spawncrate: 

local.static = spawn script_model 
local.static model "static/indycrate.tik" 
local.static.origin = ( -591.85 -647.96 668.13 ) 
local.static.angles = ( 0 0 0 ) 
local.static solid 

end 


	$world farclipoverride -1

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
I hope this helps!

Wee! I got the last thing to work!

Posted: Tue May 04, 2004 9:59 pm
by meowmix11
I just put my map script file in .pk3 format and it worked! :oops: :D

Thanks for your help anyway,
meowmix11

Posted: Wed May 05, 2004 2:18 am
by bdbodger
ok the only thing is this part of your script
level waittill spawn

thread spawncrate // no end after this so the main thread just runs into the spawncrate thread if you want you can remove this and the spawncrate:

spawncrate:

local.static = spawn script_model
local.static model "static/indycrate.tik"
local.static.origin = ( -591.85 -647.96 668.13 )
local.static.angles = ( 0 0 0 )
local.static solid

end
// no thread name here and this part of the script not used because of the end above , this should go at the top in the main thread if you need it .

$world farclipoverride -1

end

Posted: Sat Jul 03, 2004 1:43 am
by Master-Of-Fungus-Foo-D
meowmix11 wrote:
blue60007 wrote:
meowmix11 wrote:
nope, still dosn't work :cry:
Let's try this:

Code: Select all



level waittill spawn 

thread spawncrate

spawncrate:

local.static = spawn script_model 
local.static model "static/indycrate.tik" 
local.static.origin = ( -591.85 -647.96 668.13 ) 
local.static.angles = ( 0 90 0 ) 
local.static solid 

end
Anyone for suggestions?

nope :shock:
crap! these quotes in quotes in quotes are getting HUGE!