View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-22-2021 , 20:30   Re: [L4D & L4D2] Left 4 DHooks Direct (1.42) [23-Jun-2021]
Reply With Quote #336

Code:
1.42 (23-Jun-2021)
    - L4D & L4D2 update:
    - Added forward "L4D_OnVomitedUpon" when client is covered in vomit.
    - Added forward "L4D_OnEnterGhostStatePre" with the ability to block entering ghost state.
    - Changed 2 signatures to be compatible with detouring: "CTerrorPlayer::OnStaggered" and "CTerrorPlayer::OnVomitedUpon".

    - L4D2 update only:

    - Added forward "L4D2_OnHitByVomitJar" when a Bilejar explodes on clients.
    - Added native "L4D2_NavAreaTravelDistance" to return the nav flow distance between two areas.
    - Added native "L4D2_UseAdrenaline" to give a player the Adrenaline effect and health benefits.

    - Added various natives as wrappers executing VScript code:
        - These are slower than native SDKCalls, please report popular ones to convert to fast SDKCalls.
        "L4D2_VScriptWrapper_GetMapNumber"
        "L4D2_VScriptWrapper_HasEverBeenInjured"
        "L4D2_VScriptWrapper_GetAliveDuration"
        "L4D2_VScriptWrapper_IsDead"
        "L4D2_VScriptWrapper_IsDying"
        "L4D2_VScriptWrapper_UseAdrenaline"
        "L4D2_VScriptWrapper_ReviveByDefib"
        "L4D2_VScriptWrapper_ReviveFromIncap"
        "L4D2_VScriptWrapper_GetSenseFlags"
        "L4D2_VScriptWrapper_NavAreaBuildPath"
        "L4D2_VScriptWrapper_NavAreaTravelDistance" // Added as a demonstration and test, SDKCall is available, use "L4D2_NavAreaTravelDistance" instead.

    - Updated: Plugin, GameData and Include file. Both L4D1 and L4D2.
    - Thanks to "Eärendil" for showing me how to call some VScript functions.
Big update!
__________________
Silvers is offline