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

[L4D2] Realism Penetration Fix (v1.3 bugfix, 2014 Oct 5)


Post New Thread Reply   
 
Thread Tools Display Modes
dcx2
Senior Member
Join Date: Sep 2011
Old 06-20-2013 , 01:47   Re: [L4D2] Realism Penetration Fix (v1.1, 2013 June 20)
Reply With Quote #11

Version bump

grasscid, you can now nerf magnums and snipers in non-realism modes. Be careful, buffsniper=0 will nerf the sniper instead of "doing nothing" in non-realism.

Also, this plugin now uses the distance-damage-formula instead of 78.0 when nerfmagnum=2. Be careful, shooting commons that are far away could take five or six shots on expert realism.

Finally, asto's penetration limit has also been implemented. Just set magnumlimit and sniperlimit as desired. 0 will disable the limitation. I would like to eventually find a way to buff the magnumlimit beyond 2, but for now it's only really useful for limiting the magnum to killing one common at a time.

EDIT:

Whoops, a total newb mistake on my part, I forgot to clamp an array access and started getting a bunch of plugin errors. v1.2 fixes that
__________________

Last edited by dcx2; 06-20-2013 at 21:22.
dcx2 is offline
dcx2
Senior Member
Join Date: Sep 2011
Old 10-05-2014 , 13:25   Re: [L4D2] Realism Penetration Fix (v1.3 bugfix, 2013 June 20)
Reply With Quote #12

Version bump

