Spawns, grrr

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Spawns, grrr

Post by omniscient »

Alright i made an objective map, its all nice and dandy, with the exception of the telefragging. i have 16 info_player_axis, and 16 infpo_player_allies. I have 1 info_player_start, and one info_player_intermission. i compile it, no errors, but whne i play wiht a friend we telefrag eachother, anyone know how to fix this? thanks.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

info_player_intermission

Post by tltrude »

"info_player_intermission" is not really needed. I think it is used with a "info_null" target so players look at that while the game restarts.

Make sure you don't have two spawn points in one spot.
Tom Trude,

Image
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Post by crunch »

Make sure your .bsp is in the main/maps/obj folder....else you will spawn at the player_start instead of the Allied/Axis spawnpoints.

Kill Ya Later.
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

ok, i got the bsp in there, and i dont have overlapping spawns, still dont work, is there anything else?
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

um, also, ive seen maps given out as pk3s and the spawns still work, though the bsp is in a pk3. is there something i have to do when compiling aswell? is there soemthing i need in the script?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

PK3

Post by tltrude »

A pk3 is just a compressed version of the main folder. Inside one there will be a maps/dm or maps/obj folder with the bsp and script in it. While deathmatch maps can work without a script, objective maps must have one because they need variables set for the bombs or other objectives.

In other words, just putting the bsp in the maps/obj folder does not make it an objective game--it needs a script.
Tom Trude,

Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

well, what do i put in as a script to make it an obj. basically this is a map with no objective to it. the only reason i made it an obj is because i dont want it to respawn. is there like a basic script with nothing programmed in it that i could use to make it spawn right?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Dm

Post by tltrude »

If it has no objectives, then put it in the main/maps/dm folder--create a dm folder if there is none. Ok, now copy the script below to Notepad and name it the same as your bsp file (with extention .scr). Then place that file in main/maps/dm as well.

Note: your firend will have to put the same two files in main/maps/dm.

Code: Select all

main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "test map"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" ""

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

	exec global/door_locked.scr::lock
//	level.script = maps/dm/mohdm2.scr
	exec global/ambient.scr mohdm1
	
	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
If you don't want respawning, play it as a round based game.
Tom Trude,

Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

thanks for that, but i want it to be hosted as an objective, so i thought i just wuldnt put one hehe. if i include that script, will i be able to host it as a obj, with working spawns, and just have the objective be last team standing? hehe
Post Reply