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

[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 - 598 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
    Aya Supay
    Member
    Join Date: Nov 2015
    Old 07-29-2019 , 18:57   Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
    Reply With Quote #7

    Quote:
    Originally Posted by cacaopea View Post
    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
    here are two options for you

    version by xZk
    code cleanup and other models
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_random_tank_rock.sp - 504 views - 18.0 KB)
    File Type: sp Get Plugin or Get Source (l4d_random_tank_rock_vZ.sp - 617 views - 16.0 KB)
    Aya Supay is offline
    cacaopea
    Member
    Join Date: May 2019
    Location: Viet Nam
    Old 07-29-2019 , 20:56   Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
    Reply With Quote #8

    Quote:
    Originally Posted by Aya Supay View Post
    here are two options for you

    version by xZk
    code cleanup and other models
    wow,thanks man
    - It works Perfect
    2 version: Ver 2: perfect, Ver 1: junk still stuck,lol
    - You and xZk saved my life

    Last edited by cacaopea; 07-29-2019 at 21:31.
    cacaopea is offline
    geipoe
    BANNED
    Join Date: Sep 2016
    Location: https://t.me/pump_upp
    Old 10-28-2020 , 11:29   Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
    Reply With Quote #9

    Quote:
    Originally Posted by Aya Supay View Post
    here are two options for you

    version by xZk
    code cleanup and other models
    The version by xZk.
    There are some problems. After the tank picks up objects around it and throws it out, some roadblock-like objects fall to the ground. When the survivors walk up, they will be killed immediately. And those car survivors will be bounced off if they step on them. Can these be solved?
    Sorry for my poor english, i just use the google translation to reply it.
    geipoe is offline
    Send a message via ICQ to geipoe Send a message via AIM to geipoe Send a message via Yahoo to geipoe
    King_OXO
    Senior Member
    Join Date: Dec 2020
    Location: Brazil
    Old 02-17-2021 , 17:59   Re: [L4D & L4D2] Random Tank Rock [v1.0.2 | 02-January-2020]
    Reply With Quote #10

    can launch a version in which the tank launches large objects such as: cars, giant trunk, large stone and the giant ball. And don't they break?
    King_OXO 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 01:21.


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