register temp spawnpoint


(LION) #1

Hey guys

is it possible to create a temporary spawnpoint?

it should behave like the command post spawn.

How could this be done?


(dutchmeat) #2

Preset, configurable, or using a command to set the current position as a spawnpoint?


(LION) #3

i think thru a command would be greate and easy


(dutchmeat) #4

Is this for one team or both? explain your idea a little bit more.


(LION) #5

i want to give the fireteam members the possibility to spawn on their leaders position. to keep it pretty easy, i thought why not use the bsp parse function
to register a new spawnpoint but i couldnt find out where this function is.
i also know that there is already a list of current spawn locations
“cg.spawnCount”


(dutchmeat) #6

but we actually want to force them to spawn at that location, so we don’t need to replace/change the spawnpoint list, but ignore it and use our own location.
you should be able to do that with ‘client_spawn’ in g_client.c


(LION) #7

thats the point… i dont want to force them to spawn there, just give em the possibility to choose the ftleader via limbomenu as a spawnpoint…


(dutchmeat) #8

Well then, do you know how to change the UI?


(LION) #9

depends on what you mean by changing the ui…
i thought it could be done pretty easily by altering the SpawnPointClick function in limbopanel.c


(kamikazee) #10

I think he meant that you would want to display the fireteam leader on the command map in a different way so it would be clear that you can “select” him as a spawnpoint.

Or if you want to stick closer to the W:ET feel, (I guess this is a Battlefield feature which could mess up W:ET’s gameplay) you could also draw some extra icon on top of the regular spawn icons to show your fireteam leader selected that spot as his spawnpoint.


(dutchmeat) #11

both things are doable, but it’s his choise.


(murka) #12

OMG Battelfield:Enemy Territory, we are doomed.


(LION) #13

hehe jap bf:et :slight_smile:

ergm btw i did it client/serverside
when the ft-leader is selected in limbomenu, send a command to server
and he is doin the rest in the g_client::spawn function,
eg like checking if ft-leader is alive and that we are on a fireteam…
thanx for the hints guys!


(Ryan) #14

I have a mod on my server called Realistic War.

In which you can throw a aircan as a field ops, and a parachute with ammo comes down.

After the ammo crate has been dropped by the parachute, you can go in limbo and select the new created spawn, a parachute icon is placed on the map.

This works everywhere, so the spawn is temporary.

(It can be be destroyed by a covert ops)

If anyone knows RW_Tiger, please let me know