AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Pipebomb Shove (1.16) [24-Nov-2023] (https://forums.alliedmods.net/showthread.php?t=188066)

Silvers 06-21-2012 20:05

[L4D & L4D2] Pipebomb Shove (1.16) [24-Nov-2023]
 
19 Attachment(s)


Related Plugins:

About:
  • Attaches a pipebomb to common/special infected mouths.
  • Because Hunters, Chargers and Jockeys have no mouth attachments, they will hold the pipe in their hands.


Thanks:
  • JoBarfCreepy - For the "Molotov Shove" original idea and request.
  • alexip121093 - For the "Vomitjar Shove" idea and request.
  • Don't Fear The Reaper - For the "Pipebomb Shove" idea and request.
  • disawar1 - Providing the latest (27th Dec 2013) gamedata signature.
  • bazrael - For for the reload key idea and testing.
  • Sunyata - For the fuse time idea and testing.
  • Crasher_3637 - For error reporting.


Cvars:

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

PHP Code:

// 0=Plugin off, 1=Plugin on.
l4d_pipebomb_shove_allow "1"

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

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

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

// 0=Default. Other values sets the explosion damage.
l4d_pipebomb_shove_damage "25"

// 0=Default. Other value sets the explosion damage range.
l4d_pipebomb_shove_distance "400"

// 1=Common, 2=Witch, 4=Smoker, 8=Boomer, 16=Hunter, 32=Spitter, 64=Jockey, 128=Charger, 256=Tank, 511=All.
l4d_pipebomb_shove_infected "511"

// L4D1: 0=Prevent player speed up when Pipebomb is attached, 1=Allow speed up.
l4d_pipebomb_shove_speed "0"

// 0=Shove key, 1=Trigger with reload key, 2=Only trigger with reload key, 3=Trigger with reload key and shove.
l4d_pipebomb_reload "0"

// Fuse duration before detonation. Game default is 6 seconds.
l4d_pipebomb_time "6"

// Pipebomb Shove plugin version.
l4d_pipebomb_shove_version 



Changes:
Code:

1.16 (24-Nov-2023)
    - L4D1: Fixed movement speed bug after staggering when the stagger timer didn't reset (due to some plugins such as "Stagger Gravity").

1.15 (25-Jan-2023)
    - Fixed the "l4d_pipebomb_shove_speed" cvar causing errors in L4D2. Thanks to "Ja-Forces" for reporting.

1.14 (25-Jan-2023)
    - L4D1: Added cvar "l4d_pipebomb_shove_speed" to control if player speed is affected by the Pipebomb being attached.
    - Fixed "MarkNativeAsOptional" being in the incorrect place. Thanks to "HarryPotter" for reporting.

1.13 (24-Jan-2023)
    - L4D1: Fixed Special Infected increased movement speed when the Pipebomb is attached. Compatible with the "Lagged Movement - Plugin Conflict Resolver" plugin.
    - Thanks to "Ja-Forces" for reporting and testing.

1.12 (01-Nov-2022)
    - Changed cvar "l4d_pipebomb_reload" to optionally require holding "R" when shoving. Requested by "Iciaria".

1.11 (14-Nov-2021)
    - Changes to fix warnings when compiling on SourceMod 1.11.
    - Updated GameData signatures to avoid breaking when detoured by the "Left4DHooks" plugin.

1.10 (10-May-2020)
    - Added better error log message when gamedata file is missing.
    - Extra checks to prevent "IsAllowedGameMode" throwing errors.
    - Various changes to tidy up code.
    - Various optimizations and fixes.

1.9 (01-Apr-2020)
    - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.

1.8 (05-May-2018)
    - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
    - Changed cvar "l4d_pipebomb_shove_modes_tog" now supports L4D1.

1.7.1 (24-Mar-2018)
    - Added a couple checks to prevent errors being logged - Thanks to "Crasher_3637" for reporting.

1.7 (02-Dec-2017)
    - Added cvar "l4d_pipebomb_reload" to make the "Reload" key attach the pipebomb. Thanks to "bazrael" for the idea and testing.
    - Added cvar "l4d_pipebomb_time" to set the fuse duration before detonation. Thanks to "Sunyata" for the idea and testing.

1.6 (14-Nov-2015)
    - Gamedata signatures file updated. No other changes.

1.6 (21-Jun-2015)
    - Fixed "GetEntPropEnt" error - Thanks to "Danny_l4d" for reporting.

1.5 (06-Jul-2013)
    - Gamedata signatures file updated. No other changes.

1.5 (07-Oct-2012)
    - Fixed tank attachment and tank related cvars in L4D1 - Thanks to "disawar1" for fixing.
    - Changed the Witch attachment point from her mouth to her eye!

1.4 (03-Jul-2012)
    - Fixed errors by adding some checks - Thanks to "gajo0650" for reporting.

1.3 (30-Jun-2012)
    - Fixed the plugin not working in L4D1.
    - Fixed sticking the pipebomb into common infected which have just died.

1.2 (23-Jun-2012)
    - Fixed the last update breaking the plugin.

1.1 (22-Jun-2012)
    - Added cvars "l4d_pipebomb_shove_damage" and "l4d_pipebomb_shove_distance".

1.0 (21-Jun-2012)
    - Initial release.



Installation:
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
  2. Download "l4d_pipebomb_shove.txt" and put the file into your servers \addons\sourcemod\gamedata\ folder.


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

alexip121093 06-21-2012 22:33

Re: [L4D & L4D2] Pipebomb Shove (1.0) [21-Jun-2012]
 
Quote:

About:
Attaches a pipebomb to common/special infected mouths.
Because Hunters, Chargers and Jockeys have no mouth attachments, they will hold the pipe in their hands.
This makes the game funny :)
Humiliate the special infected players in versus mode lol

