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
hoanganh81097
Senior Member
Join Date: Apr 2016
Old 02-28-2020 , 01:50   Re: [L4D & L4D2] Left 4 DHooks Direct (1.4) [28-Feb-2020]
Reply With Quote #31

Thank Silvers for supporting.
It seems to be worked. But i need to test more. Maybe my plugin cant work or maybe native L4D_OnGetScriptValueInt with sm 1.10
Can you share left4dhooks 1.9 ?. I cant compile with sm 1.9. I need this to test.
Code:
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(210) : error 139: could not find type "PrivateForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(211) : error 139: could not find type "PrivateForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(224) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(225) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(226) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(227) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(228) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(229) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(230) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(231) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(232) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(233) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(234) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(235) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(236) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(237) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(238) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(239) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(240) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(241) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(242) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(243) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(244) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(245) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(246) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]    scripting 1.09\left4dhooks.sp(247) : error 139: could not find type "GlobalForward"
[28/2/2020 1:50:06 PM]     
[28/2/2020 1:50:06 PM]     Compilation aborted.
[28/2/2020 1:50:06 PM]     26 Errors.
[28/2/2020 1:50:06 PM]     
[28/2/2020 1:50:06 PM] Compiling failed! Compiled output file can not be found!

Last edited by hoanganh81097; 02-28-2020 at 01:54.
hoanganh81097 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-28-2020 , 08:57   Re: [L4D & L4D2] Left 4 DHooks Direct (1.4) [28-Feb-2020]
Reply With Quote #32

Quote:
Originally Posted by hoanganh81097 View Post
Thank Silvers for supporting.
It seems to be worked. But i need to test more. Maybe my plugin cant work or maybe native L4D_OnGetScriptValueInt with sm 1.10
Can you share left4dhooks 1.9 ?. I cant compile with sm 1.9.
No.

Quote:
Originally Posted by Silvers View Post
Requires SourceMod 1.10 due to various methodmaps. Done this to force servers to update. Can work on SM 1.9 but requires reverting methodmaps code and variable types. Instead you should just upgrade SM to benfit from fixes, improvements, and new features.
__________________

Last edited by Silvers; 02-28-2020 at 08:58.
Silvers is offline
hoanganh81097
Senior Member
Join Date: Apr 2016
Old 02-28-2020 , 09:30   Re: [L4D & L4D2] Left 4 DHooks Direct (1.4) [28-Feb-2020]
Reply With Quote #33

