View Single Post
Author Message
StrikeR14
AlliedModders Donor
Join Date: Apr 2016
Location: Behind my PC
Old 09-08-2020 , 10:36   [TF2] HungerGames - Kill the President
Reply With Quote #1

[TF2] HungerGames - Kill the President


Description:

This plugin allows the administrators to 'break' the daily routine gamemod by running this minigame.
When enabling the minigame, 1 random player from each team becomes the president. He gains thousands of health points (depends on the amount of players in the opposite team) but can only play with his melee weapon, any other players will be regenerated every 30 seconds by default. The objective is to kill the competing president by any means necessary. Switching teams ability is blocked during the minigame.

NOTES: Backstab damage equals to 1/3 of the president's current health. This part of code was taken from the official FF2.
I recommend running this plugin only in an official gamemod server.

ConVars:
  • sm_hg_waittime - Amount of seconds to settle down before the minigame starts. (default: 5)
  • sm_hg_supplytime - Normal player will receive ammo every X seconds. (default: 30)
  • sm_hg_presidenthp - President's HP multiplier (X * amount of players in the opposite team). (default: 1000)

Commands:
  • sm_president - Command for admins to enable/disable the minigame (default flag: CHEATS).

Installation:
  1. Make sure you have MoreColors.inc installed on your server.
  2. Place the .smx file in addons/sourcemod/plugins
  3. Reload the map and enjoy!

Changelog:

Code:
1.0 - Initial Release
Attached Files
File Type: sp Get Plugin or Get Source (HungerGames.sp - 126 views - 12.2 KB)
File Type: smx HungerGames.smx (19.6 KB, 199 views)
__________________
Currently taking TF2/CSGO paid private requests!

My Plugins | My Discord Account
StrikeR14 is offline