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

[L4D & L4D2] Left 4 DHooks Direct (1.144) [05-Mar-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Mitsuru
Member
Join Date: Jun 2013
Location: Fakes country
Old 08-17-2020 , 03:28   Re: [L4D & L4D2] Special Infected Limit
Reply With Quote #141

[QUOTE=Silvers;2708749]About:
  • Uses the z_*_limit cvar values to limit the maximum number of each Special Infected type allowed to be alive.

No problem!

Last edited by Mitsuru; 10-19-2020 at 07:18. Reason: Vague question
Mitsuru is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 08-17-2020 , 16:55   Re: [L4D & L4D2] Special Infected Limit
Reply With Quote #142

[QUOTE=Mitsuru;2714503]
Quote:
Originally Posted by Silvers View Post
About:
  • Uses the z_*_limit cvar values to limit the maximum number of each Special Infected type allowed to be alive.

The plugin does not run.
DH&ldhooks
You need to provide more information than that. What plugin doesn't work?
__________________
Spirit_12 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-18-2020 , 14:44   Re: [L4D & L4D2] Special Infected Limit
Reply With Quote #143

Quote:
Originally Posted by Mitsuru View Post
The plugin does not run.
DH&ldhooks
Works for me. Need more details, checked error log? Is it not listed as running in "sm plugins list" ?
__________________
Silvers is offline
Forgetest
Member
Join Date: Aug 2020
Old 08-19-2020 , 13:01   Re: [L4D & L4D2] Left 4 DHooks Direct (1.17) [20-Jul-2020]
Reply With Quote #144

Hey Silvers, I meet some issues using your plugin along with L4D2 competitive rework on sourcemod 1.10.

1. The native L4D2_CTimerStart doesn't work properly when setting the duration of L4D2CT_VersusStartTimer, leading to a situation that game will call "L4D_OnFirstSurvivorLeftSafeArea" after "versus_force_start_time" seconds passed, which is definitely blocked by Ready Up since players are not ready while the duration cannot be set.

I notice that you have used TheDirector pointer for the "L4D2_CTimer"s. However in l4d2_direct, to set the timer, it actually use TheDirector->VersusModePtr:

Code:
stock CountdownTimer:L4D2Direct_GetVSStartTimer()
{
	static Address:pVSStartTimer = Address_Null;
	if(pVSStartTimer == Address_Null)
	{
		new offs = GameConfGetOffset(L4D2Direct_GetGameConf(), "CDirectorVersusMode::VersusStartTimer");
		if(offs == -1) return CTimer_Null;
		pVSStartTimer = L4D2Direct_GetCDirectorVersusMode() + Address:offs;
	}
	return CountdownTimer:pVSStartTimer;
}
2. The native L4D_GetVersusMaxCompletionScore seems to return a completely irrelevant value, and L4D_SetVersusMaxCompletionScore doesn't work as well:





Best wishes ;)

btw is there any substitution to get the map distance?
Forgetest is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 08-19-2020 , 17:57   Re: [L4D & L4D2] Left 4 DHooks Direct (1.17) [20-Jul-2020]
Reply With Quote #145

Quote:
Originally Posted by Forgetest View Post
btw is there any substitution to get the map distance?
Take a look at this plugin.

https://forums.alliedmods.net/showthread.php?p=2682584
__________________
Spirit_12 is offline
Forgetest
Member
Join Date: Aug 2020
Old 08-19-2020 , 18:52   Re: [L4D & L4D2] Left 4 DHooks Direct (1.17) [20-Jul-2020]
Reply With Quote #146

Quote:
Originally Posted by Spirit_12 View Post
Thanks for the reply. But probably it doesn't include the exact function with which I could fix the scoremod.
Flow distance is a percentage, different from map distance, aka Versus Max Completion Score, which is an integer of a few hundred.

Thanks again ;)
Forgetest is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 08-19-2020 , 19:54   Re: [L4D & L4D2] Left 4 DHooks Direct (1.17) [20-Jul-2020]
Reply With Quote #147

Quote:
Originally Posted by Forgetest View Post
2. The native L4D_GetVersusMaxCompletionScore seems to return a completely irrelevant value, and L4D_SetVersusMaxCompletionScore doesn't work as well:
That with that native vs gamecode

PHP Code:
The game does this
(CTerrorGameRules::GetVersusMaxCompletionScore(g_pGameRules) >> 2
No idea maybe will help you with that native.

EDIT:
Looks like the game treats it as a float while l4dhooks treats it as a int.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 08-19-2020 at 20:19.
Lux is offline
SDArt
Member
Join Date: Aug 2019
Old 08-19-2020 , 20:04   Re: [L4D & L4D2] Left 4 DHooks Direct (1.17) [20-Jul-2020]
Reply With Quote #148

Hello the smoker tongue and boomer vomit have 0 cooldown and makes the survivors have 0 collision when the smoker grabs a survivor with his tongue + boomer can still vomit while being shoved is this happening just to me? or was that the purpose?
I noticed that this DHooks (Experimental Dynamic Detour support) extension does that strange behaveviour.
SDArt is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-19-2020 , 20:12   Re: [L4D & L4D2] Left 4 DHooks Direct (1.17) [20-Jul-2020]
Reply With Quote #149

Quote:
Originally Posted by Forgetest View Post
Hey Silvers, I meet some issues using your plugin along with L4D2 competitive rework on sourcemod 1.10.
You can use "L4D2Direct_GetMapMaxFlowDistance" to get the float value of the maps maximum distance, seems to be games flow distance units. See Anti-Rush for example.

Sent PM with updated Left4DHooks, let me know if that works:
Spoiler


I don't know if "L4D_SetVersusMaxCompletionScore" ever worked to change the score. Unless the issue was the "g_pGameRules" bug.



Quote:
Originally Posted by SDArt View Post
Hello the smoker tongue and boomer vomit have 0 cooldown and makes the survivors have 0 collision when the smoker grabs a survivor with his tongue + boomer can still vomit while being shoved is this happening just to me? or was that the purpose?
I noticed that this DHooks (Experimental Dynamic Detour support) extension does that strange behaveviour.
Maybe some plugin you have running, this is not default behaviour with only left4dhooks installed.
__________________

Last edited by Silvers; 08-19-2020 at 20:30.
Silvers is offline
SDArt
Member
Join Date: Aug 2019
Old 08-20-2020 , 05:24   Re: [L4D & L4D2] Left 4 DHooks Direct (1.17) [20-Jul-2020]
Reply With Quote #150

It appears that some outdated plugins was doing the bad behaviour it works smooth now sorry for the worries!
SDArt 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 08:01.


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