Show spawn points....

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

Moderator: Moderators

Post Reply
User avatar
John Chambers
Lance Corporal
Posts: 14
Joined: Sat Jun 28, 2003 8:20 pm
Location: Buffalo, NY
Contact:

Show spawn points....

Post by John Chambers »

I am trying to make tactical overhead maps for my clan, and there are things I need to be able to do in order to accomplish this. First of all, my plan is to host a server, and take screenshots, and label them with a graphics program. I want to be able to view all the spawn points for the stock maps (and custom maps too) without going through hours of tedious trial and error. Is there a way through "developer mode" perhaps that I can do this? Also, is there a scale I can enable to show game units so I can measure distances?
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Well... I dont think there is a "mode" to display them...

But if there is a way to iterate over the spawns in the same way as you can iterate over the $player array, you should be able to script this:

Code: Select all

for( local.index = 1 ; local.index < $axis_spawn.size ; local.index++ ) {
	$axis_spawn[local.index] light 1.0 0.0 0.0 300
	$axis_spawn[local.index] lightOn
}

for( local.index = 1 ; local.index < $allies_spawn.size ; local.index++ ) {
	$allies_spawn[local.index] light 0.0 0.0 1.0 300
	$allies_spawn[local.index] lightOn
}
This will light up the axis spawns in red and allies in blue.

Not sure how you can get the spawn objects however... anyone else?
Admin .MAP Forums
Image
Head above heels.
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

well, 16 units is equal to a foot, you can draw a beam or "scale" there some kind of way...


as for bjarne's reply, you can't "return" the individual spawns unless they have a targetname (and most times they don't). the only one I can remember with SOME named spawns is in obj_team3 (whichever one is omaha).


heres one beam: (place under level waittill prespawn)

Code: Select all

level.scale = spawn func_beam
level.scale.origin = (x y z) //you're gonna replace this see below
local.marker = spawn script_origin //this will find north for us
local.marker.origin = level.scale.origin //put it in level.scale's shoes
local.marker movenorth 16 //move 1 foot north
level.scale.endpoint = local.marker.origin //the endpoint will be the marker
level.scale.maxoffset = 0
level.scale.color = (0 0 1) //blue, wohoo
level.scale forceactivate
for x y z, you'll have to run around in the map, whereever you want the beam to 'start', and type 'coord' in your console to get the x y z coordinates. whatever the 'z' coordinate is, you're best off adding 256 to that, just to make it above ground. :D the code i made will make a one foot long beam that starts whereever you designated it, and it will shoot a beam forward 'north' one foot. look on your compass for north.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Maby I'm beeing stoopid here... but what would U use that code for Alcoholic? How does it fit into John's question?
Admin .MAP Forums
Image
Head above heels.
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Re: Show spawn points....

Post by Alcoholic »

Well, John asked:
John Chambers wrote:I am trying to make tactical overhead maps for my clan, and there are things I need to be able to do in order to accomplish this. First of all, my plan is to host a server, and take screenshots, and label them with a graphics program. I want to be able to view all the spawn points for the stock maps (and custom maps too) without going through hours of tedious trial and error. Is there a way through "developer mode" perhaps that I can do this? Also, is there a scale I can enable to show game units so I can measure distances?
So, my code would make a beam in game just to show how long one foot is. I wouldn't exactly use it, I would decompile a map for distances. I didn't want to confuse him with decompiling and all that so I just showed how to make a 'scale'. However, If I did want to measure something in game, like the width of the trenches in obj_team3, I would put that code in, and probably multiply the number or something.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Ahhh... OK, now I see... I'm a bit slow sometimes :)

So, about the spawns... is there no way in a warm place to get the spawnpoints?
Admin .MAP Forums
Image
Head above heels.
User avatar
HappyChappy_7000
Warrant Officer
Posts: 146
Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:

Post by HappyChappy_7000 »

$spawnpoint show
would that work? :?
What? You know who I am?
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

If you have a decompiler maybe this might work . First to to the map you want to use and type coord to find where you are in the map . Take a screenshot . Next decomplie the map and take out all except the spawnpoints and maybe a landmark , put brushes where the spawnpoints are . Compile the map . Run the map and change your origin to the spot you took the first screenshot if you can and take a second screen shot . In your graphics program overlay the second screenshot on the first .
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

corona

Post by tltrude »

Bjarne BZR, it would be better to spawn a script_model corona rather than a light.
Tom Trude,

Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

bdbodger, thats no simple thing. You'll have to do ALOT of rebuilding just to get it to compile right... :roll:
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Re: corona

Post by Bjarne BZR »

tltrude wrote:Bjarne BZR, it would be better to spawn a script_model corona rather than a light.
Well... models are a bit unpredictable as to what distance they stop beeing rendered... And as he is intending to make overwiews of the maps: he will need to get way up to get the "big pivture", so I thought a light would bee safer... and dont forget: It looks cool :wink:
Admin .MAP Forums
Image
Head above heels.
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

I don't remember if this applys to script_models, but theres a class alwaysdraw out there somewhere...
User avatar
John Chambers
Lance Corporal
Posts: 14
Joined: Sat Jun 28, 2003 8:20 pm
Location: Buffalo, NY
Contact:

Post by John Chambers »

I will post some screenies of what I came up with in the next couple days, once I figure out how to get the file size down a bit. I ended up taking an easy route, and approximating and plotting the spawn points on an overhead screenshot, while looking at the decompiled bsp file. I dodged all that tedious scripting, but since I want a more exact finished version for my clan, I will be working on all those ideas eventually. Thanks for your help guys.
Image
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

Post by Yarik »

Your making things a little complicated.....

anyways to your question above... yes there is.. but You have to search for it in one of the developer menus....
The developers menu have everything from sun lights to built in wall hacks.
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
Post Reply