SyluxLockjaw100 06-22-2012 05:05

Re: [L4D & L4D2] Pipebomb Shove (1.0) [21-Jun-2012]
 
I love this plugin! No bugs found so far :D I killed a tank multiple times in VS mode by sticking a pipebomb on him (Yes,I used damage mod for instant-kill pipebomb)

Zbeer 06-22-2012 09:03

Re: [L4D & L4D2] Pipebomb Shove (1.0) [21-Jun-2012]
 
Quote:

Originally Posted by SyluxLockjaw100 (Post 1733697)
I love this plugin! No bugs found so far :D I killed a tank multiple times in VS mode by sticking a pipebomb on him (Yes,I used damage mod for instant-kill pipebomb)

Nice idea!
Can you share your config for the pipe in damage mod? :wink:

SyluxLockjaw100 06-22-2012 10:47

Re: [L4D & L4D2] Pipebomb Shove (1.0) [21-Jun-2012]
 
Quote:

Originally Posted by Zbeer (Post 1733772)
Nice idea!
Can you share your config for the pipe in damage mod? :wink:

Code:

"L4D2 Damage Mods"
{
    "50cal"
    {
        "weapon_class"            "prop_minigun"
        "modifier_friendly"        "1.0"
        "modifier_enemy"        "16.5"
    }
   
    "Minigun"
    {
        "weapon_class"            "prop_minigun_l4d1"
        "modifier_friendly"        "1.0"
        "modifier_enemy"        "3.0"
    }
   
    "AWP Sniper"
    {
        "weapon_class"            "weapon_sniper_awp"
        "modifier_friendly"        "1.0"
        "modifier_enemy"        "4.0"
    }
   
    "Steyr Scout"
    {
        "weapon_class"            "weapon_sniper_scout"
        "modifier_friendly"        "1.0"
        "modifier_enemy"        "2.5"
    }
   
    "G3 Sniper,whatever it is"
    {
        "weapon_class"            "weapon_sniper_military"
        "modifier_friendly"        "1.0"
        "modifier_enemy"        "1.5"
    }

    "Hunting Rifle"
    {
        "weapon_class"            "weapon_hunting_rifle"
        "modifier_friendly"        "1.0"
        "modifier_enemy"        "1.5"
    }   
   
    "Katana"
    {
        "weapon_class"            "katana"
        "modifier_friendly"        "1.0"
        "modifier_enemy"        "3.0"
    }
   
    "M60E4"
    {
        "weapon_class"            "weapon_rifle_m60"
        "modifier_friendly"        "1.0"
        "modifier_enemy"        "1.5"
    }
   
    "Flame"
    {
        "weapon_class"            "entityflame"
        "modifier_friendly"        "1.0"
        "modifier_enemy"        "5.0"
    }

    "Pipebomb"
    {
        "weapon_class"            "pipe_bomb_projectile"
        "modifier_friendly"        "1.0"
        "modifier_enemy"        "500.0"
    }       
}

