Raised This Month: $51 Target: $400
 12% 

L4D2 Request for a plugin to improve the Grenade Launcher


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Black_Wolf
Junior Member
Join Date: Dec 2019
Location: Italy
Old 01-08-2020 , 19:02   L4D2 Request for a plugin to improve the Grenade Launcher
Reply With Quote #1

Hello guys, i'm new to the forum and i hope this is the right section for the topic.
-So yeah, this is pretty much my request, i would like a plugin that ables the grenade launcher to stagger big special infected with a direct hit on their body (mostly chargers, but you could also add the tank too).
-If it was possible also a cvar for increasing its damage (splash damage and direct hit damage), it deals barely 350 damage with a direct hit, and it's impossible oneshotting a jockey without directly hitting it.

Last edited by Black_Wolf; 01-16-2020 at 14:44.
Black_Wolf is offline
JeremyDF93
Junior Member
Join Date: Dec 2019
Old 01-09-2020 , 14:59   Re: L4D2 Request for a plugin to improve the Grenade Launcher
Reply With Quote #2

Here you go! https://github.com/JeremyDF93/l4d2_grenadestagger
ConVars: nyx_grenade_launcher_damage

Discord: Kiwi#7534
Please consider donating if you like my work!

Edit: Works on both Windows & Linux servers now.
__________________
Find my work helpful? Please consider donating. - Discord: Kiwi#7534

Last edited by JeremyDF93; 01-11-2020 at 17:06.
JeremyDF93 is offline
Black_Wolf
Junior Member
Join Date: Dec 2019
Location: Italy
Old 01-10-2020 , 08:47   Re: L4D2 Request for a plugin to improve the Grenade Launcher
Reply With Quote #3

Thanks a lot man, really.
Unfortunately i can't use it because me and friends use Windows servers.
Once i have some money i will donate to thank for your efforts.

Last edited by Black_Wolf; 01-14-2020 at 10:25.
Black_Wolf is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 01-11-2020 , 10:08   Re: L4D2 Request for a plugin to improve the Grenade Launcher
Reply With Quote #4

Remove anything SDKCall related and replace the line after the "m_vecAbsOrigin" with this:
PHP Code:
ExecuteScript("GetPlayerFromUserID(%d).Stagger(%.3f,%.3f,%.3f)"GetClientUserId(other), origin[0], origin[1], origin[2]); 
Add this stock at the end of the file:
PHP Code:
void ExecuteScript(const char[] sScriptany ...)
{
    
char sVScript[512];
    
VFormat(sVScriptsizeof(sVScript), sScript2);
    
    
int iScriptLogic CreateEntityByName("logic_script");
    
DispatchSpawn(iScriptLogic);
    
    
SetVariantString(sVScript);
    
AcceptEntityInput(iScriptLogic"RunScriptCode");
    
    
RemoveEdict(iScriptLogic);


Last edited by cravenge; 01-11-2020 at 10:09.
cravenge is offline
JeremyDF93
Junior Member
Join Date: Dec 2019
Old 01-11-2020 , 16:53   Re: L4D2 Request for a plugin to improve the Grenade Launcher
Reply With Quote #5

Updated following @cravenge's advice. I forgot about the scripting tools ;P Works on Windows servers now.

There was an error in your script though. Forgot the Vector!
PHP Code:
GetPlayerFromUserID(%d).Stagger(Vector(%.3f, %.3f, %.3f)) 
__________________
Find my work helpful? Please consider donating. - Discord: Kiwi#7534

Last edited by JeremyDF93; 01-11-2020 at 17:07.
JeremyDF93 is offline
Black_Wolf
Junior Member
Join Date: Dec 2019
Location: Italy
Old 01-12-2020 , 16:13   Re: L4D2 Request for a plugin to improve the Grenade Launcher
Reply With Quote #6

Thanks for the help guys! was wondering because the server kept crashing but that Vector fix fixed everything!
Black_Wolf is offline
Reply



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 08:17.


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