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

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


Post New Thread Reply   
 
Thread Tools Display Modes
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:
    9 
    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 - 566 views - 9.3 KB)
    __________________

    Last edited by Marttt; 01-15-2023 at 12:18.
    Marttt is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 04-24-2019 , 12:06   Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
    Reply With Quote #2

    Good idea! Nicely done!
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Mi.Cura
    Veteran Member
    Join Date: Dec 2016
    Location: Brazil
    Old 04-27-2019 , 19:51   Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
    Reply With Quote #3

    Good Job Marttt !
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie
    Mi.Cura is offline
    zomexf
    Junior Member
    Join Date: Jul 2019
    Old 07-27-2019 , 07:39   Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
    Reply With Quote #4

    Trunk scope error can you fix it ?
    Soryy. I can't not English.
    I don't know if you can understand.
    Upload larger than GIF file size I can only upload zip
    trunkBug.zip
    zomexf is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 07-27-2019 , 10:21   Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
    Reply With Quote #5

    Hello zomexf, I think this problem is not related to the plugin itself.
    In your GIF you are throwing the projectile from the tank (rock / trunk) very close to the car, try to do the same tests on a clear ground.
    I did some simulations in the same spot you recorded and this behavior even occurs with the rock sometimes.
    This plugin only changes the skin/model from the rock.
    __________________
    Marttt is offline
    cacaopea
    Member
    Join Date: May 2019
    Location: Viet Nam
    Old 07-27-2019 , 11:00   Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
    Reply With Quote #6

    Hi martt can you add more random junk
    And I got problem with your plugin,when i try change model rock,junk stuck in the middle,tank pick up but not like a rock,you can see: https://drive.google.com/file/d/1ou8...usp=drive_open
    I hope you will care about this
    - My english very bad

    Last edited by cacaopea; 07-27-2019 at 11:04.
    cacaopea is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 07-27-2019 , 16:08   Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
    Reply With Quote #7

    Yes I know about this weird stuff.
    I added a note a while ago about this, so even if I add other models, they all will have that behavior.

    Quote:
    Notes
    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.
    __________________

    Last edited by Marttt; 07-27-2019 at 16:09.
    Marttt is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 07-27-2019 , 16:40   Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
    Reply With Quote #8

    Quote:
    Originally Posted by Marttt View Post
    Yes I know about this weird stuff.
    I added a note a while ago about this, so even if I add other models, they all will have that behavior.
    While this wont fix the issue it will make it look like you fixed it.

    Hide the rock model and parent another model on it, same concept as LMC!
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    cacaopea
    Member
    Join Date: May 2019
    Location: Viet Nam
    Old 07-27-2019 , 17:43   Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
    Reply With Quote #9

    Quote:
    Originally Posted by Lux View Post
    While this wont fix the issue it will make it look like you fixed it.

    Hide the rock model and parent another model on it, same concept as LMC!
    Hi lux
    - Please help me with a small code to do this, I'll be happy if you can help because I'm not good at plugins
    - My English very bad
    - This photo was taken on my facebook group: https://m.imgur.com/a/al6N8hy
    cacaopea is offline
    cacaopea
    Member
    Join Date: May 2019
    Location: Viet Nam
    Old 07-27-2019 , 21:55   Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
    Reply With Quote #10

    Quote:
    Originally Posted by Marttt View Post
    Yes I know about this weird stuff.
    I added a note a while ago about this, so even if I add other models, they all will have that behavior.
    - Can you add it?
    - I think it would be great if you could do this : D
    cacaopea is offline
    Reply


    Thread Tools
    Display Modes

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


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