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

[L4D & L4D2] Left 4 DHooks Direct (1.145) [03-Apr-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Charlie Reaper
New Member
Join Date: Oct 2011
Location: Right behind you
Old 11-23-2022 , 11:03   Re: [L4D & L4D2] Left 4 DHooks Direct (1.122) [15-Nov-2022]
Reply With Quote #801

Accelerator keeps listing this as the cause of crash, even on a clean SM install.
Code:
metamod.2.l4d2.dll!SourceHook::Impl::CVfnPtr::CVfnPtr(void *)
SM version: 1.11.0.6917
MM Version: 1.11.0.1148
Charlie Reaper is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 11-23-2022 , 11:03   Re: [L4D & L4D2] Left 4 DHooks Direct (1.122) [15-Nov-2022]
Reply With Quote #802

https://forums.alliedmods.net/showthread.php?t=340534
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-03-2022 , 12:11   Re: [L4D & L4D2] Left 4 DHooks Direct (1.123) [03-Dec-2022]
Reply With Quote #803

Code:
1.123 (03-Dec-2022)
    - Added native "L4D_SetBecomeGhostAt" to set when a dead Special Infected player will transition into ghost state. Requested by "sorallll".
    - L4D2: Fixed native "L4D_GetPlayerSpawnTime" on Windows reporting the wrong value.

    - Updated: Plugin and test plugin.
    - Updated: "left4dhooks.inc" Include file.
    - Updated: "left4dhooks.l4d1.txt" GameData file.
    - Updated: "left4dhooks.l4d2.txt" GameData file.
    - Updated: "/scripting/l4dd/l4dd_gamedata.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_natives.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_setup.sp" project file.
__________________
Silvers is offline
w1200441
Senior Member
Join Date: Dec 2011
Old 12-05-2022 , 09:46   Re: [L4D & L4D2] Left 4 DHooks Direct (1.123) [03-Dec-2022]
Reply With Quote #804

Quote:
Originally Posted by Silvers View Post
Code:
1.123 (03-Dec-2022)
    - Added native "L4D_SetBecomeGhostAt" to set when a dead Special Infected player will transition into ghost state. Requested by "sorallll".
    - L4D2: Fixed native "L4D_GetPlayerSpawnTime" on Windows reporting the wrong value.

    - Updated: Plugin and test plugin.
    - Updated: "left4dhooks.inc" Include file.
    - Updated: "left4dhooks.l4d1.txt" GameData file.
    - Updated: "left4dhooks.l4d2.txt" GameData file.
    - Updated: "/scripting/l4dd/l4dd_gamedata.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_natives.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_setup.sp" project file.
I got an error log as below:
Code:
L 12/05/2022 - 21: 39:58: [SM] Unable to load plugin "left4dhooks.smx": Native "DHookParam.GetAddress" was not found
w1200441 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-05-2022 , 10:47   Re: [L4D & L4D2] Left 4 DHooks Direct (1.123) [03-Dec-2022]
Reply With Quote #805

You need to update the DHooks extension with the SourceMod 1.11 version.
__________________
Silvers is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 12-05-2022 , 22:12   Re: [L4D & L4D2] Left 4 DHooks Direct (1.123) [03-Dec-2022]
Reply With Quote #806

L4D_IsInFirstCheckpoint returns wrong value at some point

Tests was done for c1m1 and c8m1.
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <left4dhooks>

#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart()
{
    
RegConsoleCmd("sm_ts"sm_ts);
}

public 
Action sm_ts(int clientint args)
{
    
PrintToChatAll("%i %i %i %i"L4D_IsAnySurvivorInCheckpoint(), L4D_IsAnySurvivorInStartArea(), L4D_IsInFirstCheckpoint(client), L4D_IsInLastCheckpoint(client));
    return 
Plugin_Handled;

Output for first checkpoint: 1 1 0 0
Output for last checkpoint: 1 1 0 1

left4dhooks is latest version
__________________
cry

Last edited by BHaType; 12-05-2022 at 22:14.
BHaType is offline
Send a message via AIM to BHaType
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-06-2022 , 20:33   Re: [L4D & L4D2] Left 4 DHooks Direct (1.124) [07-Dec-2022]
Reply With Quote #807

Code:
1.124 (07-Dec-2022)
    - Fixed natives "L4D2_SetIntMeleeAttribute" and "L4D2_GetIntMeleeAttribute" using Int32 instead of Int16. Thanks to "NoroHime" for reporting.
    - Fixed natives "L4D_IsInFirstCheckpoint" and "L4D_IsInLastCheckpoint" to use SDKCalls for accuracy instead of events. Thanks to "BHaType" for reporting.
    - Changed native "L4D_IsAnySurvivorInStartArea" to also use the "L4D_IsInFirstCheckpoint" method, since it often incorrectly reported false.

    - Updated: Plugin.
    - Updated: "/scripting/l4dd/l4dd_gamedata.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_natives.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_setup.sp" project file.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-07-2022 , 11:07   Re: [L4D & L4D2] Left 4 DHooks Direct (1.125) [07-Dec-2022]
Reply With Quote #808

Code:
1.125 (07-Dec-2022)
    - Fixed update 1.124 breaking "L4D2_OnEndVersusModeRound". Thanks to "Forgetest" for reporting.
    - Fixed update 1.124 errors on Windows L4D1. Thanks to "HarryPotter" for reporting.
    - Fixed native "L4D_SetBecomeGhostAt" not working on Windows L4D1.

    - Updated: Plugin.
    - Updated: "left4dhooks.l4d1.txt" GameData file.
    - Updated: "/scripting/l4dd/l4dd_gamedata.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_natives.sp" project file.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-21-2022 , 10:32   Re: [L4D & L4D2] Left 4 DHooks Direct (1.126) [21-Dec-2022]
Reply With Quote #809

Code:
1.126 (21-Dec-2022)
    - Added weapon attribute "L4D2IWA_DefaultSize" for the "L4D2_GetIntWeaponAttribute" and "L4D2_SetIntWeaponAttribute" natives to get a weapons default clip size. Thanks to "iaNanaNana" for adding.
    - Added natives "L4D_IsPositionInFirstCheckpoint" and "L4D_IsPositionInLastCheckpoint" to check if a given vector is within a checkpoint area. Thanks to "Forgetest" for the code.
    - Added native "L4D_GetEntityWorldSpaceCenter" to get an entities worldspace center. Requested by "A1m`".
    - Added forwards "L4D_OnCancelStagger", "L4D_OnCancelStagger_Post" and "L4D_OnCancelStagger_PostHandled" to notify when a players stagger is being cancelled. Requested by "Forgetest".
    - Fixed native "L4D_IsInLastCheckpoint" teleporting players in the final. Thanks to "HarryPotter" for reporting.
    - L4D1: Fixed forward "L4D_OnReleaseSurvivorPositions" crashing Windows servers by fixing the GameData signature.

    - Changed natives: "L4D2Direct_GetNextShoveTime" and "L4D2Direct_SetNextShoveTime" method. Please report any issues.
    - Deprecated natives: "L4D2Direct_GetShovePenalty" and "L4D2Direct_SetShovePenalty" in favor of using the "m_iShovePenalty" Prop_Send GetEntProp/SetEntProp natives.

    - Updated: Plugin and test plugin.
    - Updated: "left4dhooks.inc" Include file.
    - Updated: "left4dhooks.l4d1.txt" GameData file.
    - Updated: "left4dhooks.l4d2.txt" GameData file.
    - Updated: "/scripting/l4dd/l4dd_forwards.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_gamedata.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_natives.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_setup.sp" project file.
__________________
Silvers is offline
ProjectSky
AlliedModders Donor
Join Date: Aug 2020
Old 12-22-2022 , 00:05   Re: [L4D & L4D2] Left 4 DHooks Direct (1.126) [21-Dec-2022]
Reply With Quote #810

L4D_IsPositionIn* seems unreliable on some maps

example: c6m3_port



Adjust the L4D_GetNearestNavArea parameter work for me
Code:
L4D_GetNearestNavArea(fPos, 1000.0, _, true)
ProjectSky 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 14:33.


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