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
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 07-30-2022 , 11:03   Re: [L4D & L4D2] Left 4 DHooks Direct (1.110) [15-Jul-2022]
Reply With Quote #731

Quote:
Originally Posted by Silvers View Post
Looks like 0.0 = default speed. When I change to 0.5 it shows 0.5 and reloads quickly, when I change back to 0.0 it's at default speed.
Oh I was hoping it would return the reload speed in seconds, thanks for the clarification.
Drixevel is offline
ProjectSky
AlliedModders Donor
Join Date: Aug 2020
Old 08-08-2022 , 07:38   Re: [L4D & L4D2] Left 4 DHooks Direct (1.111) [30-Jul-2022]
Reply With Quote #732

request add native method

Code:
CPropDoorRotatingCheckpoint::IsCheckpointDoor
CPropDoorRotatingCheckpoint::IsCheckpointExitDoor
use to check prop_door_rotating_checkpoint is start/end saferoom entity
ProjectSky is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-08-2022 , 08:18   Re: [L4D & L4D2] Left 4 DHooks Direct (1.111) [30-Jul-2022]
Reply With Quote #733

Quote:
Originally Posted by ProjectSky View Post
request add native method

Code:
CPropDoorRotatingCheckpoint::IsCheckpointDoor
CPropDoorRotatingCheckpoint::IsCheckpointExitDoor
use to check prop_door_rotating_checkpoint is start/end saferoom entity
Plugin already has these: "L4D_GetCheckpointFirst" and "L4D_GetCheckpointLast"
__________________
Silvers is offline
ProjectSky
AlliedModders Donor
Join Date: Aug 2020
Old 08-08-2022 , 22:00   Re: [L4D & L4D2] Left 4 DHooks Direct (1.111) [30-Jul-2022]
Reply With Quote #734

Quote:
Originally Posted by Silvers View Post
Plugin already has these: "L4D_GetCheckpointFirst" and "L4D_GetCheckpointLast"
didn't notice it, this native reliable enough?
ProjectSky is offline
Beatles
Senior Member
Join Date: Feb 2014
Old 08-17-2022 , 13:14   Re: [L4D & L4D2] Left 4 DHooks Direct (1.113) [16-Aug-2022]
Reply With Quote #735

Hi Silver, this is a requirement more than anything, and an idea that could help many.

Many plugins created by our community use a “CreateTimer”, this means that, if we use those plugins, we would have like 4, 5 or even more counters running at the same time consuming the resources of our GPU, so it occurred to me, and What if you added a native to Left4DHooks that runs every 0.5 seconds, so all these plugins could be updated to use this native, and depending on how the creator wants it, they could make their action run every 1 second, every 5 seconds or However you want.
With this we would only have a single counter running, and we would all use this native.

I tried to do it myself, but without success, honestly I've never done an include before

I hope you understand my idea xD

I came up with something like:

PHP Code:
native void ServerTimerUpdate() 
Beatles is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-17-2022 , 13:28   Re: [L4D & L4D2] Left 4 DHooks Direct (1.113) [16-Aug-2022]
Reply With Quote #736

Quote:
Originally Posted by ProjectSky View Post
didn't notice it, this native reliable enough?
It should be since 1.113 update fixed an issue that didn't detect them all.

Quote:
Originally Posted by Beatles View Post
Hi Silver, this is a requirement more than anything, and an idea that could help many.

Many plugins created by our community use a “CreateTimer”, this means that, if we use those plugins, we would have like 4, 5 or even more counters running at the same time consuming the resources of our GPU, so it occurred to me, and What if you added a native to Left4DHooks that runs every 0.5 seconds, so all these plugins could be updated to use this native, and depending on how the creator wants it, they could make their action run every 1 second, every 5 seconds or However you want.
With this we would only have a single counter running, and we would all use this native.

I tried to do it myself, but without success, honestly I've never done an include before

I hope you understand my idea xD

I came up with something like:

