rafalh / dashfaction

A community patch for the Red Faction (2001) FPS game
https://www.factionfiles.com/ff.php?action=file&id=6252
Mozilla Public License 2.0
61 stars 11 forks source link

Expose and expand respawn point selection logic options for dedicated server operators #284

Open GooberRF opened 1 month ago

GooberRF commented 1 month ago

This PR adds several options under the $DF Player Respawn Logic: "group" in dedicated_server.txt. These options on the whole provide server operators with a level of customizability of the respawn point selection logic that they've never had previously.

The default values shown below are functionally identical to the stock game behaviour, with the only notable caveat that the RNG method is std::mt19937 (typically more performant and has better results) as opposed to rand.

Default values:

$DF Player Respawn Logic:
+Respect Team Spawns: true
+Prefer Avoid Players: true
+Always Avoid Last: false
+Always Use Furthest: false
+Only Avoid Enemies: false
+Use Item As Spawn Point: "" 0    (no default value)

Explanation of options:

This PR also:

This PR revolves #56

GooberRF commented 1 month ago

I've significantly overhauled this PR. It now provides the ability to customize and modify the stock game spawn selection behaviour, which is a substantially better approach.

It also ups the limit of spawn points from 32 -> 2048.