Removing spawn point from stock maps.

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
silversound
Second Lieutenant
Posts: 167
Joined: Wed Jun 18, 2003 6:33 am
Location: West Seattle, WA, USA, Earth, Milky Way

Removing spawn point from stock maps.

Post by silversound »

As a few of you may know I am a big Omaha fan. Like many, it was the map that sealed the deal with me for mohaa. I am like many though, stuck playing on several of the few Omaha only servers. Trouble is that they are usually so full of people that the hall becomes completely impassable. Part of this I believe is because of the many spawning points that are located inside the bunker, right next to the stairs. So as the map fills up with people, the stairs just get more and more chocked off.

Don't get me wrong, when the map has less people, I find it just fine. However after more than say 14 people, the map just becomes worthless, not to mention that everyone simply joins axis.

So I would like to know if there is a way to remove a few spawning points. Are there any tutorials out there that could lead me in the right direction?

My thoughts are to decompile it and find the locations of the spawning points I don't like. Then remove them from the original maps. I can't find anything that refers to entities so I take it that it is stored in the .bsp. I would imagine then (if you can even do this) what you need to do is script in something that counters each spawning point? Is it a func_remove of some sort?

None of this may even be possible, but any help you may have would be great. Complete noob. Sry
PM me your tips of the day.

Image
User avatar
silversound
Second Lieutenant
Posts: 167
Joined: Wed Jun 18, 2003 6:33 am
Location: West Seattle, WA, USA, Earth, Milky Way

Post by silversound »

after more and more searching I found some answers. I know this topic has been done to death and is below most of you experianced guy. sry I guess I am lucky that Omaha is the only map with targetnames. After looking at the decompile of omaha I know know that the target name i want to remove is "spawn_axis2". So if you know the way to do it let me know. I have read most all of the past topics that came up searching "spawn points" and i am getting closer.

Now I am off to read more. Post less
PM me your tips of the day.

Image
User avatar
silversound
Second Lieutenant
Posts: 167
Joined: Wed Jun 18, 2003 6:33 am
Location: West Seattle, WA, USA, Earth, Milky Way

Post by silversound »

could it be as simple as removing the

$spawn_axis2 enablespawn

from the Omaha Script?

shingle_right:

$bangalore_right playsound plantbomb1
$bangalore_right remove
$bangalore_nopulse_right show

wait 8

$bangalore_explosion_right1 anim start
$bangalore_explosion_right2 anim start
radiusdamage $bangalore_nopulse_right.origin 640 384
$bangalore_nopulse_right remove
$barbwire_clip_right remove
$barbwire_collision_right remove
$barbwire_right remove
$spawn_axis1 disablespawn
$spawn_axis2 enablespawn
$spawn_allied1 disablespawn
$spawn_allied3 enablespawn

end
PM me your tips of the day.

Image
User avatar
silversound
Second Lieutenant
Posts: 167
Joined: Wed Jun 18, 2003 6:33 am
Location: West Seattle, WA, USA, Earth, Milky Way

Post by silversound »

Nope! Maby if i just tell it to turn it off right after it is turned on? hmmm

Sorry about the thinking aloud post.
PM me your tips of the day.

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

hehe well... I didn't real all of your posts, but if the spawn position has a targetname you could simply type:

$targetnameofspawnpos remove

(below level waittill prespawn, or possibly below level waittill spawn)

If the spawn position doesn't have a targetname there's nothing you can do to remove it (except for hacking the bsp file, which requires a client download).
Image
User avatar
silversound
Second Lieutenant
Posts: 167
Joined: Wed Jun 18, 2003 6:33 am
Location: West Seattle, WA, USA, Earth, Milky Way

Post by silversound »

Thanks JV. Talking to myself was getting kinda creepy.

I only wonder what will happen when the script tries to call up the spawn_axis2 later in the script.
PM me your tips of the day.

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It will say:

'Cannot cast NULL to listener'

or something similar, maybe:

'Couldn't find an object with targetname 'spawn_axis2'. You are using a command that requires exactly one.'

It always suprises me what kind of creative error messages the game can think of :)
Image
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Post by smartaiguy »

jv_map wrote: It always suprises me what kind of creative error messages the game can think of :)
To true
Fallschirmjager in europe(FIE)! (Mapper/Webmaster)
.Map map reviewer
Look up in the sky! Its a bird its a plane, oh wait its a bird.:lol:
User avatar
silversound
Second Lieutenant
Posts: 167
Joined: Wed Jun 18, 2003 6:33 am
Location: West Seattle, WA, USA, Earth, Milky Way

Post by silversound »

Makes me think I should target all my spawn points on my own maps and then just dissable them in the script? Seems like a good idea. That way you give anyone down the road total control after the fact. I would imagine you could (if you wanted to spend the time) target every spawn point for your maps. Would this cause problems?
PM me your tips of the day.

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Nope just give all of them a targetname. A very noble undertaking :)
Image
User avatar
Gold
First Lieutenant
Posts: 176
Joined: Sun Sep 28, 2003 8:10 pm

Removing spawn point from stock maps

Post by Gold »

why not just use a hex editor to hex out the spawm points then add ya own spawn points such as...

//allied spawns
local.allied = spawn info_player_allied
local.allied.origin = ( 6571 -4366 -84)
local.allied.angle = 104

//axis spawns
local.axis = spawn info_player_axis
local.axis.origin = ( 6571 -4364 84)
local.axis.angle = 91

<<mohha freak:)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Because then you'd have to spread the modified bsp file I think.... people who don't have the right version of the map can still join though (since the filename is the same), which will probably lead to lots of artifacts.
Image
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Post by smartaiguy »

yes...but that really helps on finding the right targetnames and such
Fallschirmjager in europe(FIE)! (Mapper/Webmaster)
.Map map reviewer
Look up in the sky! Its a bird its a plane, oh wait its a bird.:lol:
User avatar
Gold
First Lieutenant
Posts: 176
Joined: Sun Sep 28, 2003 8:10 pm

Removing spawn point from stock maps

Post by Gold »

actually jv there would be no need to distrudute the edited bsp,,so no artifacts laying around,,also if he want to do it so no bsp download is required,,all he has to do is change those spawn points hes referring to ,,to something like swawn point or tpawn points,,well ya know what i mean lol,,,
Gold<mohha freak:)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Re: Removing spawn point from stock maps

Post by jv_map »

Gold wrote:actually jv there would be no need to distrudute the edited bsp,,so no artifacts laying around,,also if he want to do it so no bsp download is required,,all he has to do is change those spawn points hes referring to ,,to something like swawn point or tpawn points,,well ya know what i mean lol,,,
Gold<mohha freak:)
Are you sure this will work properly? i.e. did you test it?
Image
Post Reply