Raised This Month: $119 Target: $400
 29% 

[L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Senior Member
Join Date: Jan 2019
Plugin ID:
6537
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Randomize the rock model thrown by the Tank.
    Old 04-23-2019 , 15:58   [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
    Reply With Quote #1

    About

    I made this plugin due to a request from a friend who asked me to randomize the rocks thrown by the Tank,
    as in the Sacrifice map (chapter 1), near the boats, where the Tank sometimes throws a trunk instead of a rock.

    Description

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

    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:
    // Enables/Disables the plugin. 0 = Plugin OFF, 1 = Plugin ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_random_tank_rock_enabled "1"

    // Turn off the plugin in these game modes, separate by commas (no spaces). Empty = none.
    // Known values: coop,realism,versus,survival,scavenge,teamversus,teamscavenge,
    // mutation[1-20],community[1-6],gunbrain,l4d1coop,l4d1vs,holdout,dash,shootzones.
    // -
    // Default: ""
    l4d_random_tank_rock_gamemodes_off ""

    // Turn on the plugin in these game modes, separate by commas (no spaces). Empty = all.
    // Known values: coop,realism,versus,survival,scavenge,teamversus,teamscavenge,
    // mutation[1-20],community[1-6],gunbrain,l4d1coop,l4d1vs,holdout,dash,shootzones.
    // -
    // Default: ""
    l4d_random_tank_rock_gamemodes_on ""

    // Turn on the plugin in these game modes.
    // Known values: 0 = all, 1 = coop, 2 = survival, 4 = versus, 8 = scavenge.
    // Add numbers greater than 0 for multiple options.
    // Example: "3", enables for "coop" (1) and "survival" (2).
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "15.000000"
    l4d_random_tank_rock_gamemodes_toggle "0"

    // Which models should be applied to the rock thrown by the Tank.
    // Known values: 1 = Only Rock, 2 = Only Trunk, 3 = Rock [50% chance] or Trunk [50% chance].
    // -
    // Default: "3"
    // Minimum: "1.000000"
    // Maximum: "3.000000"
    l4d_random_tank_rock_model_type "3" 
    Admin Commands

    PHP Code:
    sm_l4d_random_tank_rock_print_cvars // Prints the plugin related cvars and their respective values to the console. (needs "z" flag). 
    Change Log

    Spoiler


    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.

    To Do
    • Configuration for the chance of each model.

    Thank you!

    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 - 482 views - 17.0 KB)
    __________________

    Last edited by Marttt; 07-13-2019 at 19:56. Reason: v1.0.0
    Marttt is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine
    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.
    [My plugins] [My tools] [GitHub]
    Dragokas is offline
    Mi.Cura
    Senior 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 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
    Senior Member
    Join Date: Jan 2019
    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
    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
    Senior Member
    Join Date: Jan 2019
    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: Brexit
    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!
    __________________
    Lux is offline
    cacaopea
    Member
    Join Date: May 2019
    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
    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 04:39.


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