PHP Code:
native void ServerTimerUpdate() 
I don't feel that belongs in this plugin. I also don't think this is such an optimization, it would be different if you had a hundred timers running, but 4 or 5 is nothing.
__________________

Last edited by Silvers; 08-18-2022 at 14:41.
Silvers is offline
Beatles
Senior Member
Join Date: Feb 2014
Old 08-20-2022 , 15:11   Re: [L4D & L4D2] Left 4 DHooks Direct (1.113) [16-Aug-2022]
Reply With Quote #737

Quote:
Originally Posted by Silvers View Post
I don't feel that belongs in this plugin. I also don't think this is such an optimization, it would be different if you had a hundred timers running, but 4 or 5 is nothing.
I think that if it would help a lot, currently I have 16 timers running, 2 to 0.5 seconds, 13 to 1 second, and 1 to 5 seconds, and I don't know if I am the one with the most timers, maybe someone has more or someone has less, but rest assured that those of us who have servers have a lot of timers, both for functions, infected spawn control, bug checking, many other things, maybe not in this plugin, but in some other it would help us a lot, and not only in Left 4 Dead, surely in all games
Beatles is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-20-2022 , 15:15   Re: [L4D & L4D2] Left 4 DHooks Direct (1.113) [16-Aug-2022]
Reply With Quote #738

Still, does not belong in this plugin and handling timers via SourceMod should be better than a plugin which would do the same logic as SM just slower. Timers shouldn't really have an impact unless you have hundreds running.
__________________
Silvers is offline
knifeeeee
Junior Member
Join Date: Aug 2022
Old 08-30-2022 , 09:53   Re: [L4D & L4D2] Left 4 DHooks Direct (1.113) [16-Aug-2022]
Reply With Quote #739

PHP Code:
"CTerrorPlayer::GoAwayFromKeyboard"
            
{
                
"library"        "server"
                "linux"            "@_ZN13CTerrorPlayer18GoAwayFromKeyboardEv"
                "windows"        "\x2A\x2A\x2A\x2A\x2A\x2A\x53\x56\x57\x8B\xF1\x8B\x06\x8B\x90\xC8\x08\x00\x00"
                
/* ? ? ? ? ? ? 53 56 57 8B F1 8B 06 8B 90 C8 08 00 00 */
            

Can you add the signature
knifeeeee is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-31-2022 , 19:07   Re: [L4D & L4D2] Left 4 DHooks Direct (1.114) [01-Sep-2022]
Reply With Quote #740

Code:
1.114 (01-Sep-2022)
    - Added forwards "L4D_OnPlayerCough", "L4D_OnPlayerCough_Post" and "L4D_OnPlayerCough_PostHandled" when a player is coughing from a Smoker Cloud.
    - Added native "L4D_GoAwayFromKeyboard" to set a client as idle. Requested by "knifeeeee".
    - Added natives "L4D_GetNavArea_AttributeFlags" and "L4D_SetNavArea_AttributeFlags" to get and set a nav areas attribute flags.
    - Added natives "L4D_GetNavArea_SpawnAttributes" and "L4D_SetNavArea_SpawnAttributes" to get and set a nav areas spawn attribute flags.
    - Initial adding of native "L4D2_GetScriptValueString" to return the directors string key values. This crashes when the key has not been set.
    - Fixed forward "L4D_OnGetScriptValueString" throwing errors.

    - Added missing forwards "L4D2_CInsectSwarm_CanHarm_PostHandled" and "L4D2_OnSpawnWitchBride_PostHandled" to the include file.
    - Changes to some forwards information in the include file.
    - Changes to prevent errors throwing from some forwards in the test plugin.

    - Updated: Plugin and test plugin.
    - Updated: "left4dhooks.inc" Include file.
    - Updated: "left4dhooks.l4d1.txt" GameData file.
    - Updated: "left4dhooks.l4d2.txt" GameData file.
    - Updated: "/scripting/l4dd/l4dd_forwards.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_natives.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_gamedata.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_setup.sp" project file.
__________________
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 20:23.


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