View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-27-2020 , 05:33   Re: [L4D & L4D2] Left 4 DHooks Direct (1.3) [27-Feb-2020]
Reply With Quote #23

Another major change:

Code:
1.3 (27-Feb-2020)
    - Added forward "L4D_OnGetRandomPZSpawnPosition" to display when the game selects a position.
    - Added native "L4D_GetRandomPZSpawnPosition" to select a random position.
    - Thanks to "Accelerator74" for requesting.

    - Added "L4D2_OnSelectTankAttackPre" forward to handle "ACT_*" activity numbers.
    - Changed "L4D2_OnSelectTankAttack" to use "m_nSequence" numbers instead, just like the extension did.
    - Changed the "AnimHook" functions to use "ACT_*" activity numbers (pre-hook) and "m_nSequence" animation number (post-hook).
    - Existing plugins using "L4D2_OnSelectTankAttack" no longer need to change anything.
    - Existing plugins with the new "AnimHook" hook can now use normal model "m_nSequence" sequence numbers in the post hook.
    - Thanks to "Accelerator74" for reporting the fix.

    - Updated: Test plugin to demonstrate each change.
    - Updated: Plugin, Include and GameData files.
__________________
Silvers is offline