Raised This Month: $51 Target: $400
 12% 

[ND] Beam Resource Points [v1.0.0 | 25-January-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
8624
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Nuclear Dawn
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Creates a beam distinguishing captured resource points by color
    Old 01-25-2024 , 10:53   [ND] Beam Resource Points [v1.0.0 | 25-January-2024]
    Reply With Quote #1

    Nuclear Dawn ONLY

    Description

    Creates a beam distinguishing captured resource points by color.

    Features
    • Allow configuring beam model/alpha/width/height.
    • Allow configuring beam color based on team capture.
    • Allow configuring time transition between captured/capturing.

    Preview




    Cvars

    A configuration file named "nd_resource_point_beam.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // Beam alpha.
    // 0 = Disable.
    // -
    // Default: "255"
    // Minimum: "0.000000"
    // Maximum: "255.000000"
    nd_resource_point_beam_alpha "255"

    // Beam color for consortium faction.
    // Use three values between 0-255 separated by spaces ("<0-255> <0-255> <0-255>").
    // -
    // Default: "0 0 255"
    nd_resource_point_beam_color_consortium "0 0 255"

    // Beam color for consortium faction.
    // Use three values between 0-255 separated by spaces ("<0-255> <0-255> <0-255>").
    // -
    // Default: "255 0 0"
    nd_resource_point_beam_color_empire "255 0 0"

    // Beam color for uncaptured resources.
    // Use three values between 0-255 separated by spaces ("<0-255> <0-255> <0-255>").
    // -
    // Default: "255 255 255"
    nd_resource_point_beam_color_none "255 255 255"

    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    nd_resource_point_beam_enable "1"

    // Beam height.
    // 0 = World Max.
    // -
    // Default: "0.0"
    // Minimum: "0.000000"
    nd_resource_point_beam_height "0.0"

    // Beam model.
    // -
    // Default: "sprites/widestripe.vmt"
    nd_resource_point_beam_model "sprites/widestripe.vmt"

    // How often should check for capturing resources to toogle the color.
    // 0 = OFF.
    // -
    // Default: "0.5"
    // Minimum: "0.000000"
    nd_resource_point_beam_timer_toogle "0.5"

    // Beam end width.
    // -
    // Default: "0.0"
    // Minimum: "0.000000"
    nd_resource_point_beam_width_end "0.0"

    // Beam start width.
    // -
    // Default: "50.0"
    // Minimum: "0.000000"
    nd_resource_point_beam_width_start "50.0" 
    Admin Commands
    • sm_print_cvars_nd_resource_point_beam => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    To Do
    • Allow clients to enable/disable the beam visibility by cookies.

    Thank you!
    • databomb - for all the help and plugins shared.
    • Vertex (Redstone) - for all the help and plugins shared.

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "nd_resource_point_beam.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (nd_resource_point_beam.sp - 25 views - 25.2 KB)
    __________________

    Last edited by Marttt; 02-05-2024 at 09:35.
    Marttt 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 15:25.


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