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

Allow server operators to exempt some weapons from weapon stay #278

Open GooberRF opened 2 months ago

GooberRF commented 2 months ago

PR adds the $DF Weapon Stay Exemptions dedicated server config option, and resolves #65

This is something that has been asked for a lot by players over the past few years, particularly for the Rail Driver. The ability to treat the Rail Driver as a superweapon like the fusion, which is exempt from weapon stay by default, in theory might actually make the Rail Driver practical in a competitive setting.

I considered implementing this as simply a $DF Rail Driver Is Superweapon toggle, but given how relatively straightforward it was to also support the other weapons, I erred on the side of providing more (completely optional) gameplay customization opportunities to server operators, and expanded the capability to the other weapons.

is-this-c commented 1 month ago

Nitpick. But I think exclude or exclusions is better.

Edit: I have looked at the code and all I can say is (beside a C style array I did see) I am not sure whether your code is the right way but I really do not like the way you have done it. Really like to know what rafalh thinsk.