Page 1 of 1

Spawns, grrr

Posted: Tue Dec 02, 2003 12:36 am
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.

info_player_intermission

Posted: Tue Dec 02, 2003 6:24 am
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.

Posted: Tue Dec 02, 2003 9:55 pm
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.

Posted: Tue Dec 02, 2003 9:57 pm
by omniscient
ok, i got the bsp in there, and i dont have overlapping spawns, still dont work, is there anything else?

Posted: Tue Dec 02, 2003 11:28 pm
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?

PK3

Posted: Wed Dec 03, 2003 12:45 am
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.

Posted: Wed Dec 03, 2003 1:06 am
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?

Dm

Posted: Wed Dec 03, 2003 2:34 am
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.

Posted: Wed Dec 03, 2003 3:19 am
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