Mentrillum / Slender-Fortress-Modified-Versions

A modification of Team Fortress 2 based on the game Slender: The Eight Pages.
GNU General Public License v3.0
34 stars 23 forks source link

Add "teleport_allowed" keyvalue #71

Closed KitRifty closed 2 years ago

KitRifty commented 2 years ago

Some profiles are configured to prevent spawning in certain difficulties in a hacky manner, like so:

    "teleport_time_min" "9999.0"
    "teleport_time_min_hard" "6.0"
    "teleport_time_min_insane" "5.0"

    ...

    "teleport_range_min" "9999.9"
    "teleport_range_min_hard" "600.0"

    "teleport_range_max" "9999.9"
    "teleport_range_max_hard" "1500.0"

This PR introduces a cleaner implementation of the approach via the teleport_allowed keyvalue, which disables boss teleporting on certain difficulties. The default value of teleport_allowed is 1, and supports difficulty suffixes.