It's kinda off topic,I know

Zbeer 06-22-2012 13:51

Re: [L4D & L4D2] Pipebomb Shove (1.0) [21-Jun-2012]
 
Wow! 500! :mrgreen:
Thanks a lot!

Silvers 06-22-2012 17:01

Re: [L4D & L4D2] Pipebomb Shove (1.1) [22-Jun-2012]
 
Plugin updated, you can set the damage and distance the pipebomb explosion causes.

Setting the damage/distance cvar to 0 will not modify the value. The games default values are the current ones listed, 25/400 respectively.

Zbeer 06-23-2012 00:30

Re: [L4D & L4D2] Pipebomb Shove (1.2) [23-Jun-2012]
 
In the new version (1.1), I could not use pipe on tanks.
Reverted to previous version 1.0 and everything is fine!


1.2 works perfect! :)

gajo0650 07-03-2012 04:33

Re: [L4D & L4D2] Pipebomb Shove (1.3) [30-Jun-2012]
 
v1.3 l4d2 error log.

Quote:

L 07/03/2012 - 15:02:58: Info (map "c2m2_fairgrounds") (file "errors_20120703.log")
L 07/03/2012 - 15:02:58: [SM] Native "GetEdictClassname" reported: Invalid edict (447 - 447)
L 07/03/2012 - 15:02:58: [SM] Displaying call stack trace for plugin "l4d_pipebomb_shove.smx":
L 07/03/2012 - 15:02:58: [SM] [0] Line 327, /home/groups/alliedmodders/forums/files/8/5/7/7/8/105745.attach::CheckWeapon()
L 07/03/2012 - 15:02:58: [SM] [1] Line 276, /home/groups/alliedmodders/forums/files/8/5/7/7/8/105745.attach::Event_EntityShoved()
Quote:

L 07/03/2012 - 16:59:45: Info (map "c7m1_docks") (file "errors_20120703.log")
L 07/03/2012 - 16:59:45: [SM] Native "GetEdictClassname" reported: Invalid edict (36 - 36)
L 07/03/2012 - 16:59:45: [SM] Displaying call stack trace for plugin "l4d_pipebomb_shove.smx":
L 07/03/2012 - 16:59:45: [SM] [0] Line 327, /home/groups/alliedmodders/forums/files/8/5/7/7/8/105745.attach::CheckWeapon()
L 07/03/2012 - 16:59:45: [SM] [1] Line 276, /home/groups/alliedmodders/forums/files/8/5/7/7/8/105745.attach::Event_EntityShoved()
Please check and fix it.

Silvers 07-03-2012 08:03

Re: [L4D & L4D2] Pipebomb Shove (1.4) [03-Jul-2012]
 
gajo0650: Thanks, this should be fixed now.

noctua 07-30-2012 16:03

Re: [L4D & L4D2] Pipebomb Shove (1.4) [03-Jul-2012]
 
not working in l4d1?

maita1206 08-04-2012 01:56

Re: [L4D & L4D2] Pipebomb Shove (1.4) [03-Jul-2012]
 
nope.is not working for l4d1,bugged

Silvers 09-01-2012 14:00

Re: [L4D & L4D2] Pipebomb Shove (1.4) [03-Jul-2012]
 
Quote:

Originally Posted by noctua (Post 1761500)
not working in l4d1?

Quote:

Originally Posted by maita1206 (Post 1764223)
nope.is not working for l4d1,bugged



I would have fixed it quicker if you had checked your errors logs and reported the error was simply a gamedata problem. Please download the new l4d_pipebomb_shove.txt and put into your servers sourcemod/gamedata folder.

Silvers 10-07-2012 04:00

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
1.5 (07-Oct-2012)
- Fixed tank attachment and tank related cvars in L4D1 - Thanks to "disawar1" for fixing.
- Changed the Witch attachment point from her mouth to her eye!

grasscid 04-29-2013 00:44

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
I just have one question: Is the pipe bomb removed after shoving?

Silvers 04-29-2013 23:59

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
Yes

grasscid 05-02-2013 22:14

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
Quote:

Originally Posted by Silvers (Post 1942688)
Yes

Good :3

SGG 05-03-2013 07:44

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
1 Attachment(s)
I made a change to the mod, you can now specify extra damage to the infected unlucky enough to be munching on the pipebomb.

