Official-Outcast13 / Fallout-13

The codebase for the Outcast 13 server.
https://outcaststhirteen.wikia.com/wiki/Outcasts_Thirteen
GNU Affero General Public License v3.0
6 stars 15 forks source link

New Spawning system #38

Closed Sansaur closed 6 years ago

Sansaur commented 6 years ago

Right now the spawning system uses the code in

New() in landmarks.dm And AttemptLateSpawn(rank) to make the character spawn in on one of the latejoin places

We should try to make a "biased" latejoin spawn for faction members, by adding a "tag" system to the latejoin markers.

Either that or checking the area, I think maybe checking the area will be the quicker one, just making late join markers in each area for factions (I suppose factions have areas marked), and then when the character has to spawn, instead of picking one at random, it goes through the spawning markers and if it finds one that is in the area related to the faction (global assoc list? // new job variable for var/spawn_area ?), it picks that one.

Anyways, we should add more latejoin spawn markers too, but frankly, I don't know why some people get stuck in spawning just yet, since the code here clearly forces them to move