View Single Post
SEGA EMPRESS ERIS
Senior Member
Join Date: Sep 2010
Location: THE-MILKY-WAY-GALAXY
Old 04-09-2021 , 23:50   Re: [L4D2] Shotgun and bolt rifle fire rate and reload modification?
Reply With Quote #6

PHP Code:
#include <sourcemod>
#include <WeaponHandling>

public void WH_OnReloadModifier(int clientint weaponL4D2WeaponType weapontypefloat &speedmodifier)
{
    switch (
weapontype)
    {
        case 
L4D2WeaponType_PumpshotgunL4D2WeaponType_PumpshotgunChromespeedmodifier speedmodifier 1.25// 25% faster reload
        
case L4D2WeaponType_AutoshotgunL4D2WeaponType_AutoshotgunSpasspeedmodifier speedmodifier 1.25// 25% faster reload
    
}

OK I tried this but it doesnt compile, how to get it to compile to play around with reload values in the game? i also had the weaponhandling plugin installed.
__________________
SEGA EMPRESS ERIS is offline