View Single Post
Author Message
naris
AlliedModders Donor
Join Date: Dec 2006
Old 07-16-2008 , 17:02   TF2 Medic Uber Charger
Reply With Quote #1

Continuously recharges the Medic's Medigun while he is holding his medigun. While it is auto-charging, the medic will also beacon.

There is also a native interface, so other plugins can invoke it's functionality and enable/disable it for individual players.

The ubercharger.inc file is ONLY need to compile other plugins that wish to call it.

Code:
// Enable/Disable ubercharger
// -
// Default: "1"
sm_ubercharger "1"

// Enable/Disable ubercharger beacon
// -
// Default: "1"
sm_ubercharger_beacon "1"

// Sets the radius for medic enhancer beacon's light rings.
// -
// Default: "375"
// Minimum: "50.000000"
// Maximum: "1500.000000"
sm_ubercharger_beacon_radius "375"

// Sets the time interval of beacons for ubercharger
// -
// Default: "3.0"
sm_ubercharger_beacon_timer "3.0"

// Sets the amount of uber charge to add time for ubercharger.
// -
// Default: "3"
sm_ubercharger_charge_amount "3"

// Sets the time interval for ubercharger.
// -
// Default: "3.0"
sm_ubercharger_charge_timer "3.0"

// Enable/Disable ubercharger ping
// -
// Default: "1"
sm_ubercharger_ping "1"

// Sets the time interval of pings for ubercharger.
// -
// Default: "12.0"
sm_ubercharger_ping_timer "12.0"
Version 1.0.1: Fixed bug that broke the ubercharger on map change.

Change log
Code:
01/26/2010 - v1.0.2
  • Fixed Invalid Timer error
  • Added announcement.
  • Removed code to track convar changes.
  • Fixed timer still executing when disabled.
Attached Files
File Type: inc ubercharger.inc (1.2 KB, 927 views)
File Type: sp Get Plugin or Get Source (ubercharger.sp - 1579 views - 10.4 KB)
File Type: smx ubercharger.smx (8.2 KB, 1002 views)

Last edited by naris; 09-08-2010 at 21:40. Reason: Bug fix
naris is offline