Phil25 / RTD

Roll The Dice SourceMod plugin for Team Fortress 2
GNU General Public License v3.0
56 stars 20 forks source link

Add concept of "entity cost" to perks #81

Open Phil25 opened 9 months ago

Phil25 commented 9 months ago

Add a field to perk config indicating how costly every perk can be on the entity count.

Suggestion 1

Perks will have a new field called entity_cost which tells RTD roughly how many perk-spawned entities are possible to exist at one time. It can be written in the form of a formula which includes perk settings as variables. For example:

Suggestion 2

Perks will have a new field called cost which specifies the name of the function that RTD can call in order to retrieve the entity cost of a perk. The function will accept the Perk instance from which it can read its variables.

Use case

If anyone is crazy enough to run RTD on a 60 or 100 player servers, there can be a ConVar sm_rtd2_entity_cost_limit (default 99) which will disable every perk beyond the specified limit. Setting this ConVar will show exactly which perks were disabled including their cost.

Implementation notes