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

[L4D1 & L4D2] Random Tank Rock [v1.1.0 | 18-April-2021]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
6537
Plugin Version:
1.0.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Randomize the rock model thrown by the Tank
    Old 04-23-2019 , 15:58   [L4D1 & L4D2] Random Tank Rock [v1.1.0 | 18-April-2021]
    Reply With Quote #1

    Description

    This plugin will randomize the rock model thrown by the Tank.

    In the Sacrifice map (chapter 1), near the boats, sometimes the Tank throws a trunk instead of a rock.

    Preview



    Cvars

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

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

    // Chance for the rock model.
    // Example:
    // rock_chance = "1" and trunk_chance = "1", means Rock [50%] / Trunk [50%].
    // rock_chance = "2" and trunk_chance = "3", means Rock [40%] / Trunk [60%].
    // 0 = OFF.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_random_tank_rock_rock_chance "1"

    // Chance for the trunk model.
    // Example:
    // rock_chance = "1" and trunk_chance = "1", means Rock [50%] / Trunk [50%].
    // rock_chance = "2" and trunk_chance = "3", means Rock [40%] / Trunk [60%].
    // 0 = OFF.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_random_tank_rock_trunk_chance "1" 
    Admin Commands
    • sm_print_cvars_l4d_random_tank_rock => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • This plugin precache some models.
    • These two models are the only ones that fit into the Tank animation, since they both have the "ValveBiped.debris_bone" attachment, other default models would appear stuck on the floor until the tank throws it. (using the same method)

    Thank you!
    • KadabraZz - for the request and testing in his server.

    Related Plugins

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

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

    Last edited by Marttt; 01-15-2023 at 12:18.
    Marttt is offline
     



    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 12:16.


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