Description
This plugin shows HUD hints for nearby allied Engineer's buildings to the players when they use specific voice commands. Namely:
"MEDIC!" and "Help!" show the closest allied dispenser.
"Need a Teleporter/Dispenser/Sentry here" shows the closest allied teleporter/dispenser/sentry respectively.
The plugin generates a config file automatically.
Showcase
Text annotations:
Text annotations + outlines:
Chat commands
Code:
/hint or /hints:
- Toggles feature client-side (preferences are remembered between connections)
Console variables
Code:
// Enable building HUD hints? 0 = no, 1 = yes
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_objhints "1"
// Consider a building for a HUD hint only if it's within THIS radius of the player
// -
// Default: "1920.0"
// Minimum: "0.000000"
sm_objhints_building_seek_radius "1920.0"
// Make a HUD hint for an appropriate building type when a player uses 'Need a Teleporter/Dispenser/Sentry here' command? 0 = no, 1 = yes
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_objhints_handle_build_request_cmd "1"
// How to handle 'Help!' command? 0 = ignore, 1 = make a dispenser hint IF the player has less than max health or is on fire, 2 = ALWAYS make a dispenser hint
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_objhints_handle_help_cmd "1"
// How to handle 'MEDIC!' command? 0 = ignore, 1 = make a dispenser hint IF the player has less than max health or is on fire, 2 = ALWAYS make a dispenser hint
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_objhints_handle_medic_cmd "2"
// How exactly should hints appear from the player's point of view? 0 = text annotation above building, 1 = outline around builing, 2 = both
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_objhints_hint_method "2"
// The annotation will stay on the player's HUD for THIS many seconds
// -
// Default: "2.0"
// Minimum: "0.100000"
// Maximum: "10.000000"
sm_objhints_lifetime_annotation "2.0"
// The player will see the outline around the building for THIS many seconds
// -
// Default: "2.0"
// Minimum: "0.100000"
// Maximum: "10.000000"
sm_objhints_lifetime_outline "2.0"
// What color should outline have? 0 = match team color, 1 = white, 2 = green, 3 = specify RGBA via 'sm_objhints_outline_color_custom_rgba'
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "3.000000"
sm_objhints_outline_color "0"
// If 'sm_objhints_show_outline_color' is set to '3', THIS value will be used as outline color. Format: "R G B A" with decimal literals (0-255)
// -
// Default: "255 255 255 255"
sm_objhints_outline_color_custom_rgba "255 255 255 255"
// Show outline on both teleporter ends? 0 = no, 1 = yes
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_objhints_show_outline_on_both_teleporter_ends "1"
Changelog
Code:
v1.2:
- Added ability to toggle feature client-side via /hint or /hints chat command (feature is enabled by default, preferences are remembered between connections)
v1.1:
- Added option to show outlines on the buildings
- Added option to mark both teleporter ends