Raised This Month: $32 Target: $400
 8% 

[TF2] HUD hints for buildings (v1.2, 08 October 2022)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
bigmazi
New Member
Join Date: Oct 2022
Plugin ID:
8219
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Shows an appropriate HUD hint for nearby buildings to players who use specific voice commands
    Old 10-02-2022 , 14:27   [TF2] HUD hints for buildings (v1.2, 08 October 2022)
    Reply With Quote #1

    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
    Download

    Last edited by bigmazi; 10-08-2022 at 12:02. Reason: Updated to v1.2
    bigmazi is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 04:21.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode