Raised This Month: $106 Target: $400
 26% 

Shotgun AltFire Lag-Compensation Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
V952
Member
Join Date: Jan 2012
Location: Odessa, Ukraine
Plugin ID:
4894
Plugin Version:
1.0.0.0
Plugin Category:
Technical/Development
Plugin Game:
Half-Life 2 Deathmatch
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This is a simple plugin to fix shotgun's double fire lag-compensation bug.
    Old 11-13-2015 , 08:53   Shotgun AltFire Lag-Compensation Fix
    Reply With Quote #1

    Everyone in HL2DM knows that shotgun double fire is broken due to invalid checks in SDK C++ code. The fix is very simple - you have to press IN_ATTACK and IN_ATTACK2 the same tick, but it's kinda hard for humans, so they write binds and aliases while this can be simply fixed.
    Attached Files
    File Type: sp Get Plugin or Get Source (shotgun_altfire_fix.sp - 422 views - 846 Bytes)
    File Type: smx shotgun_altfire_fix.smx (3.1 KB, 130 views)
    __________________
    HL2DM Real-Life Server: 195.138.78.198:27015
    V952 is offline
    Send a message via Skype™ to V952
    Jora
    New Member
    Join Date: Nov 2015
    Old 11-13-2015 , 18:03   Re: Shotgun AltFire Lag-Compensation Fix
    Reply With Quote #2

    that's great, thx.
    Jora is offline
    StrikerMan780
    AlliedModders Donor
    Join Date: Jul 2009
    Location: Canada
    Old 04-15-2016 , 23:22   Re: Shotgun AltFire Lag-Compensation Fix
    Reply With Quote #3

    Where is said invalid check in the SDK? I'm working on a Source SDK mod that is essentially a fixed/enhanced HL2DM.
    __________________
    StrikerMan780 is offline
    Send a message via Skype™ to StrikerMan780
    Ko2bnt
    New Member
    Join Date: Mar 2016
    Old 07-29-2016 , 11:16   Re: Shotgun AltFire Lag-Compensation Fix
    Reply With Quote #4

    Quote:
    Originally Posted by StrikerMan780 View Post
    Where is said invalid check in the SDK? I'm working on a Source SDK mod that is essentially a fixed/enhanced HL2DM.
    Search for WantsLagCompensationOnEntity
    Ko2bnt is offline
    Maxtasy
    Member
    Join Date: Oct 2010
    Old 03-23-2017 , 11:00   Re: Shotgun AltFire Lag-Compensation Fix
    Reply With Quote #5

    Hi, I think I might have a problem with this plugin. My sourcemod/logs/errors_20170323.log gets spammed by this error message:
    Code:
    L 03/23/2017 - 15:00:07: [SM] Call stack trace:
    L 03/23/2017 - 15:00:07: [SM]   [0] IsFakeClient
    L 03/23/2017 - 15:00:07: [SM]   [1] Line 128, /home/groups/alliedmodders/forums/files/4/0/5/7/5/75366.attach::OnPlayerRunCmd
    L 03/23/2017 - 15:00:07: [SM] Exception reported: Entity 1 (1) is invalid
    L 03/23/2017 - 15:00:07: [SM] Blaming: shotgun_altfire_fix.smx
    Maxtasy is offline
    Ade
    I love purple
    Join Date: May 2010
    Old 11-25-2017 , 01:12   Re: Shotgun AltFire Lag-Compensation Fix
    Reply With Quote #6

    A few years back tho I asked someone more experienced than me in C++ to look at what happens when both buttons are pressed and he said only 1 is registered, regardless of timing - usually hard to do at the same time as OP mentioned, anyways.
    Has anyone tested this and written down actual numbers with plugin on and off?
    __________________
    Ade is offline
    Reply


    Thread Tools
    Display Modes

    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 11:14.


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