Raised This Month: $209 Target: $400
 52% 

[L4D & L4D2] Left 4 DHooks Direct (1.50) [22-Jul-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 07-13-2021 , 06:10   Re: [L4D & L4D2] Left 4 DHooks Direct (1.47) [10-Jul-2021]
Reply With Quote #391

Quote:
Originally Posted by Forgetest View Post
Offset for CTerrorPlayer::SpawnTimer seems not right on Linux. Plugin using related natives doesn't have good value returned.
This should be fixed in 1.49. I tested on Windows and Linux, seems to report the correct number. Negative time when spawning (-5.0 for example) counting down and positive time since spawn.
__________________

Last edited by Silvers; 07-13-2021 at 08:53.
Silvers is offline
jeremyvillanueva
AlliedModders Donor
Join Date: Jan 2021
Location: dcord:Jeremy333#7632
Old 07-14-2021 , 11:59   Re: [L4D & L4D2] Left 4 DHooks Direct (1.35) [10-Apr-2021]
Reply With Quote #392

Quote:
Originally Posted by Proaxel View Post
The workshop link doesn't work, it leads to the Steam Community home page.

Also we're having this issue where more than 4 players can't seem to join, I was wondering if you had any info about it. I described it here in this other post: https://forums.alliedmods.net/showpo...6&postcount=42

Edit:
I just now realized 'sm_cvar "survivor_limit"' was not in my server.cfg, so it was on its default of 4. That might have been the cause of my problem but I'm not sure yet.


Edit2: I can't seem to change it, it says it changed successfully but when I check it again it's still at 4?

Code:
sm_cvar "survivor_limit" 20.0
[SM] Changed cvar "survivor_limit" to "20.0".
sm_cvar "survivor_limit"
[SM] Value of cvar "survivor_limit": "4.000000"

Hi, I have fixed my post with l4dtoolz and I also got
the new version for 2.2,
Thanks a lot for the pump and thanks Silvers for the NICE WORK!!
https://forums.alliedmods.net/showpo...&postcount=294
jeremyvillanueva is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 07-21-2021 , 17:15   Re: [L4D & L4D2] Left 4 DHooks Direct (1.49) [13-Jul-2021]
Reply With Quote #393

Would it be possible for L4D1 to register the native L4D2_SpawnWitchBride but instead it should internally call L4D2_SpawnWitch function ?
Reason I'm asking is to avoid having 2 different downloads for an upcoming plugin just because the native is not registered for L4D1.
xerox8521 is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 07-22-2021 , 02:43   Re: [L4D & L4D2] Left 4 DHooks Direct (1.49) [13-Jul-2021]
Reply With Quote #394

Quote:
Originally Posted by xerox8521 View Post
Would it be possible for L4D1 to register the native L4D2_SpawnWitchBride but instead it should internally call L4D2_SpawnWitch function ?
Reason I'm asking is to avoid having 2 different downloads for an upcoming plugin just because the native is not registered for L4D1.
You don't need 2 versions, detect which game and use a bool switch to call either function depending on which game it's running on.
__________________
Silvers is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 07-22-2021 , 06:16   Re: [L4D & L4D2] Left 4 DHooks Direct (1.49) [13-Jul-2021]
Reply With Quote #395

Yes I tried this but sourcemod still complained that the native is not registered.
Example Code:
PHP Code:
void SpawnWitch(float Pos[3], float Angle[3])
{
    
EngineVersion version GetEngineVersion();
    if(
version == Engine_Left4Dead)
    {
        
L4D2_SpawnWitch(PosAngle);
    }
    else if(
version == Engine_Left4Dead2)
    {
        
L4D2_SpawnWitchBride(PosAngle);
    }

This would still result in "native not registered" error for L4D2_SpawnWitchBride if you try to run this on L4D1
xerox8521 is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 07-22-2021 , 09:39   Re: [L4D & L4D2] Left 4 DHooks Direct (1.50) [22-Jul-2021]
Reply With Quote #396

Thanks this has been fixed.

Code:
1.50 (22-Jul-2021)
    - Fixed "Native was not found" errors in L4D1. Thanks to "xerox8521" for reporting.
    - Test plugin: Fixed "L4D_OnMaterializeFromGhostPre" and "L4D_OnMaterializeFromGhost" throwing "String formatted incorrectly" errors.
__________________
Silvers 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 12:09.


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