Gift Hunt

From Fortress Blast
Revision as of 11:17, 20 January 2020 by Naleksuh (talk | contribs)
Jump to navigationJump to search
This article is a stub, meaning that it is incomplete. There may be an issue with the described feature preventing the article from being finished.
Notes: Timers are not removed by Gift Hunt, game mode support therefore cannot be accurately defined.

Gift Hunt is an optional miniature game mode included in Fortress Blast, inspired by Gem Hunt and Gem Collection from Marble blast gold icon.png PlatinumQuest. It was introduced in version 2.0 of the plugin, but was updated in version 3.0 to improve map support. Gift Hunt is only available on maps that have an associated .json file in the folder tf/scripts/fortressblast/gift_spots.

In Gift Hunt, small gifts appear randomly around a map. The mission of each team is to collect a certain number of gifts, which allows capture of all objectives on the map. Above gifts are sprites that can be seen through some walls, allowing gifts to be found quicker. The number of gifts required to unlock the objective can vary between servers and player counts. If all the gifts on the map have been collected, more will appear.

The following map game modes are natively supported by Gift Hunt:

  • Capture the Flag: Enemy intelligence appears transparent and cannot be picked up unless the gift goal is met.
  • Control Points: Control points cannot be captured unless the gift goal is met, but can be blocked.
  • King of the Hill: Same as Control Points.
  • Payload Race: Payload carts cannot be pushed unless the gift goal is met, but can be blocked.

Developer information

You can enable or disable the game mode with the sm_fortressblast_gifthunt ConVar. Like powerups, gifts in Gift Hunt are also tf_halloween_pickup entities, however they have a plugin-given ID of 0. Using the command sm_setpowerup @me 0 will only remove any equipped powerup and does not increment the collected gifts counter.

The number of gifts required is controlled by four ConVars: sm_fortressblast_gifthunt_goal which contains the base value, sm_fortressblast_gifthunt_players which specifies when the goal should increase, sm_fortressblast_gifthunt_increment which specifies how much it should increase by, and sm_fortressblast_gifthunt_countbots which includes or excludes bots from this calculation. Another ConVar is used for determining how many gifts should be dropped each spawn event, namely sm_fortressblast_gifthunt_rate.