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

[L4D2] Proper Impact Source | 0.2 : February 05, 2022 |


Post New Thread Reply   
 
Thread Tools Display Modes
Author
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Plugin ID:
7947
Plugin Version:
0.2
Plugin Category:
Technical/Development
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Chargers need some love too, you know?
    Old 02-03-2022 , 14:46   [L4D2] Proper Impact Source | 0.2 : February 05, 2022 |
    Reply With Quote #1

    About:
    Corrects the long standing problem of Charger impacts having null sources despite the causers being intact still.

    ConVars:
    • proper_impact_source-l4d2_ver
      → Version of the plug-in


    Installation:
    💡 Click "Get Plugin" and put the compiled .smx file you get into the plugins folder or "Get Source" if you want to compile it on your end for whatever reason
    💡 (Optional) Download the .txt file and put it in the gamedata folder

    Changelog:
    Code:
    0.2 (02/05/22)
    + 2 less bytes to patch for Linux
    
    0.1 (02/04/22)
    * First release
    Attached Files
    File Type: txt proper_impact_source-l4d2.txt (708 Bytes, 256 views)
    File Type: sp Get Plugin or Get Source (proper_impact_source-l4d2.sp - 321 views - 3.9 KB)

    Last edited by cravenge; 02-04-2022 at 16:56.
    cravenge is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 02-03-2022 , 16:49   Re: [L4D2] Proper Impact Source | 0.1 : February 04, 2022 |
    Reply With Quote #2

    Is this the same effect ?
    https://github.com/shqke/impactfix
    __________________

    Last edited by HarryPotter; 02-03-2022 at 16:51.
    HarryPotter is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 02-03-2022 , 19:28   Re: [L4D2] Proper Impact Source | 0.1 : February 04, 2022 |
    Reply With Quote #3

    Quote:
    Originally Posted by HarryPotter View Post
    Is this the same effect ?
    https://github.com/shqke/impactfix
    No, that one makes Chargers stop charging when coming in contact with some of the small props like the minigun found in the rooftop finale of No Mercy.

    This one sets the source of the impact staggers with their indexes passed instead of -1 to be able to determine who stumbled who through OnStaggered forward.

    Last edited by cravenge; 02-03-2022 at 19:47.
    cravenge is offline
    lightphoenix2
    Member
    Join Date: Feb 2016
    Old 02-04-2022 , 16:18   Re: [L4D2] Proper Impact Source | 0.1 : February 04, 2022 |
    Reply With Quote #4

    There seems to be a problem with :
    proper_impact_source-l4d2.sp(50) : error 017: undefined symbol "i"

    Code:
    for (iTemp = 0; iTemp < 4; iTemp++)
    {
        StoreToAddress(aTemp + view_as<Address>(iTemp), iNixPatchBytes[i], NumberType_Int8);
        StoreToAddress(aTemp + view_as<Address>(iTemp + 4), 0x90, NumberType_Int8);
    }
    Though, I replaced it with iTemp, not sure if this is correct,

    Last edited by lightphoenix2; 02-04-2022 at 16:20.
    lightphoenix2 is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 02-04-2022 , 16:50   Re: [L4D2] Proper Impact Source | 0.1 : February 04, 2022 |
    Reply With Quote #5

    Quote:
    Originally Posted by lightphoenix2 View Post
    There seems to be a problem with :
    proper_impact_source-l4d2.sp(50) : error 017: undefined symbol "i"

    Code:
    for (iTemp = 0; iTemp < 4; iTemp++)
    {
        StoreToAddress(aTemp + view_as<Address>(iTemp), iNixPatchBytes[i], NumberType_Int8);
        StoreToAddress(aTemp + view_as<Address>(iTemp + 4), 0x90, NumberType_Int8);
    }
    Though, I replaced it with iTemp, not sure if this is correct,
    Oops.
    cravenge is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 02-04-2022 , 16:56   Re: [L4D2] Proper Impact Source | 0.1 : February 04, 2022 |
    Reply With Quote #6

    Updated!
    Code:
    + 2 less bytes to patch for Linux
    cravenge 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 04:58.


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