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.