Nevermind, after few test ...
"MaxSpecials" always become "n" when i change value
PHP Code:
public Action L4D_OnGetScriptValueInt(const char[] keyint &retVal)
{
    if (
StrEqual(key"MaxSpecials") )
    {
        
PrintToServer("TEST_FWD ############## %s %d"keyretVal);
        
retVal = -1// No specials can spawn.
        
retVal 0// 1 special can spawn.
        
retVal 1// 2 specials can spawn.  -------n is here
        
return Plugin_Handled;
    }
    return 
Plugin_Continue;

It seems impossible to change "MaxSpecials" based on Survivors like l4d_superversus. ( but can work with l4dt - code line 1330 )
l4d_superversus.sp
sorry for my bad english.
hoanganh81097 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-28-2020 , 10:07   Re: [L4D & L4D2] Left 4 DHooks Direct (1.4) [28-Feb-2020]
Reply With Quote #34

This was just an example... Use the original plugin you were using to modify the value. Or use the above and change N to the value you want, I mean seriously c'mon what do you expect.
__________________
Silvers is offline
hoanganh81097
Senior Member
Join Date: Apr 2016
Old 02-28-2020 , 11:17   Re: [L4D & L4D2] Left 4 DHooks Direct (1.4) [28-Feb-2020]
Reply With Quote #35

Sorry about that. I have to reconfig my plugin and now "MaxSpecials" worked with l4dhooks
But i have an another problem.
When "MaxSpecials" change, "BoomerLimit", "SmokerLimit" , ... changed = "MaxSpecials" value
I tried change cvar z_boomer_limit = 1, ... but not work.
Example :
"MaxSpecials" become 10. So "BoomerLimit" become 10 too. But z_boomer_limit still 1

Beside, can you add special targets just use them in a command. e.g. sm_kick @infected or !slay @survivors like L4dt ?
Thank you !
hoanganh81097 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-28-2020 , 11:54   Re: [L4D & L4D2] Left 4 DHooks Direct (1.4) [28-Feb-2020]
Reply With Quote #36

Quote:
Originally Posted by hoanganh81097 View Post
Beside, can you add special targets just use them in a command. e.g. sm_kick @infected or !slay @survivors like L4dt ?
Thank you !
I didn't notice the extension provided this. I'll also add next update, thanks.

Quote:
Originally Posted by hoanganh81097 View Post
When "MaxSpecials" change, "BoomerLimit", "SmokerLimit" , ... changed = "MaxSpecials" value
I tried change cvar z_boomer_limit = 1, ... but not work.
This is what I was wondering. In the source these lines commented out, you can uncomment the lines and recompile. I'll do this in the next update for all "Limit" vars, to force them to trigger the forward like "MaxSpecials" does.


Edit: I've tried setting "BoomerLimit" and "TotalHunters" using various methods but they don't seem to have any affect. Are you sure these actually used to work? Edit: Thanks to "hoanganh81097" for helping test, the games *Limit director variables don't seem to work just like the cvars are broken... see Edit3.

Edit2: I've written a plugin to use the "z_*_limit" cvars and prevent spawning specific zombie classes when their limit has reached, will release soon.

Edit3: the *Limit director variables for special infected works in Finale but not the "MaxSpecials" lol, for bots anyway. This game is crazy.
__________________

Last edited by Silvers; 02-28-2020 at 21:42.
Silvers is offline
spumer
Senior Member
Join Date: Aug 2011
Old 02-29-2020 , 11:32   Re: [L4D & L4D2] Left 4 DHooks Direct (1.4) [28-Feb-2020]
Reply With Quote #37

It will be great see this project on github. This allow track all changes and they history
May be someone create issues or make own PR
__________________

Last edited by spumer; 02-29-2020 at 11:32.
spumer is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-29-2020 , 13:01   Re: [L4D & L4D2] Left 4 DHooks Direct (1.4) [28-Feb-2020]
Reply With Quote #38

Quote:
Originally Posted by spumer View Post
It will be great see this project on github. This allow track all changes and they history
May be someone create issues or make own PR
Maybe one day, I find github confusing and dunno how to use it (haven't tried in years).


Update:
Code:
1.5 (29-Feb-2020)
    - Added Director Variables to be rechecked:
    - Some of these only work in the Finale, some may only work outside of the Finale. L4D2 is weird.
        "SmokerLimit", "BoomerLimit", "HunterLimit", "SpitterLimit", "JockeyLimit", "ChargerLimit", "TankLimit",
        "DominatorLimit", "WitchLimit" and "CommonLimit".

        Challenge Mode variables, if required:
        "cm_MaxSpecials", "cm_BaseSpecialLimit", "cm_SmokerLimit", "cm_BoomerLimit", "cm_HunterLimit", "cm_SpitterLimit",
        "cm_JockeyLimit", "cm_ChargerLimit", "cm_TankLimit", "cm_DominatorLimit", "cm_WitchLimit" and "cm_CommonLimit".

    - Added Target Filters (thanks to "hoanganh810972" for reporting as missing):
        Survivors: "@s", "@surv", "@survivors"
        Specials:  "@i", "@infe", "@infected"
        Tanks:     "@t", "@tank", "@tanks"

    - Fixed "L4D_CreateRescuableSurvivors" native from not working. Now spawns all dead survivors into rescuable rooms.
    - Removed "L4D_OnGetRandomPZSpawnPosition" forward due to spawning specials at 0,0,0 when modifying any value.

    - Updated: Test plugin to reflect above changes.
    - Updated: Plugin, Include and GameData files.

Plugin, gamedata and include files should be updated.
__________________

Last edited by Silvers; 02-29-2020 at 13:01.
Silvers is offline
hoanganh81097
Senior Member
Join Date: Apr 2016
Old 02-29-2020 , 13:53   Re: [L4D & L4D2] Left 4 DHooks Direct (1.4) [28-Feb-2020]
Reply With Quote #39

Quote:
Originally Posted by Silvers View Post
Maybe one day, I find github confusing and dunno how to use it (haven't tried in years).


Update:
Code:
1.5 (29-Feb-2020)
    - Added Director Variables to be rechecked:
    - Some of these only work in the Finale, some may only work outside of the Finale. L4D2 is weird.
        "SmokerLimit", "BoomerLimit", "HunterLimit", "SpitterLimit", "JockeyLimit", "ChargerLimit", "TankLimit",
        "DominatorLimit", "WitchLimit" and "CommonLimit".

        Challenge Mode variables, if required:
        "cm_MaxSpecials", "cm_BaseSpecialLimit", "cm_SmokerLimit", "cm_BoomerLimit", "cm_HunterLimit", "cm_SpitterLimit",
        "cm_JockeyLimit", "cm_ChargerLimit", "cm_TankLimit", "cm_DominatorLimit", "cm_WitchLimit" and "cm_CommonLimit".

    - Added Target Filters (thanks to "hoanganh810972" for reporting as missing):
        Survivors: "@s", "@surv", "@survivors"
        Specials:  "@i", "@infe", "@infected"
        Tanks:     "@t", "@tank", "@tanks"

    - Fixed "L4D_CreateRescuableSurvivors" native from not working. Now spawns all dead survivors into rescuable rooms.
    - Removed "L4D_OnGetRandomPZSpawnPosition" forward due to spawning specials at 0,0,0 when modifying any value.

    - Updated: Test plugin to reflect above changes.
    - Updated: Plugin, Include and GameData files.

Plugin, gamedata and include files should be updated.
<3 excellent, thank you !!!

Last edited by hoanganh81097; 02-29-2020 at 13:54.
hoanganh81097 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-01-2020 , 21:06   Re: [L4D & L4D2] Left 4 DHooks Direct (1.6) [02-Mar-2020]
Reply With Quote #40

Code:
1.6 (02-Mar-2020)
    - Fixed the animation hook throwing an "Exception reported: Client is not connected" error.

    Thanks to "Accelerator74" for reporting:
    - Fixed Addons Disabler "l4d2_addons_eclipse" not working without any plugins using the forward to detour.
    - Fixed "L4D2Direct_GetVSWitchFlowPercent" and "L4D2Direct_SetVSWitchFlowPercent" natives.
__________________
Silvers 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 18:55.


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