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.


All times are GMT -4. The time now is 23:36.

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