AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D1 & L4D2] Random Tank Rock [v1.1.0 | 18-April-2021] (https://forums.alliedmods.net/showthread.php?t=315775)

Marttt 04-23-2019 15:58

[L4D1 & L4D2] Random Tank Rock [v1.1.0 | 18-April-2021]
 
17 Attachment(s)
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.

Dragokas 04-24-2019 12:06

Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
 
Good idea! Nicely done!

Mi.Cura 04-27-2019 19:51

Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
 
Good Job Marttt ! :bacon!:

zomexf 07-27-2019 07:39

Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
 
1 Attachment(s)
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
Attachment 176489

Marttt 07-27-2019 10:21

Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
 
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.

cacaopea 07-27-2019 11:00

Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
 
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

Marttt 07-27-2019 16:08

Re: [L4D & L4D2] Random Tank Rock [v1.0.0 | 23-April-2019]
 
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.

Lux 07-27-2019 16:40

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

Originally Posted by Marttt (Post 2660849)
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!

cacaopea 07-27-2019 17:43

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

Originally Posted by Lux (Post 2660855)
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 :D
- My English very bad
- This photo was taken on my facebook group: https://m.imgur.com/a/al6N8hy

cacaopea 07-27-2019 21:55

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

Originally Posted by Marttt (Post 2660849)
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


All times are GMT -4. The time now is 18:50.

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