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
nikolacar4
Junior Member
Join Date: Mar 2018
Old 12-15-2020 , 16:32   Re: [L4D & L4D2] Left 4 DHooks Direct (1.29) [10-Oct-2020]
Reply With Quote #261

Quote:
Originally Posted by Dragokas View Post
It's not a question for this topic.
As I already told, create a separate topic for your case.
Will do.. Can i contact you in PM if i need help?
Thanks
nikolacar4 is offline
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old 01-20-2021 , 16:56   Re: [L4D & L4D2] Left 4 DHooks Direct (1.29) [10-Oct-2020]
Reply With Quote #262

Hello, Is any way to make a forward like L4D_IsInLastCheckpoint that returns entities instead of clients?
I mean dropped weapons, common infecteds, witches, etc. I need to get dropped weapons on last saferoom specifically.
Thanks

Last edited by axelnieves2012; 01-20-2021 at 17:00.
axelnieves2012 is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 01-21-2021 , 01:02   Re: [L4D & L4D2] Left 4 DHooks Direct (1.29) [10-Oct-2020]
Reply With Quote #263

I believe you can check that based on entities. Like changekevel entity will always be present on ending saferoom.
__________________
Spirit_12 is offline
Krufftys Killers
Senior Member
Join Date: Jan 2014
Old 01-24-2021 , 10:47   Re: [L4D & L4D2] Left 4 DHooks Direct (1.29) [10-Oct-2020]
Reply With Quote #264

Sometimes my server gets this error L 01/24/2021 - 09:41:44: [left4dhooks.smx] Failed to load "FastGetSurvivorSet" signature is there a way to fix it?
Krufftys Killers is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 01-24-2021 , 18:00   Re: [L4D & L4D2] Left 4 DHooks Direct (1.29) [10-Oct-2020]
Reply With Quote #265

Quote:
Originally Posted by Krufftys Killers View Post
Sometimes my server gets this error L 01/24/2021 - 09:41:44: [left4dhooks.smx] Failed to load "FastGetSurvivorSet" signature is there a way to fix it?
Yeah you just fix the signature.
__________________
Spirit_12 is offline
Forgetest
Member
Join Date: Aug 2020
Old 02-10-2021 , 09:51   Re: [L4D & L4D2] Left 4 DHooks Direct (1.29) [10-Oct-2020]
Reply With Quote #266

PHP Code:
/**
 * @brief Get the remaining spawn time for an SI
 * @remarks This is meant for Special infected in ghost mode in versus.
 *
 * @return            Time (seconds) until the SI will spawn.
 */
// L4D2 only.
native float L4D_GetPlayerSpawnTime(int player); 
This native doesn't return the correct remaining time, but a timestamp exactly when SI spawns again according to the game time.

It would be right if trying L4D_GetPlayerSpawnTime(client) - GetGameTime().
Forgetest is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-16-2021 , 00:20   Re: [L4D & L4D2] Left 4 DHooks Direct (1.30) [15-Feb-2021]
Reply With Quote #267

Quote:
Originally Posted by tRololo312312 View Post
"L4D2_OnFindScavengeItem" has trouble picking up dropped medkits and defibs, is it possible to fix this?
That's a problem with the games function then, not this plugin.


Quote:
Originally Posted by Krufftys Killers View Post
Sometimes my server gets this error L 01/24/2021 - 09:41:44: [left4dhooks.smx] Failed to load "FastGetSurvivorSet" signature is there a way to fix it?
You might have another plugin/extension using this and conflicting with left4dhooks. You should remove that. The signature was working fine after the update when I checked and seems no one else has reported this being an issue.


Code:
1.30 (15-Feb-2021)
    - Fixed natives "L4D2_SetIntMeleeAttribute" and "L4D2_SetFloatMeleeAttribute" functions. Thanks to "bw4re" for reporting.
    - Fixed native "L4D_GetPlayerSpawnTime" giving the wrong time. Thanks to "Forgetest" for reporting.

    - Fixes by "Dragokas"
    - Fixed native "L4D_IsFirstMapInScenario" call with SDKCall_Raw returned error in SM 1.11, L4D1. Thanks to "Crasher" for reporting, and "Rostu" for help.
    - Fixed "ForceNextStage" signature (WIN).

    - Updated: L4D2 GameData file.
    - Updated: Plugin
__________________

Last edited by Silvers; 02-26-2021 at 02:16.
Silvers is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-16-2021 , 06:20   Re: [L4D & L4D2] Left 4 DHooks Direct (1.30) [15-Feb-2021]
Reply With Quote #268

FortyTwo suggestion to try ValveCall_GameRules is crashed there, and his contribution to SM broke that function.
That was a @Rostu trick in my fix.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 02-16-2021 , 20:23   Re: [L4D & L4D2] Left 4 DHooks Direct (1.30) [15-Feb-2021]
Reply With Quote #269

To commands to more targets:

Can add @randominccapedsurvivor = "@ris"
Can add @randomsurvivor = "@rs"
Can add @randominfected = "@ri"
Can add @randomtank = "@rt"

Can add @inccapedsurvivorbot = "@isb"
Can add @survivorbot = "@sb"
Can add @infectedbot = "@ib"
Can add @tankbot = "@tb"

Can add a debug (toggle command) of player/survivors action to detect the functions and apply in conditions of other plugins?

Last edited by Tonblader; 02-22-2021 at 02:39.
Tonblader is offline
Forgetest
Member
Join Date: Aug 2020
Old 02-18-2021 , 07:40   Re: [L4D & L4D2] Left 4 DHooks Direct (1.30) [15-Feb-2021]
Reply With Quote #270

L4D_GetPlayerSpawnTime seems to be broken. I believe the calculation between LoadFromAddress and a float is the cause.

After a bit tests on it, I found it correct to reinterpret the value returned from LoadFromAddress via the view_as cast. Wish it helps.
Forgetest 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 21:10.


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