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
60 stars 11 forks source link

DF server variable to exclude specific weapons from staying when weapon stay is enabled #65

Open nickalreadyinuse opened 3 years ago

nickalreadyinuse commented 3 years ago

Some kind of DF setting or mask to exclude specific weapons from staying, e.g.

$DF WSExclude "Rail Driver, C4, Grenades, Rocket Launcher"

GooberRF commented 1 month ago

To build on this suggestion, which I really do think would be an incredible feature for server operators to have...

Specifying it by item name would make the most sense, since the item is ultimately what would be affected. For flexibility, I'd suggest something like this (similar to $DF Item Replacement)

$DF Item Is Powerup: "rail gun" true

This line would make the rail gun pickup unaffected by weapon stay (ie. treated as a powerup). The game already does this for the fusion by default.

Implementing it in this way, though, would also allow server operators the ability to do the opposite if they choose - ie. make an item that normally wouldn't be affected by weapon stay, instead affected by weapon stay.

$DF Item Is Powerup: "shoulder cannon" false

This line would make the fusion behave like all other weapon pickups even when weapon stay is on.