Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Gun Damage Booster (v7.5, 6-1-2022)


Post New Thread Reply   
 
Thread Tools Display Modes
jking
AlliedModders Donor
Join Date: Jan 2012
Old 08-17-2018 , 17:22   Re: [L4D & L4D2] Gun Damage Booster (v6.0, 08-06-2018)
Reply With Quote #21

works beautifully now, much to you! FYI, it never griefed me on compiling and now just takes 2 shots with Magnum ("being this is a .44 Magnum, the most powerful handgun in the world and would blow your head clean off...") set at "99999", though it should frankly only take one with it set that high but probably due to game coding.

Last edited by jking; 08-17-2018 at 19:03.
jking is offline
jking
AlliedModders Donor
Join Date: Jan 2012
Old 08-23-2018 , 17:32   Re: [L4D & L4D2] Gun Damage Booster (v6.0, 08-06-2018)
Reply With Quote #22

Crasher, not sure what's happening but getting this error now where I didn't before...

PHP Code:
L 08/23/2018 15:28:04SourceMod error session started
L 08
/23/2018 15:28:04Info (map "c7m1_docks") (file "errors_20180823.log")
L 08/23/2018 15:28:04: [SMException reportedEntity 1 is invalid
L 08
/23/2018 15:28:04: [SMBlaminggun_damage_booster.smx
L 08
/23/2018 15:28:04: [SMCall stack trace:
L 08/23/2018 15:28:04: [SM]   [0SDKHook
L 08
/23/2018 15:28:04: [SM]   [1Line 76gun_damage_booster.sp::OnClientDisconnect
L 08
/23/2018 15:28:08Error log file session closed
PHP Code:
public void OnClientDisconnect(int client)
{
    
SDKHook(clientSDKHook_OnTakeDamageOnTakeDamage);

jking is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 08-23-2018 , 17:41   Re: [L4D & L4D2] Gun Damage Booster (v6.0, 08-06-2018)
Reply With Quote #23

This think crasher intended that to be SDKUnHook.

change the code to
PHP Code:
public void OnClientDisconnect(int client)
{
    
SDKUnhook(clientSDKHook_OnTakeDamageOnTakeDamage);

__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
jking
AlliedModders Donor
Join Date: Jan 2012
Old 08-23-2018 , 17:52   Re: [L4D & L4D2] Gun Damage Booster (v6.0, 08-06-2018)
Reply With Quote #24

Quote:
Originally Posted by Lux View Post
This think crasher intended that to be SDKUnHook.

change the code to
PHP Code:
public void OnClientDisconnect(int client)
{
    
SDKUnhook(clientSDKHook_OnTakeDamageOnTakeDamage);

Thanks Lux, that did the trick
jking is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 08-23-2018 , 18:28   Re: [L4D & L4D2] Gun Damage Booster (v6.0, 08-06-2018)
Reply With Quote #25

Yeah it was meant to be unhooked.

Side note: You could also just remove the entire OnClientDisconnect() portion since I was informed a few weeks ago that SM automatically unhooks everything from entities when they are deleted. When a client disconnects, it counts as their entity being deleted.
__________________
Psyk0tik is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 08-23-2018 , 22:24   Re: [L4D & L4D2] Gun Damage Booster (v6.5, 08-23-2018)
Reply With Quote #26

Version 6.5 is out!

Changes

1. Removed the OnClientDisconnect() portion of the code.
2. Removed the bIsInfected() check so the damage boost applies towards friendly-fire as well.
__________________
Psyk0tik is offline
jking
AlliedModders Donor
Join Date: Jan 2012
Old 08-24-2018 , 10:11   Re: [L4D & L4D2] Gun Damage Booster (v6.5, 08-23-2018)
Reply With Quote #27

Quote:
Originally Posted by Crasher_3637 View Post
Version 6.5 is out!

Changes

1. Removed the OnClientDisconnect() portion of the code.
2. Removed the bIsInfected() check so the damage boost applies towards friendly-fire as well.
works great Crasher, ty.
jking is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 01-01-2019 , 04:08   Re: [L4D & L4D2] Gun Damage Booster (v6.5, 08-23-2018)
Reply With Quote #28

Is there any chance that this plugin could include damage boost for the grenade launcher too?
Sunyata is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 01-01-2019 , 08:17   Re: [L4D & L4D2] Gun Damage Booster (v6.5, 08-23-2018)
Reply With Quote #29

Just tested this plugin out, and it works as intended with all Infected except the Witch. For some unknown reason
I can't kill her the same with boosted damage. It just uses the in-game default settings.

To test this to the extreme, I set all the config file cvar values to their highest "9999" - Tank got killed with one bullet no problem, just doesn't want to work with the Witch.

Last edited by Sunyata; 01-01-2019 at 10:14.
Sunyata is offline
huwong
Junior Member
Join Date: Mar 2018
Old 05-20-2019 , 19:28   Re: [L4D & L4D2] Gun Damage Booster (v6.5, 08-23-2018)
Reply With Quote #30

hi,Crasher_3637..This Plugin have unlock css weapon?
huwong 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 15:42.


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