View Single Post
kmah
Junior Member
Join Date: Oct 2019
Old 08-01-2020 , 10:23   Re: [L4D & L4D2] Tank Rock Lag Compensation
Reply With Quote #16

Quote:
Originally Posted by larrybrains View Post
This plugin seems to cause issues with the hunting rifle being able to hit tank rocks.

When the plugin is enabled, nobody on my server can destroy tank rocks with the hunting rifle. If I disable this plugin, the issue goes away.

EDIT: I think I found a fix:

For "IsRifle", needed to add a line for "hunting_rifle"

PHP Code:
public bool IsRifle(const char[] weaponName)
{
    return 
StrEqual(weaponName"rifle")
        || 
StrEqual(weaponName"rifle_ak47")
        || 
StrEqual(weaponName"rifle_desert")
        || 
StrEqual(weaponName"rifle_m60")
        || 
StrEqual(weaponName"rifle_sg552")
        || 
StrEqual(weaponName"hunting_rifle");

EDIT 2: Actually, it might fit better under IsSniper, but works either way.

man many thanks i was looking for that for age, thanks bunch dude you save my life
kmah is offline