nerfmagnum 2 no longer applies the distance damage penalty. That is, if the difficulty resulted in 25% damage, the nerfmagnum 2 will now do (0.25 damage factor * 78 base magnum damage). nerfmagnum 3 will apply the distance damage penalty, or (0.25 damage factor * TraceAttack's suggested damage according to distance)
__________________

Last edited by dcx2; 10-05-2014 at 13:25.
dcx2 is offline
bazrael
Senior Member
Join Date: Jan 2010
Location: Where Lucy became superw
Old 12-18-2016 , 13:54   Re: [L4D2] Realism Penetration Fix (v1.3 bugfix, 2014 Oct 5)
Reply With Quote #13

Try to download my modification if you encounter this error.
PHP Code:
L 12/19/2016 00:59:16SourceMod error session started
L 12
/19/2016 00:59:16Info (map "c1m4_atrium") (file "errors_20161219.log")
L 12/19/2016 00:59:16: [SMException reportedGame event "infected_hurt" has no active hook
L 12
/19/2016 00:59:16: [SMBlamingl4d2_realismpenfix_1.3.smx
L 12
/19/2016 00:59:16: [SMCall stack trace:
L 12/19/2016 00:59:16: [SM]   [0UnhookEvent
L 12
/19/2016 00:59:16: [SM]   [1Line 183C:\newl4d2\left4dead2\addons\sourcemod\scripting\l4d2_realismpenfix.sp::OnRPFDebugChanged
L 12
/19/2016 00:59:19Error log file session closed

Last edited by bazrael; 01-06-2017 at 11:44. Reason: 靠山山倒 靠人人跑 靠腰最好
bazrael is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 12-24-2016 , 04:03   Re: [L4D2] Realism Penetration Fix (v1.3 bugfix, 2014 Oct 5)
Reply With Quote #14

Also, I think, due to being away from the forums too long, you don't probably even know that the compiler already supports SDKHooks.

Just tried Get Plugin myself and the file downloaded.

Edit: Updated my post. I found it weird that it still compiled even though it had some minor errors in it.

2nd Edit: About the reason why I changed the convars, I'm too lazy to put long convars in my server.cfg

3rd Edit: Maybe, just maybe, the reason why it wasn't working to you is because of using an older version of SourceMod.

Last edited by cravenge; 12-24-2016 at 09:28.
cravenge is offline
bazrael
Senior Member
Join Date: Jan 2010
Location: Where Lucy became superw
Old 12-26-2016 , 12:56   Re: [L4D2] Realism Penetration Fix (v1.3 bugfix, 2014 Oct 5)
Reply With Quote #15

I deactivated "Game event "infected_hurt" has no active hook" error and added support for CS:Source sniper rifles.

DEPENDENCIES

This plugin requires SDKHooks, so please download the smx file if you just want to use.
Attached Files
File Type: smx l4d2_realismpenfix_1.3_CSSniper.smx (10.3 KB, 319 views)
File Type: sp Get Plugin or Get Source (l4d2_realismpenfix_1.3_CSSniper.sp - 859 views - 14.0 KB)
__________________
Kill all the son of a bitches, that's my official instructions.
L4Dε Modified Talker

Last edited by bazrael; 01-23-2017 at 14:28. Reason: Pow! Snipe these bitches! Ha ha!
bazrael is offline
krokroJoujou
Member
Join Date: Mar 2017
Old 08-27-2017 , 16:55   Re: [L4D2] Realism Penetration Fix (v1.3 bugfix, 2014 Oct 5)
Reply With Quote #16

Quote:
Originally Posted by bazrael View Post
I deactivated "Game event "infected_hurt" has no active hook" error and added support for CS:Source sniper rifles.

DEPENDENCIES

This plugin requires SDKHooks, so please download the smx file if you just want to use.
Hello sir, i was wondering if you could make the penetration fix so that the AWP sniper can kill 1 common infected in one shot. But only the AWP not the other snipers.

I can paid a bit of money for that.

Thank you.
Cordialy.
krokroJoujou is offline
bazrael
Senior Member
Join Date: Jan 2010
Location: Where Lucy became superw
Old 09-02-2017 , 01:42   Re: [L4D2] Realism Penetration Fix (v1.3 bugfix, 2014 Oct 5)
Reply With Quote #17

Quote:
Originally Posted by krokroJoujou View Post
Hello sir, i was wondering if you could make the penetration fix so that the AWP sniper can kill 1 common infected in one shot. But only the AWP not the other snipers.
Try to modify *.sp I offered.
Original codes: (line 294 and line 353)
PHP Code:
else if (((!g_bRealism && g_iBuffSniper 2) || (g_bRealism && g_iBuffSniper 0)) && (StrEqual(weaponName"weapon_hunting_rifle") || StrEqual(weaponName"weapon_sniper_military") || StrEqual(weaponName"weapon_sniper_scout") || StrEqual(weaponName"weapon_sniper_awp")))

...

if (
g_iSniperPenetrationLimit && g_iCurrentPenetrationCount[attacker] > g_iSniperPenetrationLimit && (StrEqual(weaponName"weapon_hunting_rifle") || StrEqual(weaponName"weapon_sniper_military") || StrEqual(weaponName"weapon_sniper_scout") || StrEqual(weaponName"weapon_sniper_awp"))) 
Delete other sniper rifles except AWP.

PHP Code:
else if (((!g_bRealism && g_iBuffSniper 2) || (g_bRealism && g_iBuffSniper 0)) && (StrEqual(weaponName"weapon_sniper_awp")))

...

if (
g_iSniperPenetrationLimit && g_iCurrentPenetrationCount[attacker] > g_iSniperPenetrationLimit && (StrEqual(weaponName"weapon_sniper_awp"))) 
bazrael is offline
krokroJoujou
Member
Join Date: Mar 2017
Old 09-07-2017 , 11:57   Re: [L4D2] Realism Penetration Fix (v1.3 bugfix, 2014 Oct 5)
Reply With Quote #18

Quote:
Originally Posted by bazrael View Post
Try to modify *.sp I offered.
Original codes: (line 294 and line 353)
PHP Code:
else if (((!g_bRealism && g_iBuffSniper 2) || (g_bRealism && g_iBuffSniper 0)) && (StrEqual(weaponName"weapon_hunting_rifle") || StrEqual(weaponName"weapon_sniper_military") || StrEqual(weaponName"weapon_sniper_scout") || StrEqual(weaponName"weapon_sniper_awp")))

...

if (
g_iSniperPenetrationLimit && g_iCurrentPenetrationCount[attacker] > g_iSniperPenetrationLimit && (StrEqual(weaponName"weapon_hunting_rifle") || StrEqual(weaponName"weapon_sniper_military") || StrEqual(weaponName"weapon_sniper_scout") || StrEqual(weaponName"weapon_sniper_awp"))) 
Delete other sniper rifles except AWP.

PHP Code:
else if (((!g_bRealism && g_iBuffSniper 2) || (g_bRealism && g_iBuffSniper 0)) && (StrEqual(weaponName"weapon_sniper_awp")))

...

if (
g_iSniperPenetrationLimit && g_iCurrentPenetrationCount[attacker] > g_iSniperPenetrationLimit && (StrEqual(weaponName"weapon_sniper_awp"))) 
Hello Bazrael, sorry i don't know how to do that.
krokroJoujou is offline
krokroJoujou
Member
Join Date: Mar 2017
Old 01-25-2018 , 11:09   Re: [L4D2] Realism Penetration Fix (v1.3 bugfix, 2014 Oct 5)
Reply With Quote #19

After some searching i think i made it. I think is my first time in my life i change a line of code!

http://www.sourcemod.net/compiler.php?go=dl&id=703702

Thx to Bazrael

e: the penetartion fix i did is for AWP+scout sniper only, the other snipers are not buffed. Because the military sniper and hunting rifle are already OP in realism expert no need to boost them, this way ppl are using CSS snipers a bit more often ;)

Last edited by krokroJoujou; 01-26-2018 at 06:35.
krokroJoujou is offline
BloodyBlade
Senior Member
Join Date: Feb 2018
Old 09-09-2019 , 10:13   Re: [L4D2] Realism Penetration Fix (v1.3 bugfix, 2014 Oct 5)
Reply With Quote #20

Converted plugin source to the latest syntax. Requires SourceMod 1.8 or newer.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_realismpenfix_1.3_CSSniper.sp - 495 views - 13.9 KB)
BloodyBlade 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 04:22.


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