It creates a new CVAR l4d_pipebomb_shove_target_damage to control the damage (defaults to 0). I have it set to 500 on my server, basically a melee hit.

I used sdkhooks to do the damage, so it will not compile on the web compiler.

Silvers 07-06-2013 08:34

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
Updated gamedata signature file to work with L4D2 SteamPipe update, re-download and replace your gamedata file with the new one.

chatyak 07-06-2013 13:12

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
Thank you for the updated file. Your work is appreciated.

chatyak 08-05-2013 19:16

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
Is it possible to include a cvar so that you can stick pipe-bomb to survivors as well and then they die just like common/infected?

Silvers 08-06-2013 02:38

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
That would require detecting events when a player is snared by smoker/hunter etc and to prevent shoving them affecting. Or it would affect every hit, so I will not do it.

chatyak 12-17-2013 23:59

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
Can someone tell me where to get the latest gamedata file?

Quote:

L 12/17/2013 - 22:21:08: [SM] Plugin encountered error 25: Call was aborted
L 12/17/2013 - 22:21:08: [SM] Native "SetFailState" reported: Could not load the "CPipeBombProjectile_Create" gamedata signature.
L 12/17/2013 - 22:21:08: [SM] Displaying call stack trace for plugin "l4d_pipebomb_shove.smx":
L 12/17/2013 - 22:21:08: [SM] [0] Line 86, /home/groups/alliedmodders/forums/files/8/5/7/7/8/105909.attach::OnPluginStart()

chatyak 12-19-2013 16:15

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
Does anyone know how to fix this problem? Do I have recompile the plugin on my own - what does that error mean?

kastrioth 12-26-2013 05:12

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
Quote:

Originally Posted by chatyak (Post 2074025)
Does anyone know how to fix this problem? Do I have recompile the plugin on my own - what does that error mean?


I have same issue it seems maybe new update for server crashed this plugin?

disawar1 12-27-2013 11:16

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
Quote:

Originally Posted by kastrioth (Post 2076494)
I have same issue it seems maybe new update for server crashed this plugin?

Alright. Gamedata file outdated.

disawar1 12-27-2013 11:18

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
1 Attachment(s)
Plugin signatures were updated.

Danny_l4d 06-21-2015 12:45

Re: [L4D & L4D2] Pipebomb Shove (1.5) [07-Oct-2012]
 
Got a new error, not sure what is causing it, plugin seems to work as normal

PHP Code:

