Page 1 of 1

Map Mods in BT will not work.

Posted: Sat Oct 04, 2003 12:56 pm
by MPowell1944
I have been trying to make a few map mods for some of the maps in Breakthrough, but no matter how I do it, they never spawn anything. I even copied and pasted from other map mods as a last resort, and nothing spawns. It is as if it isn't allowed anymore. Anyone have a shot at this and have this problem? If you have managed to get things to spawn, lemme know how you did it. Thanks.

Posted: Sat Oct 04, 2003 2:46 pm
by jv_map
Did you check for error messages in the console?

Posted: Sat Oct 04, 2003 4:04 pm
by MPowell1944
Yeah, and I simply didn't get any. I could tell it wasn't working because the map ambience wouldn't play. But I checked it against some other map mods, and it was down to a T. It just wouldn't work.

Posted: Sat Oct 04, 2003 4:08 pm
by jv_map
BT doesn't give any useful error messages when the script doesn't compile properly? :shock: You were running it in developer mode, right?

Posted: Sat Oct 04, 2003 4:47 pm
by Sgt.Pepper
Ok, I spawned some wire into one map, out of place because it's just a test. You can see it there in the air.

Image

I just copied from another mod and added it under the scoreboard text area of the script. It's the Montecassino map.

Code: Select all

// Wire
	local.wire = spawn script_model
	local.wire model "static/barbwire_long_two_post.tik"
	local.wire.origin = ( 58.00 -1643.00 200.00 )
	local.wire.angles = (0 0 0)
	local.wire.scale = 1
	local.wire solid
Still working on the spawns, though.

Posted: Sat Oct 04, 2003 5:14 pm
by Sgt.Pepper
Got the spawns to work, at least I think I did. The points I added where all high off the ground, and I don't think any of the original spawns would be. Here's the script I used for the wire and the spawns. I just copy the relevant parts and some of the original stuff for refernce.
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Monte Cassino"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
}

local.axis = spawn info_player_axis
local.axis.origin = ( 56.00 -1196.00 451.00 )
local.axis.angle = 0

local.axis = spawn info_player_axis
local.axis.origin = ( 81.00 -1725.00 451.00 )
local.axis.angle = 0

local.axis = spawn info_player_axis
local.axis.origin = ( 27.00 -583.00 451.00 )
local.axis.angle = 0

local.axis = spawn info_player_axis
local.axis.origin = ( 58.00 -1643.00 451.00 )
local.axis.angle = 0

// Wire
local.wire = spawn script_model
local.wire model "static/barbwire_long_two_post.tik"
local.wire.origin = ( 58.00 -1643.00 200.00 )
local.wire.angles = (0 0 0)
local.wire.scale = 1
local.wire solid

//////////////////////////
level waittill prespawn
//////////////////////////

// no network optimizations to reduce popping
setcvar "g_netoptimize" "0"

Posted: Sat Oct 04, 2003 6:44 pm
by MPowell1944
Aha! That is my problem. lol. I added the script below Level Waittill Spawn. I'll add it like you did. Thanks a bunch!