Raised This Month: $51 Target: $400
 12% 

[L4D & L4D2] Left 4 DHooks Direct (1.146) [21-Apr-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 02-26-2024 , 17:34   Re: [L4D & L4D2] Left 4 DHooks Direct (1.143) [25-Jan-2024]
Reply With Quote #1081

This is a workaround to fully support:

1. [Player|Entity|Origin]InsideExitSafeRoom
2. [Player|Entity|Origin]InsideInitialSafeArea
3. [Player|Entity|Origin]OnUnknownArea
4. [Player|Entity|Origin]OutsideInFrontOfExitSafeRoomDoor (for example `c1m1_hotel` @end)

Unable to test on Linux. I have stated into the game data file that the Linux offsets are just +4. May be +0, +1, +4, +5 or +8. Also left an option into the script HKS_LOG_HUGE_DATA. This may help experienced users to see if the Linux offsets are good. In Windows
PHP Code:
hNavArea+OFFSET_362 = -65536
hNavArea
+OFFSET_363 = -256
hNavArea
+OFFSET_364 = -1
hNavArea
+OFFSET_365 16777215
hNavArea
+OFFSET_366 65535
hNavArea
+OFFSET_367 255 
if InsideExitSafeRoom. For OutsideInFrontOfExitSafeRoomDoor, all the values differ. The console command is help_see_nav_area. To ensure Linux offsets are right, run this command with HKS_LOG_HUGE_DATA enabled when inside exit safe room & check the main log file @OFFS 330<->399. You should see values above and correct Linux offsets.
Attached Files
File Type: txt hks.games.txt (24.7 KB, 27 views)
File Type: sp Get Plugin or Get Source (l4d2_helper.sp - 26 views - 16.5 KB)
__________________

Last edited by claudiuhks; 03-03-2024 at 14:05. Reason: Add Entity/ Player/ Origin SUPPORT
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-26-2024 , 22:08   Re: [L4D & L4D2] Left 4 DHooks Direct (1.143) [25-Jan-2024]
Reply With Quote #1082

As said, will fix the detection area when I get time. Got a code that should work for all maps/entities regardless what nav area says.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-05-2024 , 12:31   Re: [L4D & L4D2] Left 4 DHooks Direct (1.144) [05-Mar-2024]
Reply With Quote #1083

Code:
1.144 (05-Mar-2024)
    - Added forwards: "L4D2_OnStartUseAction", "L4D2_OnStartUseAction_Post" and "L4D2_OnStartUseAction_PostHandled" to trigger on actions, see "L4D2UseAction" enum from "left4dhooks_stocks.inc" include file. Requested by "Machine".
    - Added native "L4D_IsTouchingTrigger" to detect if an entity is touching a trigger.
    - Added native "L4D_StopBeingRevived" to stop a player being revived from incapacitated state.
    - Fixed native "L4D_IsInLastCheckpoint" to check if a player is within the "info_changelevel" area of the last checkpoint. Thanks to "Shadowysn" for help pointing out some information to make it work accurately.
    - Fixed native "AnimHookDisable" not completely working under some circumstances. Thanks to "Forgetest" for finding and fixing.
    - Fixed forward "L4D2_OnChooseVictim_Pre" throwing errors in L4D1.

    - Updated: Plugin and test plugin.
    - Updated: "/gamedata/l4dd/left4dhooks.l4d1.txt" GameData file.
    - Updated: "/gamedata/l4dd/left4dhooks.l4d2.txt" GameData file.
    - Updated: "/scripting/include/left4dhooks.inc" Include 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
49459317
Junior Member
Join Date: May 2021
Location: Sichuan
Old 03-06-2024 , 04:42   Re: [L4D & L4D2] Left 4 DHooks Direct (1.144) [05-Mar-2024]
Reply With Quote #1084

This update is exactly what I need, thank you very much!
49459317 is offline
zenelgpdev
New Member
Join Date: Aug 2023
Old 03-08-2024 , 08:44   Re: [L4D & L4D2] Left 4 DHooks Direct (1.144) [05-Mar-2024]
Reply With Quote #1085

Hello Silvers... What is happening with these files?

Img: https://imgur.com/a/RNfXARu

Can You help me?
-- Thank you so much!
---

Last edited by Silvers; 03-08-2024 at 11:28. Reason: Please don't quote the whole first post
zenelgpdev is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 03-08-2024 , 08:50   Re: [L4D & L4D2] Left 4 DHooks Direct (1.144) [05-Mar-2024]
Reply With Quote #1086

Quote:
Originally Posted by zenelgpdev View Post
Hello Silvers... What is happening with these files?

Img: https://imgur.com/a/RNfXARu
Download latest sourcemod version
__________________
HarryPotter is offline
zenelgpdev
New Member
Join Date: Aug 2023
Old 03-08-2024 , 15:55   Re: [L4D & L4D2] Left 4 DHooks Direct (1.144) [05-Mar-2024]
Reply With Quote #1087

Hi Harry,
I did this before and it still failed, but after reviewing some files I had obsolete dhooks.
-
But anyway, thank you very much!


Quote:
Originally Posted by HarryPotter View Post
Download latest sourcemod version
zenelgpdev is offline
Bone555
New Member
Join Date: Mar 2024
Old 03-18-2024 , 20:45   Re: [L4D & L4D2] Left 4 DHooks Direct (1.144) [05-Mar-2024]
Reply With Quote #1088

Getting an error when I try to use this. Using the latest dev sourcemod/metamod and using the latest hook on first page.
Your help will be most grateful!

L 03/18/2024 - 19:20:29: SourceMod error session started
L 03/18/2024 - 19:20:29: Info (map "c14m1_junkyard") (file "\addons\sourcemod\logs\errors_20240318.l og")
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "CDirector::HasAnySurvivorLeftSafeArea" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "Script_ForceVersusStart" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "Script_ForceSurvivalStart" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "CDirector::ForceNextStage::Address" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "Script_ForceScavengeStart" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "CDirector::GetFurthestSurvivorFlow" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "CDirector::GetScriptValueFloat" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "CTerrorPlayer::SetShovePenalty" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "CTerrorPlayer::CancelStagger" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [SM] Exception reported: Failed to find signature: CTerrorPlayer::OnCarryEnded
L 03/18/2024 - 19:20:29: [SM] Blaming: left4dhooks.smx
L 03/18/2024 - 19:200: [SM] Call stack trace:
L 03/18/2024 - 19:200: [SM] [0] SetFailState
L 03/18/2024 - 19:200: [SM] [1] Line 1694, l4dd\l4dd_gamedata.sp::LoadGameData
L 03/18/2024 - 19:200: [SM] [2] Line 540, left4dhooks.sp::OnPluginStart
L 03/18/2024 - 19:200: [SM] Unable to load plugin "left4dhooks.smx": Error detected in plugin startup (see error logs)
L 03/18/2024 - 19:27:46: Error log file session closed.
Bone555 is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 03-18-2024 , 20:53   Re: [L4D & L4D2] Left 4 DHooks Direct (1.144) [05-Mar-2024]
Reply With Quote #1089

Quote:
Originally Posted by Bone555 View Post
Getting an error when I try to use this. Using the latest dev sourcemod/metamod and using the latest hook on first page.
Your help will be most grateful!

L 03/18/2024 - 19:20:29: SourceMod error session started
L 03/18/2024 - 19:20:29: Info (map "c14m1_junkyard") (file "\addons\sourcemod\logs\errors_20240318.l og")
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "CDirector::HasAnySurvivorLeftSafeArea" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "Script_ForceVersusStart" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "Script_ForceSurvivalStart" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "CDirector::ForceNextStage::Address" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "Script_ForceScavengeStart" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "CDirector::GetFurthestSurvivorFlow" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "CDirector::GetScriptValueFloat" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "CTerrorPlayer::SetShovePenalty" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [left4dhooks.smx] Failed to find signature: "CTerrorPlayer::CancelStagger" (WIN/2/1.144)
L 03/18/2024 - 19:20:29: [SM] Exception reported: Failed to find signature: CTerrorPlayer::OnCarryEnded
L 03/18/2024 - 19:20:29: [SM] Blaming: left4dhooks.smx
L 03/18/2024 - 19:200: [SM] Call stack trace:
L 03/18/2024 - 19:200: [SM] [0] SetFailState
L 03/18/2024 - 19:200: [SM] [1] Line 1694, l4dd\l4dd_gamedata.sp::LoadGameData
L 03/18/2024 - 19:200: [SM] [2] Line 540, left4dhooks.sp::OnPluginStart
L 03/18/2024 - 19:200: [SM] Unable to load plugin "left4dhooks.smx": Error detected in plugin startup (see error logs)
L 03/18/2024 - 19:27:46: Error log file session closed.
I suspect your gamedata is a different version than the smx. Download the latest version and ensure you install all files, including gamedata.
__________________
Mystik Spiral is offline
Bone555
New Member
Join Date: Mar 2024
Old 03-20-2024 , 10:31   Re: [L4D & L4D2] Left 4 DHooks Direct (1.144) [05-Mar-2024]
Reply With Quote #1090

Quote:
Originally Posted by Mystik Spiral View Post
I suspect your gamedata is a different version than the smx. Download the latest version and ensure you install all files, including gamedata.
Thanks! I uninstalled the full game, deleted the folder. Reinstall the game, installed the stable metamod, dev sourcemod and lastly latest version of l4dhook on 1st page. This time around it worked with no errors; not sure what happen the first time. But thanks again!
Hook is showing up and working now.

] sm plugins list
[SM] Listing 18 plugins:
01 "Admin File Reader" (1.12.0.7113) by AlliedModders LLC
02 "Admin Help" (1.12.0.7113) by AlliedModders LLC
03 "Admin Menu" (1.12.0.7113) by AlliedModders LLC
04 "Anti-Flood" (1.12.0.7113) by AlliedModders LLC
05 "Basic Ban Commands" (1.12.0.7113) by AlliedModders LLC
06 "Basic Chat" (1.12.0.7113) by AlliedModders LLC
07 "Basic Comm Control" (1.12.0.7113) by AlliedModders LLC
08 "Basic Commands" (1.12.0.7113) by AlliedModders LLC
09 "Basic Info Triggers" (1.12.0.7113) by AlliedModders LLC
10 "Basic Votes" (1.12.0.7113) by AlliedModders LLC
11 "Client Preferences" (1.12.0.7113) by AlliedModders LLC
12 "Fun Commands" (1.12.0.7113) by AlliedModders LLC
13 "Fun Votes" (1.12.0.7113) by AlliedModders LLC
14 "[L4D & L4D2] Left 4 DHooks Direct" (1.144) by SilverShot
15 Disabled: "Nextmap" (1.12.0.7113) by AlliedModders LLC
16 "Player Commands" (1.12.0.7113) by AlliedModders LLC
17 "Reserved Slots" (1.12.0.7113) by AlliedModders LLC
18 "Sound Commands" (1.12.0.7113) by AlliedModders LLC
Bone555 is offline
Reply



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 05:00.


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