howto get more random spawning


(the_hat) #1

i noticed for both teams it allways picks the first team_CTF_redspawn or team_CTF_bluespawn in my uncompiled map file if there’s no one standing in that spot. how could i make this more random?


(Fusen) #2

someone else wanted this in there deathmatch map maybe searching will get ya some more info


HONDA FCX CLARITY


(Deprave) #3

If you add more spawns it does not always pick the first one…im pretty sure it doesnt just pick the first one even when your playing by yourself


(Rain) #4

SelectRandomTeamSpawnPoint is responsible for picking the spawn point (based on the currently selected spawn location.) It’s not really random in ET–it finds a list of spawn points that won’t place you inside of another player, and then it uses the spawn point that gets you closest to your selected spawn point. You could add some randomization there, but you’d have to be careful about doing it if you wanted spawnpoint selection to work.


(jamez) #5

ok, i did this, u want it to telefrag people?

search in the source code for the code for selecteamspawnpoint i think it was (it has the exact function in g_spawn)

anyway it searchs for all possible spawn points, then checks which ones have somoene blocking them then it does it on the closest to random, shoul;d take a small amount of deleting to get what u want