Map Mods in BT will not work.

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Map Mods in BT will not work.

Post 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.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Did you check for error messages in the console?
Image
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post 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.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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?
Image
Sgt.Pepper
Sergeant
Posts: 69
Joined: Tue Feb 25, 2003 5:41 pm
Location: Canada

Post 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.
Sgt.Pepper
Sergeant
Posts: 69
Joined: Tue Feb 25, 2003 5:41 pm
Location: Canada

Post 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"
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post 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!
Post Reply