MantisBT - Zandronum
View Issue Details
0003487Zandronum[All Projects] Suggestionpublic2018-09-03 00:052018-09-06 03:02
Marcaek 
 
normalmajorN/A
newopen 
 
 
0003487: Alterations to respawn code prevention spawining in one place twice in a row.
Suggest a new svar which would allow random spawns in pvp but not have you spawn in the same location twice in a row. Is this feasible?
No tags attached.
Issue History
2018-09-03 00:05MarcaekNew Issue
2018-09-03 01:30EmZee712Note Added: 0019483
2018-09-06 02:35AlexMaxNote Added: 0019494
2018-09-06 03:02AlexMaxNote Edited: 0019494bug_revision_view_page.php?bugnote_id=19494#r11768

Notes
(0019483)
EmZee712   
2018-09-03 01:30   
If possible maybe an algorithm that tracks what spawn points the player respawns least at and gives a higher percentage chance to respawn at those locations
(0019494)
AlexMax   
2018-09-06 02:35   
(edited on: 2018-09-06 03:02)
I'm not sure I agree with the same spawn point being totally unavailable. I'm more of the mind that any spawn should technically be on the table at all times, even if the chance is quite low. And do we even want to prevent spawning at the same spot if you don't get spawnkilled?

Here's a simple idea for an algorithm. The game keeps track of the last time and location of your spawn. If you get killed within a certain amount of time....maybe 3 seconds or something...then if the game selects a respawn that happens to selects the same spot, the game just rolls again, and that time it's for keeps.

This in effect nearly halves the chance that you will respawn on the same spot.