Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Tank Rock Bounces (1.1) [27-Jul-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
8515
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
18 
Plugin Description:
Allows the Tanks thrown rock to bounce off objects.
Old 07-10-2023 , 16:39   [L4D & L4D2] Tank Rock Bounces (1.1) [27-Jul-2023]
Reply With Quote #1

About:
  • Allows the Tanks thrown rock to bounce off objects.



Cvars:

Saved to l4d_tank_rock_bounce.cfg in your servers \cfg\sourcemod\ folder.

PHP Code:
// 0=Plugin off, 1=Plugin on.
l4d_tank_rock_bounce_allow "1"

// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_tank_rock_bounce_modes ""

// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_tank_rock_bounce_modes_off ""

// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_tank_rock_bounce_modes_tog "0"

// The chance out of 100 that a rock can bounce.
l4d_tank_rock_bounce_chance "100"

// Entity classnames the rock can bounce off. World is on by default. Separate by commas (no spaces). Empty = world only.
l4d_tank_rock_bounce_objects "prop_dynamic,prop_physics,prop_door_rotating,weapon_gascan"

// Number of times a single rock is allowed to bounce before exploding.
l4d_tank_rock_bounce_repeat "3"

// Each bounce will scale the velocity by this much. 1.0 = Bounce at full speed. 0.5 = Half velocity each bounce. 0.2 = Very slow after bounce.
l4d_tank_rock_bounce_scale "0.75"

// Minimum speed the rock must be moving to allow bouncing.
l4d_tank_rock_bounce_speed "400.0"

// Tank Rock Bounces plugin version.
l4d_tank_rock_bounce_version 


Changes:
Code:
1.1 (27-Jul-2023)
    - Added cvar "l4d_tank_rock_bounce_chance" to set the chance a rock can bounce. Requested by "Aresilya".

1.0 (10-Jul-2023)
    - Initial release.


Updating from 1.0:
  • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.


Requirements:
  1. Uses Left 4 DHooks Direct plugin version 1.134 or newer.


Installation:
DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires Left 4 DHooks Direct!
  1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_tank_rock_bounce.sp - 327 views - 12.2 KB)
File Type: smx l4d_tank_rock_bounce.smx (9.6 KB, 554 views)
__________________

Last edited by Silvers; 07-27-2023 at 06:11.
Silvers is offline
Aresilya
Junior Member
Join Date: Jan 2014
Old 07-11-2023 , 03:09   Re: [L4D & L4D2] Tank Rock Bounces (1.0) [10-Jul-2023]
Reply With Quote #2

Great plugin! Thank you!
But maybe you can add one more cvar "bounce chance" for every bounce?
Aresilya is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 07-11-2023 , 08:38   Re: [L4D & L4D2] Tank Rock Bounces (1.0) [10-Jul-2023]
Reply With Quote #3

XD It's very fun.
__________________
HarryPotter is offline
Ruthless1
AlliedModders Donor
Join Date: Oct 2019
Old 07-20-2023 , 06:14   Re: [L4D & L4D2] Tank Rock Bounces (1.0) [10-Jul-2023]
Reply With Quote #4

After a rock bounces, can it still do damage to a player if they are hit by it?
Ruthless1 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-27-2023 , 05:48   Re: [L4D & L4D2] Tank Rock Bounces (1.0) [10-Jul-2023]
Reply With Quote #5

Quote:
Originally Posted by Ruthless1 View Post
After a rock bounces, can it still do damage to a player if they are hit by it?
Yeah should do.


Code:
1.1 (27-Jul-2023)
    - Added cvar "l4d_tank_rock_bounce_chance" to set the chance a rock can bounce. Requested by "Aresilya".
__________________
Silvers 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 16:48.


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