[SMDisplaying call stack trace for plugin "l4d_pipebomb_shove.smx":
[
SM]   [0]  Line 330, /home/forums/content/files/8/5/7/7/8/105909.attach::CheckWeapon()
[
SM]   [1]  Line 283, /home/forums/content/files/8/5/7/7/8/105909.attach::Event_EntityShoved()
[
SMNative "GetEntPropEnt" reportedProperty "m_hActiveWeapon" not found (entity 0/worldspawn


Silvers 06-21-2015 13:36

Re: [L4D & L4D2] Pipebomb Shove (1.6) [21-Jun-2015]
 
Thanks, should be fixed.

Danny_l4d 06-23-2015 05:49

Re: [L4D & L4D2] Pipebomb Shove (1.6) [21-Jun-2015]
 
Got no errors, thanks for the fast response :)

bazrael 07-06-2015 21:00

Re: [L4D & L4D2] Pipebomb Shove (1.6) [21-Jun-2015]
 
Could you join alternative key like 'R' key to attache pipebomb? Players often attach pipebomb accidentally when they push a common infected before throwing.
--edit--
PHP Code:

L 11/07/2015 05:18:53: [SMPlugin encountered error 25Call was aborted
L 11
/07/2015 05:18:53: [SMNative "SetFailState" reportedCould not  load the "CPipeBombProjectile_Create" gamedata signature.
L 11/07/2015 05:18:53: [SMDisplaying call stack trace for plugin "l4d_pipebomb_shove_1.7.smx":
L 11/07/2015 05:18:53: [SM]   [0]  Line 93,  D:\Desktop\l4d_pipebomb_shove_1.7.sp::OnPluginStart() 

The last dedicated server update broke the signatures.
--edit 2--
Thank you! Plugin works again. Are you still testing newer version 1.7 with R key to attach a bomb?

adrianman 11-08-2015 16:35

Re: [L4D & L4D2] Pipebomb Shove (1.6) [21-Jun-2015]
 
needs a new CPipeBombProjectile_Create signature

Silvers 11-14-2015 09:00

Re: [L4D & L4D2] Pipebomb Shove (1.6) [21-Jun-2015]
 
Thanks. Gamedata file updated. We'll see how long this one lasts ;)

P.S the "R" to attach was created, but I remember there were some issues which I had corrected but not tested. If you're interested in testing please PM me.

Sleeper.L 02-29-2016 14:44

Re: [L4D & L4D2] Pipebomb Shove (1.6) [21-Jun-2015]
 
The Pipebomb Shove is really fun! Thanks for the plugin!

Just some thought of my playing around with this plugin:

1.Is it possible that make the SI's special skill cooldown longer when it's shoved with pipebomb?
So it'll be like Spitter can't spit, Smoker can't stretch it's tongue when it's mouth full that kind of feeling.

2.How about when you shove a pipebomb into a tank's mouth and the explosion will do a percentage damage just like melee weapon ? (say like 20% or something)

Silvers 03-06-2016 06:17

Re: [L4D & L4D2] Pipebomb Shove (1.6) [21-Jun-2015]
 
Hmm good ideas, may one day edit. Thanks

adrianman 03-26-2016 03:35

Re: [L4D & L4D2] Pipebomb Shove (1.6) [21-Jun-2015]
 
signature CPipeBombProjectile_Create is broken again

adrianman 04-01-2016 03:29

Re: [L4D & L4D2] Pipebomb Shove (1.6) [21-Jun-2015]
 
there was an issue on my end, sorry,the signature on the first post works fine

bazrael 07-31-2016 17:07

Re: [L4D & L4D2] Pipebomb Shove (1.6) [21-Jun-2015]
 
2 Attachment(s)
Quote:

Originally Posted by Silvers (Post 2363011)
P.S the "R" to attach was created, but I remember there were some issues which I had corrected but not tested. If you're interested in testing please PM me.

Almost a year ago, Silvers sent me a private test of Pipebomb Shove plugin with new feature: R key to shove.
PHP Code:

Change Log:
1.7 (07-Jul-2015)
    - 
Added cvar "l4d_pipebomb_reload" to make the "Reload" key attach the pipebomb

However he isn't available to maintain this plugin anymore and never publicly release. If anyone requested his private test in the past like me, you might find a glitch in server log:
Code:

L 07/27/2016 - 21:54:16: [SM] Native "GetClientTeam" reported: Client index -1 is invalid
L 07/27/2016 - 21:54:16: [SM] Displaying call stack trace for plugin "l4d_pipebomb_shove_1.7.smx":
L 07/27/2016 - 21:54:16: [SM]  [0]  Line 391, D:\Desktop\l4d_pipebomb_shove_1.7.sp::DoKey()
L 07/27/2016 - 21:54:16: [SM]  [1]  Line 351, D:\Desktop\l4d_pipebomb_shove_1.7.sp::OnPlayerRunCmd()

Fortunately, this glitch has been fixed and I don't find other bugs during the gameplay of a year. Remember to delete old cfg file for reproducing a new cvar. In case you used Pipebomb Shove (1.6), you don't have to update your gamedata file. (l4d_pipebomb_shove.txt)
PHP Code:

// 0=Off, 1=Trigger with reload key, 2=Only trigger with reload key.
// -
// Default: "0"
l4d_pipebomb_reload "1" 


Silvers 08-02-2016 12:51

Re: [L4D & L4D2] Pipebomb Shove (1.6) [21-Jun-2015]
 
Thanks

Sunyata 11-18-2017 03:55

Re: [L4D & L4D2] Pipebomb Shove (1.6) [21-Jun-2015]
 
This is such a fun plugin to play with, and I still use it to this day on my L4D 1 and 2 servers.

I don't know if this plugin is supported anymore, but I'd love to be able to override the pipe's default timer of 6 seconds with a customisable value, controlled in the plugin itself. So that it could use the default countdown when it gets thrown, and uses a new countdown when it's used as a sticky.

I can currently get around the default timer myself by setting a lower value such as "sm_cvar pipe_bomb_timer_duration 2" in the "sourcemod.cfg" file, but 'd I still love to be able to revert to the default timer for when the pipe just gets thrown, which I can't do with the preset override I use here.


All times are GMT -4. The time now is 06:02.

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