Raised This Month: $45 Target: $400
 11% 

[L4D & L4D2] Left 4 DHooks Direct (1.85) [10-Jan-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-10-2022 , 07:55   Re: [L4D & L4D2] Left 4 DHooks Direct (1.84) [08-Jan-2022]
Reply With Quote #581

Without the "2":

PHP Code:
#include <left4dhooks>

public Action L4D_OnSpawnSpecial(int &zombieClass, const float vecPos[3], const float vecAng[3])
{
    
PrintToChatAll("Spawn %d"zombieClass);

Works for me everytime.
__________________
Silvers is offline
BRU7US
Member
Join Date: Jul 2020
Location: Tatarstan, Kazan
Old 01-10-2022 , 11:53   Re: [L4D & L4D2] Left 4 DHooks Direct (1.84) [08-Jan-2022]
Reply With Quote #582

Quote:
Originally Posted by Silvers View Post
Without the "2":

PHP Code:
#include <left4dhooks>

public Action L4D_OnSpawnSpecial(int &zombieClass, const float vecPos[3], const float vecAng[3])
{
    
PrintToChatAll("Spawn %d"zombieClass);

Works for me everytime.
Sorry, i've done a mistake in message. I meant "L4D_".
BRU7US is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-10-2022 , 19:32   Re: [L4D & L4D2] Left 4 DHooks Direct (1.85) [10-Jan-2022]
Reply With Quote #583

Quote:
Originally Posted by DarklSide View Post
-
Thanks, this is now fixed.
Code:
1.85 (10-Jan-2022)
    - Fixed "L4D2IWA_Bucket", "L4D2IWA_Tier", "L4D2FWA_VerticalPunch" and "L4D2FWA_HorizontalPunch" not reading offsets. Thanks to "DarklSide" for reporting.
    - Fixed native "AnimHookDisable" removing all hooks when multiple identical hook callbacks are added from a single plugin. Thanks to "Eärendil" for reporting.


Quote:
Originally Posted by BRU7US View Post
Sorry, i've done a mistake in message. I meant "L4D_".
I tested and it responds every time. I don't see anything wrong unless there are some clone functions like previous issues with L4D1. You're doing this via client console? The SI spawns but the hook does not trigger? Which OS, which game? I can take a closer look if you provide details.
__________________
Silvers is offline
BRU7US
Member
Join Date: Jul 2020
Location: Tatarstan, Kazan
Old 01-12-2022 , 12:49   Re: [L4D & L4D2] Left 4 DHooks Direct (1.85) [10-Jan-2022]
Reply With Quote #584

Quote:
Originally Posted by Silvers View Post
Thanks, this is now fixed.
Code:
1.85 (10-Jan-2022)
    - Fixed "L4D2IWA_Bucket", "L4D2IWA_Tier", "L4D2FWA_VerticalPunch" and "L4D2FWA_HorizontalPunch" not reading offsets. Thanks to "DarklSide" for reporting.
    - Fixed native "AnimHookDisable" removing all hooks when multiple identical hook callbacks are added from a single plugin. Thanks to "Eärendil" for reporting.

I tested and it responds every time. I don't see anything wrong unless there are some clone functions like previous issues with L4D1. You're doing this via client console? The SI spawns but the hook does not trigger? Which OS, which game? I can take a closer look if you provide details.
OS: Linux (Ubuntu 18.04)
Plugins: L4DHooks, Weapon Spawner, my own Spawn Debugger and default set of plugins with SM
SourceMod: 1.11

Code of debugger:
Code:
#include <sourcemod>
#include <sdktools>
#include <left4dhooks>
#include <colors>

public Action L4D_OnSpawnSpecial(int &zombieClass, const float vecPos[3], const float vecAng[3])
{
    CPrintToChatAll("[{green}Spawn Debugger{default}]: Spawned {olive}zombieClass{default} = {red}%d", zombieClass);
}
Error logs: clear.
Video about problem: https://www.youtube.com/watch?v=fb-tuvzxZaQ

L4D_OnSpawnSpecial is triggering, but only if you spawned a huge number of SI. You can see example in video.

Thanks!
Attached Thumbnails
Click image for larger version

Name:	pluginslist.png
Views:	22
Size:	46.2 KB
ID:	193094  
BRU7US 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 01:12.


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