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
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-24-2022 , 16:37   Re: [L4D & L4D2] Left 4 DHooks Direct (1.108) [20-Jun-2022]
Reply With Quote #711

I would like some opinions on a proposal for source code changes:

I've been asked by 1 or 2 people to split left4dhooks into multiple files instead of 13,795 lines in 1 file.

The resulting project would be like this (I already split the plugin to test):

PHP Code:
scripting/left4dhooks.sp               62kb    1680 lines    // Core plugin, with miscellaneous code, variables initialization
scripting/l4dd/l4dd_forwards.sp        130kb   3596 lines    // All forward setups and callbacks, including dynamic detours code
scripting/l4dd/l4dd_gamedata.sp        93kb    2011 lines    // Loading the gamedata file, variable offsets and preparing SDKCalls
scripting/l4dd/l4dd_natives.sp         131kb   4257 lines    // All natives callbacks
scripting/l4dd/l4dd_setup.sp           43kb    474 lines     // CreateNative and GlobalForward setups from AskPluginLoad2
scripting/l4dd/l4dd_targetfilters.sp   20kb    563 lines     // Target filters construction, destruction and callbacks. 
Some notes on my opinion
  • This makes it easier for others to contribute changes or modify the plugin, although no one contributes major modifications or additions.
  • For me it would make modifying the plugin more time consuming, tedious and difficult. In my experience it's easier for me to search for a keyword and jump through the single script.
__________________

Last edited by Silvers; 06-27-2022 at 21:09.
Silvers is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 06-25-2022 , 07:32   Re: [L4D & L4D2] Left 4 DHooks Direct (1.108) [20-Jun-2022]
Reply With Quote #712

With BasicPawn you can instantly find reference of function, located in includes. The matter of habit, of course.
It's always hard to change toolset. Knowing by myself, for me it's much easy to work with little projects in Notepad++; with large projects (even as a single file) - in BasicPawn. So, I would suggest to have a look on such opportunity. When I started to split my projects by files (preventing them to be > 2000 lines), I found lot of benefits in faster search, navigation and a final time spent for updates. However, if you don't plan to change toolset (and spend some time on studying it), it's better stay on single file.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 06-26-2022 , 11:18   Re: [L4D & L4D2] Left 4 DHooks Direct (1.108) [20-Jun-2022]
Reply With Quote #713

Quote:
Originally Posted by Silvers View Post
I would like some opinions on a proposal for source code changes:

I've been asked by 1 or 2 people to split left4dhooks into multiple files instead of 13,795 lines in 1 file.

The resulting project would be like this (I already split the plugin to test):

PHP Code:
scripting/left4dhooks.sp               62kb    1680 lines    // Core plugin, with miscellaneous code, variables initialization
scripting/l4dd/l4dd_forwards.sp        130kb   3596 lines    // All forward setups and callbacks, including dynamic detours code
scripting/l4dd/l4dd_gamedata.sp        93kb    2011 lines    // Loading the gamedata file, variable offsets and preparing SDKCalls
scripting/l4dd/l4dd_natives.sp         131kb   4257 lines    // All natives callbacks
scripting/l4dd/l4dd_setup.sp           43kb    474 lines     // CreateNative and GlobalForward setups from AskPluginLoad2
scripting/l4dd/l4dd_targetfilters.sp   20kb    563 lines     // Target filters construction, destruction and callbacks. 
Some notes on my opinion
  • This makes it easier for others to contribute changes or modify the plugin, although no one contributes major modifications or additions.
  • For me it would make modifying the plugin more time consuming, tedious and difficult. In my experience it's easier for me to search for a keyword and jump through the single script.
I would just get the following ultimatum: If some person or group join you to this project with the capability of doing 75% of the work you do on this plugin, then sure.

You're the only maintainer of it. You should not bend your convenience ( = time for fixing and adding stuff for it ) for a total of people who will commit less than 0.1% of the entire project.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by Silvers; 06-27-2022 at 21:09. Reason: modified quoted text
eyal282 is offline
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 06-27-2022 , 11:13   Re: [L4D & L4D2] Left 4 DHooks Direct (1.108) [20-Jun-2022]
Reply With Quote #714

Is it possible to have a native to detect when a callvote (any) is in progress ?
JLmelenchon is offline
master1995
Junior Member
Join Date: Jul 2022
Location: Polonia
Old 07-02-2022 , 22:05   Re: [L4D & L4D2] Left 4 DHooks Direct (1.108) [20-Jun-2022]
Reply With Quote #715

Hello, I would like to know if this is normal, when I put the command sm_dump_handles in the console, the following appears.
My server constantly restarts this is the only plugin that appears in the list I don't know if it is the culprit.

PHP Code:
Handle        Owner                   Type                    Memory    
--------------------------------------------------------------------------
0x00010001    NONE                    Identity                -1        
0x00030003    NONE                    BitBufReader            24        
0x00070007    NONE                    ConVar                  96        
0x00090009    PLUGINSYS               Plugin                  5189      
0x000a000a    left4dhooks
.smx         GlobalFwd               4         
0x000b000b    left4dhooks
.smx         GlobalFwd               4         
0x000c000c    left4dhooks
.smx         GlobalFwd               4         
0x000d000d    left4dhooks
.smx         GlobalFwd               4         
0x000e000e    left4dhooks
.smx         GlobalFwd               4         
0x000f000f    left4dhooks
.smx         GlobalFwd               4         
0x00100010    left4dhooks
.smx         GlobalFwd               4         
0x00110011    left4dhooks
.smx         GlobalFwd               4         
0x00120012    left4dhooks
.smx         GlobalFwd               4         
0x00130013    left4dhooks
.smx         GlobalFwd               4         
0x00140014    left4dhooks
.smx         GlobalFwd               4         
0x00150015    left4dhooks
.smx         GlobalFwd               4         
0x00160016    left4dhooks
.smx         GlobalFwd               4         
0x00170017    left4dhooks
.smx         GlobalFwd               4         
0x00180018    left4dhooks
.smx         GlobalFwd               4         
0x00190019    left4dhooks
.smx         GlobalFwd               4         
0x001a001a    left4dhooks
.smx         GlobalFwd               4         
0x001b001b    left4dhooks
.smx         GlobalFwd               4         
0x001c001c    left4dhooks
.smx         GlobalFwd               4         
0x001d001d    left4dhooks
.smx         GlobalFwd               4         
0x001e001e    left4dhooks
.smx         GlobalFwd               4         
0x001f001f    left4dhooks
.smx         GlobalFwd               4         
0x00200020    left4dhooks
.smx         GlobalFwd               4         
0x00210021    left4dhooks
.smx         GlobalFwd               4         
0x00220022    left4dhooks
.smx         GlobalFwd               4         
0x00230023    left4dhooks
.smx         GlobalFwd               4         
0x00240024    left4dhooks
.smx         GlobalFwd               4         
0x00250025    left4dhooks
.smx         GlobalFwd               4         
0x00260026    left4dhooks
.smx         GlobalFwd               4         
0x00270027    left4dhooks
.smx         GlobalFwd               4         
0x00280028    left4dhooks
.smx         GlobalFwd               4         
0x00290029    left4dhooks
.smx         GlobalFwd               4         
0x002a002a    left4dhooks
.smx         GlobalFwd               4         
0x002b002b    left4dhooks
.smx         GlobalFwd               4         
0x002c002c    left4dhooks
.smx         GlobalFwd               4         
0x002d002d    left4dhooks
.smx         GlobalFwd               4         
0x002e002e    left4dhooks
.smx         GlobalFwd               4         
0x002f002f    left4dhooks
.smx         GlobalFwd               4         
0x00300030    left4dhooks
.smx         GlobalFwd               4         
0x00310031    left4dhooks
.smx         GlobalFwd               4         
0x00320032    left4dhooks
.smx         GlobalFwd               4         
0x00330033    left4dhooks
.smx         GlobalFwd               4         
0x00340034    left4dhooks
.smx         GlobalFwd               4         
0x00350035    left4dhooks
.smx         GlobalFwd               4         
0x00360036    left4dhooks
.smx         GlobalFwd               4         
0x00370037    left4dhooks
.smx         GlobalFwd               4         
0x00380038    left4dhooks
.smx         GlobalFwd               4         
0x00390039    left4dhooks
.smx         GlobalFwd               4         
0x003a003a    left4dhooks
.smx         GlobalFwd               4         
0x003b003b    left4dhooks
.smx         GlobalFwd               4         
0x003c003c    left4dhooks
.smx         GlobalFwd               4         
0x003d003d    left4dhooks
.smx         GlobalFwd               4         
0x003e003e    left4dhooks
.smx         GlobalFwd               4         
0x003f003f    left4dhooks
.smx         GlobalFwd               4         
0x00400040    left4dhooks
.smx         GlobalFwd               4         
0x00410041    left4dhooks
.smx         GlobalFwd               4         
0x00420042    left4dhooks
.smx         GlobalFwd               4         
0x00430043    left4dhooks
.smx         GlobalFwd               4         
0x00440044    left4dhooks
.smx         GlobalFwd               4         
0x00450045    left4dhooks
.smx         GlobalFwd               4         
0x00460046    left4dhooks
.smx         GlobalFwd               4         
0x00470047    left4dhooks
.smx         GlobalFwd               4         
0x00480048    left4dhooks
.smx         GlobalFwd               4         
0x00490049    left4dhooks
.smx         GlobalFwd               4         
0x004a004a    left4dhooks
.smx         GlobalFwd               4         
0x004b004b    left4dhooks
.smx         GlobalFwd               4         
0x004c004c    left4dhooks
.smx         GlobalFwd               4         
0x004d004d    left4dhooks
.smx         GlobalFwd               4         
0x004e004e    left4dhooks
.smx         GlobalFwd               4         
0x004f004f    left4dhooks
.smx         GlobalFwd               4         
0x00500050    left4dhooks
.smx         GlobalFwd               4         
0x00510051    left4dhooks
.smx         GlobalFwd               4         
0x00520052    left4dhooks
.smx         GlobalFwd               4         
0x00530053    left4dhooks
.smx         GlobalFwd               4         
0x00540054    left4dhooks
.smx         GlobalFwd               4         
0x00550055    left4dhooks
.smx         GlobalFwd               4         
0x00560056    left4dhooks
.smx         GlobalFwd               4         
0x00570057    left4dhooks
.smx         GlobalFwd               4         
0x00580058    left4dhooks
.smx         GlobalFwd               4         
0x00590059    left4dhooks
.smx         GlobalFwd               4         
0x005a005a    left4dhooks
.smx         GlobalFwd               4         
0x005b005b    left4dhooks
.smx         GlobalFwd               4         
0x005c005c    left4dhooks
.smx         GlobalFwd               4         
0x005d005d    left4dhooks
.smx         GlobalFwd               4         
0x005e005e    left4dhooks
.smx         GlobalFwd               4         
0x005f005f    left4dhooks
.smx         GlobalFwd               4         
0x00600060    left4dhooks
.smx         GlobalFwd               4         
0x00610061    left4dhooks
.smx         GlobalFwd               4         
0x00620062    left4dhooks
.smx         GlobalFwd               4         
0x00630063    left4dhooks
.smx         GlobalFwd               4         
0x00640064    left4dhooks
.smx         GlobalFwd               4         
0x00650065    left4dhooks
.smx         GlobalFwd               4         
0x00660066    left4dhooks
.smx         GlobalFwd               4         
0x00670067    left4dhooks
.smx         GlobalFwd               4         
0x00680068    left4dhooks
.smx         GlobalFwd               4         
0x00690069    left4dhooks
.smx         GlobalFwd               4         
0x006a006a    left4dhooks
.smx         GlobalFwd               4         
0x006b006b    left4dhooks
.smx         GlobalFwd               4         
0x006c006c    left4dhooks
.smx         GlobalFwd               4         
0x006d006d    left4dhooks
.smx         GlobalFwd               4         
0x006e006e    left4dhooks
.smx         GlobalFwd               4         
0x006f006f    left4dhooks
.smx         GlobalFwd               4         
0x00700070    left4dhooks
.smx         GlobalFwd               4         
0x00710071    left4dhooks
.smx         GlobalFwd               4         
0x00720072    left4dhooks
.smx         GlobalFwd               4         
0x00730073    left4dhooks
.smx         GlobalFwd               4         
0x00740074    left4dhooks
.smx         GlobalFwd               4         
0x00750075    left4dhooks
.smx         GlobalFwd               4         
0x00760076    left4dhooks
.smx         GlobalFwd               4         
0x00770077    left4dhooks
.smx         GlobalFwd               4         
0x00780078    left4dhooks
.smx         GlobalFwd               4         
0x00790079    left4dhooks
.smx         GlobalFwd               4         
0x007a007a    left4dhooks
.smx         GlobalFwd               4         
0x007b007b    left4dhooks
.smx         GlobalFwd               4         
0x007c007c    left4dhooks
.smx         GlobalFwd               4         
0x007d007d    left4dhooks
.smx         GlobalFwd               4         
0x007e007e    left4dhooks
.smx         GlobalFwd               4         
0x007f007f    left4dhooks
.smx         GlobalFwd               4         
0x00800080    left4dhooks
.smx         GlobalFwd               4         
0x00810081    left4dhooks
.smx         GlobalFwd               4         
0x00820082    left4dhooks
.smx         GlobalFwd               4         
0x00830083    left4dhooks
.smx         GlobalFwd               4         
0x00840084    left4dhooks
.smx         GlobalFwd               4         
0x00850085    left4dhooks
.smx         GlobalFwd               4         
0x00860086    left4dhooks
.smx         GlobalFwd               4         
0x00870087    left4dhooks
.smx         GlobalFwd               4         
0x00880088    left4dhooks
.smx         GlobalFwd               4         
0x00890089    left4dhooks
.smx         GlobalFwd               4         
0x008a008a    left4dhooks
.smx         GlobalFwd               4         
0x008b008b    left4dhooks
.smx         GlobalFwd               4         
0x008c008c    left4dhooks
.smx         GlobalFwd               4         
0x008d008d    left4dhooks
.smx         GlobalFwd               4         
0x008e008e    left4dhooks
.smx         GlobalFwd               4         
0x008f008f    left4dhooks
.smx         GlobalFwd               4         
0x00900090    left4dhooks
.smx         GlobalFwd               4         
0x00910091    left4dhooks
.smx         GlobalFwd               4         
0x00920092    left4dhooks
.smx         GlobalFwd               4         
0x00930093    left4dhooks
.smx         GlobalFwd               4         
0x00940094    left4dhooks
.smx         GlobalFwd               4         
0x00950095    left4dhooks
.smx         GlobalFwd               4         
0x00960096    left4dhooks
.smx         GlobalFwd               4         
0x00970097    left4dhooks
.smx         GlobalFwd               4         
0x00980098    left4dhooks
.smx         GlobalFwd               4         
0x00990099    left4dhooks
.smx         GlobalFwd               4         
0x009a009a    left4dhooks
.smx         GlobalFwd               4         
0x009b009b    left4dhooks
.smx         GlobalFwd               4         
0x009c009c    left4dhooks
.smx         GlobalFwd               4         
0x009d009d    left4dhooks
.smx         GlobalFwd               4         
0x009e009e    left4dhooks
.smx         GlobalFwd               4         
0x009f009f    left4dhooks
.smx         GlobalFwd               4         
0x00a000a0    left4dhooks
.smx         GlobalFwd               4         
0x00a600a6    PLUGINSYS               Plugin                  5141      
0x00ac00ac    PLUGINSYS               Plugin                  5164      
0x00ae00ae    PLUGINSYS               Plugin                  5100      
0x00b000b0    PLUGINSYS               Plugin                  5166      
0x00b200b2    PLUGINSYS               Plugin                  5111      
0x00b400b4    PLUGINSYS               Plugin                  5173      
0x00b600b6    PLUGINSYS               Plugin                  5171      
0x00b800b8    PLUGINSYS               Plugin                  5100      
0x00ba00ba    PLUGINSYS               Plugin                  5165      
0x00bc00bc    PLUGINSYS               Plugin                  5148         
0x00bf00bf    PLUGINSYS               Plugin                  5112      
0x00c100c1    PLUGINSYS               Plugin                  5129      
0x00c300c3    PLUGINSYS               Plugin                  5182      
0x00c500c5    PLUGINSYS               Plugin                  5111      
0x00c700c7    PLUGINSYS               Plugin                  5166      
0x00ca00ca    PLUGINSYS               Plugin                  5193      
0x00cc00cc    PLUGINSYS               Plugin                  5111      
0x00ce00ce    PLUGINSYS               Plugin                  5123      
0x00d000d0    PLUGINSYS               Plugin                  5159      
0x00d200d2    PLUGINSYS               Plugin                  5111      
0x00d400d4    PLUGINSYS               Plugin                  5112      
0x00d600d6    PLUGINSYS               Plugin                  5131      
0x00d800d8    PLUGINSYS               Plugin                  5170      
0x00da00da    PLUGINSYS               Plugin                  5134      
0x00dc00dc    PLUGINSYS               Plugin                  5111           
0x00df00df    PLUGINSYS               Plugin                  5182      
0x00e100e1    PLUGINSYS               Plugin                  5112      
0x00e300e3    PLUGINSYS               Plugin                  5123      
0x00e500e5    PLUGINSYS               Plugin                  5140      
0x00e700e7    PLUGINSYS               Plugin                  5165      
0x00e900e9    PLUGINSYS               Plugin                  5112      
0x00eb00eb    PLUGINSYS               Plugin                  5112      
0x00ed00ed    PLUGINSYS               Plugin                  5112      
0x00ef00ef    PLUGINSYS               Plugin                  5161      
0x00f100f1    PLUGINSYS               Plugin                  5190      
0x00f300f3    PLUGINSYS               Plugin                  5218      
0x00f500f5    PLUGINSYS               Plugin                  5122      
0x00f700f7    PLUGINSYS               Plugin                  5176      
0x00f900f9    PLUGINSYS               Plugin                  5185          
0x01060106    PLUGINSYS               Plugin                  5177      
0x01080108    PLUGINSYS               Plugin                  5111      
0x010a010a    PLUGINSYS               Plugin                  5123      
0x010d010d    PLUGINSYS               Plugin                  5112      
0x010f010f    PLUGINSYS               Plugin                  5112      
0x01110111    PLUGINSYS               Plugin                  5185      
0x01130113    PLUGINSYS               Plugin                  5123      
0x01150115    PLUGINSYS               Plugin                  5146      
0x01170117    PLUGINSYS               Plugin                  5111      
0x01190119    PLUGINSYS               Plugin                  5123      
0x011b011b    PLUGINSYS               Plugin                  5190         
0x013a013a    PLUGINSYS               Plugin                  5192      
0x013c013c    PLUGINSYS               Plugin                  5122      
0x013e013e    PLUGINSYS               Plugin                  5196      
0x01400140    PLUGINSYS               Plugin                  5177      
0x01420142    PLUGINSYS               Plugin                  5100      
0x01440144    PLUGINSYS               Plugin                  5138            
0x01470147    PLUGINSYS               Plugin                  5200      
0x01490149    PLUGINSYS               Plugin                  5178      
0x014b014b    PLUGINSYS               Plugin                  5111      
0x014d014d    PLUGINSYS               Plugin                  5223      
0x014f014f    PLUGINSYS               Plugin                  5134      
0x01510151    PLUGINSYS               Plugin                  5172      
0x01530153    PLUGINSYS               Plugin                  5112      
0x01550155    PLUGINSYS               Plugin                  5100      
0x01570157    PLUGINSYS               Plugin                  5121      
0x01590159    PLUGINSYS               Plugin                  5166      
0x015b015b    PLUGINSYS               Plugin                  5111      
0x015d015d    PLUGINSYS               Plugin                  5172      
0x015f015f    PLUGINSYS               Plugin                  5184      
0x01610161    PLUGINSYS               Plugin                  5171      
0x01630163    PLUGINSYS               Plugin                  5134      
0x01640164    left4dhooks
.smx         CellArray               131092    
0x01660165    left4dhooks
.smx         CellArray               20        
0x01670166    left4dhooks
.smx         CellArray               20        
0x01680167    left4dhooks
.smx         PrivateFwd              4         
0x01690168    left4dhooks
.smx         PrivateFwd              4         
0x016a0169    left4dhooks
.smx         PrivateFwd              4         
0x016b016a    left4dhooks
.smx         PrivateFwd              4         
0x016c016b    left4dhooks
.smx         PrivateFwd              4         
0x016d016c    left4dhooks
.smx         PrivateFwd              4         
0x016e016d    left4dhooks
.smx         PrivateFwd              4         
0x016f016e    left4dhooks
.smx         PrivateFwd              4         
0x0170016f    left4dhooks
.smx         PrivateFwd              4         
0x01710170    left4dhooks
.smx         PrivateFwd              4         
0x01720171    left4dhooks
.smx         PrivateFwd              4         
0x01730172    left4dhooks
.smx         PrivateFwd              4         
0x01740173    left4dhooks
.smx         PrivateFwd              4         
0x01750174    left4dhooks
.smx         PrivateFwd              4         
0x01760175    left4dhooks
.smx         PrivateFwd              4         
0x01770176    left4dhooks
.smx         PrivateFwd              4         
0x01780177    left4dhooks
.smx         PrivateFwd              4         
0x01790178    left4dhooks
.smx         PrivateFwd              4         
0x017a0179    left4dhooks
.smx         PrivateFwd              4         
0x017b017a    left4dhooks
.smx         PrivateFwd              4         
0x017c017b    left4dhooks
.smx         PrivateFwd              4         
0x017d017c    left4dhooks
.smx         PrivateFwd              4         
0x017e017d    left4dhooks
.smx         PrivateFwd              4         
0x017f017e    left4dhooks
.smx         PrivateFwd              4         
0x0180017f    left4dhooks
.smx         PrivateFwd              4         
0x01810180    left4dhooks
.smx         PrivateFwd              4         
0x01820181    left4dhooks
.smx         PrivateFwd              4         
0x01830182    left4dhooks
.smx         PrivateFwd              4         
0x01840183    left4dhooks
.smx         PrivateFwd              4         
0x01850184    left4dhooks
.smx         PrivateFwd              4         
0x01860185    left4dhooks
.smx         PrivateFwd              4         
0x01870186    left4dhooks
.smx         PrivateFwd              4         
0x01880187    left4dhooks
.smx         PrivateFwd              4         
0x01890188    left4dhooks
.smx         PrivateFwd              4         
0x018a0189    left4dhooks
.smx         PrivateFwd              4         
0x018b018a    left4dhooks
.smx         PrivateFwd              4         
0x018c018b    left4dhooks
.smx         PrivateFwd              4         
0x018d018c    left4dhooks
.smx         PrivateFwd              4         
0x018e018d    left4dhooks
.smx         PrivateFwd              4         
0x018f018e    left4dhooks
.smx         PrivateFwd              4         
0x0190018f    left4dhooks
.smx         PrivateFwd              4         
0x01910190    left4dhooks
.smx         PrivateFwd              4         
0x01920191    left4dhooks
.smx         PrivateFwd              4         
0x01930192    left4dhooks
.smx         PrivateFwd              4         
0x01940193    left4dhooks
.smx         PrivateFwd              4         
0x01950194    left4dhooks
.smx         PrivateFwd              4         
0x01960195    left4dhooks
.smx         PrivateFwd              4         
0x01970196    left4dhooks
.smx         PrivateFwd              4         
0x01980197    left4dhooks
.smx         PrivateFwd              4         
0x01990198    left4dhooks
.smx         PrivateFwd              4         
0x019a0199    left4dhooks
.smx         PrivateFwd              4         
0x019b019a    left4dhooks
.smx         PrivateFwd              4         
0x019c019b    left4dhooks
.smx         PrivateFwd              4         
0x019d019c    left4dhooks
.smx         PrivateFwd              4         
0x019e019d    left4dhooks
.smx         PrivateFwd              4         
0x019f019e    left4dhooks
.smx         PrivateFwd              4         
0x01a0019f    left4dhooks
.smx         PrivateFwd              4         
0x01a101a0    left4dhooks
.smx         PrivateFwd              4         
0x01a201a1    left4dhooks
.smx         PrivateFwd              4         
0x01a301a2    left4dhooks
.smx         PrivateFwd              4         
0x01a401a3    left4dhooks
.smx         PrivateFwd              4         
0x01a501a4    left4dhooks
.smx         PrivateFwd              4         
0x01a601a5    left4dhooks
.smx         Trie                    348       
0x01a701a6    left4dhooks
.smx         Trie                    1308      
0x24e001a7    left4dhooks
.smx         CellArray               20        
0x24e101a8    left4dhooks
.smx         Trie                    348       
0x01aa01a9    left4dhooks
.smx         GameConfigs             -1        
0x01ab01aa    left4dhooks
.smx         ValveCall               -1        
0x01ac01ab    left4dhooks
.smx         ValveCall               -1        
0x01ad01ac    left4dhooks
.smx         ValveCall               -1        
0x01ae01ad    left4dhooks
.smx         ValveCall               -1        
0x01af01ae    left4dhooks
.smx         ValveCall               -1        
0x01b001af    left4dhooks
.smx         ValveCall               -1        
0x01b101b0    left4dhooks
.smx         ValveCall               -1        
0x01b201b1    left4dhooks
.smx         ValveCall               -1        
0x01b301b2    left4dhooks
.smx         ValveCall               -1        
0x01b401b3    left4dhooks
.smx         ValveCall               -1        
0x01b501b4    left4dhooks
.smx         ValveCall               -1        
0x01b601b5    left4dhooks
.smx         ValveCall               -1        
0x01b701b6    left4dhooks
.smx         ValveCall               -1        
0x01b801b7    left4dhooks
.smx         ValveCall               -1        
0x01b901b8    left4dhooks
.smx         ValveCall               -1        
0x01ba01b9    left4dhooks
.smx         ValveCall               -1        
0x01bb01ba    left4dhooks
.smx         ValveCall               -1        
0x01bc01bb    left4dhooks
.smx         ValveCall               -1        
0x01bd01bc    left4dhooks
.smx         ValveCall               -1        
0x01be01bd    left4dhooks
.smx         ValveCall               -1        
0x01bf01be    left4dhooks
.smx         ValveCall               -1        
0x01c001bf    left4dhooks
.smx         ValveCall               -1        
0x01c101c0    left4dhooks
.smx         ValveCall               -1        
0x01c201c1    left4dhooks
.smx         ValveCall               -1        
0x01c301c2    left4dhooks
.smx         ValveCall               -1        
0x01c401c3    left4dhooks
.smx         ValveCall               -1        
0x01c501c4    left4dhooks
.smx         ValveCall               -1        
0x01c601c5    left4dhooks
.smx         ValveCall               -1        
0x01c701c6    left4dhooks
.smx         ValveCall               -1        
0x01c801c7    left4dhooks
.smx         ValveCall               -1        
0x01c901c8    left4dhooks
.smx         ValveCall               -1        
0x01ca01c9    left4dhooks
.smx         ValveCall               -1        
0x01cb01ca    left4dhooks
.smx         ValveCall               -1        
0x01cc01cb    left4dhooks
.smx         ValveCall               -1        
0x01cd01cc    left4dhooks
.smx         ValveCall               -1        
0x01ce01cd    left4dhooks
.smx         ValveCall               -1        
0x01cf01ce    left4dhooks
.smx         ValveCall               -1        
0x01d001cf    left4dhooks
.smx         ValveCall               -1        
0x01d101d0    left4dhooks
.smx         ValveCall               -1        
0x01d201d1    left4dhooks
.smx         ValveCall               -1        
0x01d301d2    left4dhooks
.smx         ValveCall               -1        
0x01d401d3    left4dhooks
.smx         ValveCall               -1        
0x01d501d4    left4dhooks
.smx         ValveCall               -1        
0x01d601d5    left4dhooks
.smx         ValveCall               -1        
0x01d701d6    left4dhooks
.smx         ValveCall               -1        
0x01d801d7    left4dhooks
.smx         ValveCall               -1        
0x01d901d8    left4dhooks
.smx         ValveCall               -1        
0x01da01d9    left4dhooks
.smx         ValveCall               -1        
0x01db01da    left4dhooks
.smx         ValveCall               -1        
0x01dc01db    left4dhooks
.smx         ValveCall               -1        
0x01dd01dc    left4dhooks
.smx         ValveCall               -1        
0x01de01dd    left4dhooks
.smx         ValveCall               -1        
0x01df01de    left4dhooks
.smx         ValveCall               -1        
0x01e001df    left4dhooks
.smx         ValveCall               -1        
0x01e101e0    left4dhooks
.smx         ValveCall               -1        
0x01e201e1    left4dhooks
.smx         ValveCall               -1        
0x01e301e2    left4dhooks
.smx         ValveCall               -1        
0x01e401e3    left4dhooks
.smx         ValveCall               -1        
0x01e501e4    left4dhooks
.smx         ValveCall               -1        
0x01e601e5    left4dhooks
.smx         ValveCall               -1        
0x01e701e6    left4dhooks
.smx         ValveCall               -1        
0x01e801e7    left4dhooks
.smx         ValveCall               -1        
0x01e901e8    left4dhooks
.smx         ValveCall               -1        
0x01ea01e9    left4dhooks
.smx         ValveCall               -1        
0x01eb01ea    left4dhooks
.smx         ValveCall               -1        
0x01ec01eb    left4dhooks
.smx         ValveCall               -1        
0x01ed01ec    left4dhooks
.smx         ValveCall               -1        
0x01ee01ed    left4dhooks
.smx         ValveCall               -1        
0x01ef01ee    left4dhooks
.smx         ValveCall               -1        
0x01f001ef    left4dhooks
.smx         ValveCall               -1        
0x01f101f0    left4dhooks
.smx         ValveCall               -1        
0x01f201f1    left4dhooks
.smx         ValveCall               -1        
0x01f301f2    left4dhooks
.smx         ValveCall               -1        
0x01f401f3    left4dhooks
.smx         ValveCall               -1        
0x01f501f4    left4dhooks
.smx         ValveCall               -1        
0x01f601f5    left4dhooks
.smx         ValveCall               -1        
0x01f701f6    left4dhooks
.smx         ValveCall               -1        
0x01f801f7    left4dhooks
.smx         ValveCall               -1        
0x01f901f8    left4dhooks
.smx         ValveCall               -1        
0x01fa01f9    left4dhooks
.smx         ValveCall               -1        
0x01fb01fa    left4dhooks
.smx         ValveCall               -1        
0x01fc01fb    left4dhooks
.smx         ValveCall               -1        
0x01fd01fc    left4dhooks
.smx         ValveCall               -1        
0x01fe01fd    left4dhooks
.smx         ValveCall               -1        
0x01ff01fe    left4dhooks
.smx         ValveCall               -1        
0x020001ff    left4dhooks
.smx         ValveCall               -1        
0x02010200    left4dhooks
.smx         ValveCall               -1        
0x02020201    left4dhooks
.smx         ValveCall               -1        
0x02030202    left4dhooks
.smx         ValveCall               -1        
0x02040203    left4dhooks
.smx         ValveCall               -1        
0x02050204    left4dhooks
.smx         ValveCall               -1        
0x02060205    left4dhooks
.smx         ValveCall               -1        
0x02070206    left4dhooks
.smx         ValveCall               -1        
0x02080207    left4dhooks
.smx         ValveCall               -1        
0x02090208    left4dhooks
.smx         ValveCall               -1        
0x020a0209    left4dhooks
.smx         ValveCall               -1        
0x020b020a    left4dhooks
.smx         ValveCall               -1        
0x020c020b    left4dhooks
.smx         ValveCall               -1        
0x020d020c    left4dhooks
.smx         ValveCall               -1        
0x020e020d    left4dhooks
.smx         ValveCall               -1        
0x020f020e    left4dhooks
.smx         CellArray               532       
0x0210020f    left4dhooks
.smx         CellArray               532       
0x02110210    left4dhooks
.smx         CellArray               1044      
0x02120211    left4dhooks
.smx         CellArray               1044      
0x02130212    left4dhooks
.smx         CellArray               1044      
0x02140213    left4dhooks
.smx         CellArray               16404     
0x02150214    left4dhooks
.smx         CellArray               16404     
0x02160215    left4dhooks
.smx         HookSetup               -1        
0x02170216    left4dhooks
.smx         HookSetup               -1        
0x02180217    left4dhooks
.smx         HookSetup               -1        
0x02190218    left4dhooks
.smx         HookSetup               -1        
0x021a0219    left4dhooks
.smx         HookSetup               -1        
0x021b021a    left4dhooks
.smx         HookSetup               -1        
0x021c021b    left4dhooks
.smx         HookSetup               -1        
0x021d021c    left4dhooks
.smx         HookSetup               -1        
0x021e021d    left4dhooks
.smx         HookSetup               -1        
0x021f021e    left4dhooks
.smx         HookSetup               -1        
0x0220021f    left4dhooks
.smx         HookSetup               -1        
0x02210220    left4dhooks
.smx         HookSetup               -1        
0x02220221    left4dhooks
.smx         HookSetup               -1        
0x02230222    left4dhooks
.smx         HookSetup               -1        
0x02240223    left4dhooks
.smx         HookSetup               -1        
0x02250224    left4dhooks
.smx         HookSetup               -1        
0x02260225    left4dhooks
.smx         HookSetup               -1        
0x02270226    left4dhooks
.smx         HookSetup               -1        
0x02280227    left4dhooks
.smx         HookSetup               -1        
0x02290228    left4dhooks
.smx         HookSetup               -1        
0x022a0229    left4dhooks
.smx         HookSetup               -1        
0x022b022a    left4dhooks
.smx         HookSetup               -1        
0x022c022b    left4dhooks
.smx         HookSetup               -1        
0x022d022c    left4dhooks
.smx         HookSetup               -1        
0x022e022d    left4dhooks
.smx         HookSetup               -1        
0x022f022e    left4dhooks
.smx         HookSetup               -1        
0x0230022f    left4dhooks
.smx         HookSetup               -1        
0x02310230    left4dhooks
.smx         HookSetup               -1        
0x02320231    left4dhooks
.smx         HookSetup               -1        
0x02330232    left4dhooks
.smx         HookSetup               -1        
0x02340233    left4dhooks
.smx         HookSetup               -1        
0x02350234    left4dhooks
.smx         HookSetup               -1        
0x02360235    left4dhooks
.smx         HookSetup               -1        
0x02370236    left4dhooks
.smx         HookSetup               -1        
0x02380237    left4dhooks
.smx         HookSetup               -1        
0x02390238    left4dhooks
.smx         HookSetup               -1        
0x023a0239    left4dhooks
.smx         HookSetup               -1        
0x023b023a    left4dhooks
.smx         HookSetup               -1        
0x023c023b    left4dhooks
.smx         HookSetup               -1        
0x023d023c    left4dhooks
.smx         HookSetup               -1        
0x023e023d    left4dhooks
.smx         HookSetup               -1        
0x023f023e    left4dhooks
.smx         HookSetup               -1        
0x0240023f    left4dhooks
.smx         HookSetup               -1        
0x02410240    left4dhooks
.smx         HookSetup               -1        
0x02420241    left4dhooks
.smx         HookSetup               -1        
0x02430242    left4dhooks
.smx         HookSetup               -1        
0x02440243    left4dhooks
.smx         HookSetup               -1        
0x02450244    left4dhooks
.smx         HookSetup               -1        
0x02460245    left4dhooks
.smx         HookSetup               -1        
0x02470246    left4dhooks
.smx         HookSetup               -1        
0x02480247    left4dhooks
.smx         HookSetup               -1        
0x02490248    left4dhooks
.smx         HookSetup               -1        
0x024a0249    left4dhooks
.smx         HookSetup               -1        
0x024b024a    left4dhooks
.smx         HookSetup               -1        
0x024c024b    left4dhooks
.smx         HookSetup               -1        
0x024d024c    left4dhooks
.smx         HookSetup               -1        
0x024e024d    left4dhooks
.smx         HookSetup               -1        
0x024f024e    left4dhooks
.smx         HookSetup               -1        
0x0250024f    left4dhooks
.smx         HookSetup               -1        
0x02510250    left4dhooks
.smx         HookSetup               -1        
0x02520251    left4dhooks
.smx         HookSetup               -1        
0x02530252    left4dhooks
.smx         HookSetup               -1        
0x02540253    left4dhooks
.smx         HookSetup               -1        
0x02550254    left4dhooks
.smx         HookSetup               -1        
0x02560255    left4dhooks
.smx         HookSetup               -1        
0x02570256    left4dhooks
.smx         HookSetup               -1        
0x02580257    left4dhooks
.smx         HookSetup               -1        
0x02590258    left4dhooks
.smx         HookSetup               -1        
0x025a0259    left4dhooks
.smx         HookSetup               -1        
0x025b025a    left4dhooks
.smx         HookSetup               -1        
0x025c025b    NONE                    ConVar                  96        
0x025d025c    NONE                    ConVar                  96        
0x025e025d    NONE                    ConVar                  96        
0x025f025e    NONE                    ConVar                  96        
0x0260025f    NONE                    ConVar                  96        
0x02610260    NONE                    ConVar                  96 
master1995 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-04-2022 , 15:36   Re: [L4D & L4D2] Left 4 DHooks Direct (1.108) [20-Jun-2022]
Reply With Quote #716

Quote:
Originally Posted by JLmelenchon View Post
Is it possible to have a native to detect when a callvote (any) is in progress ?
I don't feel this belongs in Left4DHooks. You can simply find the "vote_controller" entity and check if "m_activeIssueIndex" netprop != -1 else other values show the specific vote in progress.
See: https://wiki.alliedmods.net/Left_4_Voting_2. You can also use NativeVotes and the "NativeVotes_IsVoteInProgress" native.



Quote:
Originally Posted by master1995 View Post
Hello, I would like to know if this is normal, when I put the command sm_dump_handles in the console, the following appears.
My server constantly restarts this is the only plugin that appears in the list I don't know if it is the culprit.
If this is the only plugin running then it's really not doing anything except handling the Disable Addons part for L4D2. It tracks a couple events for players inside checkpoints and nothing much else without other plugins using it. The handles list looks completely normal like default plugin start.

Is this from L4D1 or L4D2? Without the plugin installed does it keep restarting? Highly doubt it's caused by this plugin.
__________________

Last edited by Silvers; 07-04-2022 at 16:02.
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-04-2022 , 23:16   Re: [L4D & L4D2] Left 4 DHooks Direct (1.109) [05-Jul-2022]
Reply With Quote #717

Code:
1.109 (05-Jul-2022)
    - Plugin now requires SourceMod 1.11. Utilizing some fixes from the new SourceMod and changed code to use new methodmaps.
    - Core changes to the source code splitting into multiple files for maintainability. Thanks to "Psyk0tik" for some suggestions.

    - Changed forward "L4D2_OnEntityShoved" client detection method. Thanks to "A1m`" for a solution.

    - Fixed forwards: "L4D_OnTryOfferingTankBot", "L4D_OnSpawnSpecial", "L4D_OnSpawnTank", "L4D_OnSpawnWitch", "L4D2_OnSpawnWitchBride", "L4D_PipeBombProjectile_Pre" and "L4D2_OnFindScavengeItem"
        to return -1 instead of 0 when blocking the functions. Thanks to "Forgetest" for reporting (required SM 1.11 or newer).

    - Updated: Plugin.
    - Updated: "left4dhooks.l4d1.txt" and "left4dhooks.l4d2.txt" GameData files.
    - New project code files located in "scripting/l4dd/"
__________________
Silvers is offline
morzlee
Junior Member
Join Date: Jan 2022
Old 07-06-2022 , 06:48   Re: [L4D & L4D2] Left 4 DHooks Direct (1.42) [23-Jun-2021]
Reply With Quote #718

Quote:
Originally Posted by Silvers View Post
Code:
1.42 (23-Jun-2021)
    - L4D & L4D2 update:
    - Added forward "L4D_OnVomitedUpon" when client is covered in vomit.
    - Added forward "L4D_OnEnterGhostStatePre" with the ability to block entering ghost state.
    - Changed 2 signatures to be compatible with detouring: "CTerrorPlayer::OnStaggered" and "CTerrorPlayer::OnVomitedUpon".

    - L4D2 update only:

    - Added forward "L4D2_OnHitByVomitJar" when a Bilejar explodes on clients.
    - Added native "L4D2_NavAreaTravelDistance" to return the nav flow distance between two areas.
    - Added native "L4D2_UseAdrenaline" to give a player the Adrenaline effect and health benefits.

    - Added various natives as wrappers executing VScript code:
        - These are slower than native SDKCalls, please report popular ones to convert to fast SDKCalls.
        "L4D2_VScriptWrapper_GetMapNumber"
        "L4D2_VScriptWrapper_HasEverBeenInjured"
        "L4D2_VScriptWrapper_GetAliveDuration"
        "L4D2_VScriptWrapper_IsDead"
        "L4D2_VScriptWrapper_IsDying"
        "L4D2_VScriptWrapper_UseAdrenaline"
        "L4D2_VScriptWrapper_ReviveByDefib"
        "L4D2_VScriptWrapper_ReviveFromIncap"
        "L4D2_VScriptWrapper_GetSenseFlags"
        "L4D2_VScriptWrapper_NavAreaBuildPath"
        "L4D2_VScriptWrapper_NavAreaTravelDistance" // Added as a demonstration and test, SDKCall is available, use "L4D2_NavAreaTravelDistance" instead.

    - Updated: Plugin, GameData and Include file. Both L4D1 and L4D2.
    - Thanks to "Eärendil" for showing me how to call some VScript functions.
Big update!
Is possible convert "L4D2_VScriptWrapper_NavAreaBuildPath" to native SDKCalls?
I have a plugins use this feature frequently and it has affected the performance of my server.
If possible, and you do not have time to change or do not intend to change, can you provide some experience or tips on changing this type of code?

Last edited by morzlee; 07-06-2022 at 06:59. Reason: nvm
morzlee is offline
Forgetest
Member
Join Date: Aug 2020
Old 07-07-2022 , 16:27   Re: [L4D & L4D2] Left 4 DHooks Direct (1.42) [23-Jun-2021]
Reply With Quote #719

Quote:
Originally Posted by morzlee View Post
Is possible convert "L4D2_VScriptWrapper_NavAreaBuildPath" to native SDKCalls?
I have a plugins use this feature frequently and it has affected the performance of my server.
If possible, and you do not have time to change or do not intend to change, can you provide some experience or tips on changing this type of code?
Minor investigation, see if helpful for SDKCall setup.

Code:
// NavAreaBuildPath<ShortestPathCost>(CNavArea *,CNavArea *,Vector const*,Vector const*,ShortestPathCost &,CNavArea **,float,int,bool)
"NavAreaBuildPath<ShortestPathCost>"
{
	"library"		"server"
	"linux"			"@_Z16NavAreaBuildPathI16ShortestPathCostEbP8CNavAreaS2_PK6VectorS5_RT_PS2_fib"
	"windows"		"\x53\x8B\x2A\x83\x2A\x2A\x83\x2A\x2A\x83\x2A\x2A\x55\x8B\x2A\x2A\x89\x2A\x2A\x2A\x8B\x2A\x83\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x33\x2A\x56\x89"
					/* 53 8B ? 83 ? ? 83 ? ? 83 ? ? 55 8B ? ? 89 ? ? ? 8B ? 83 ? ? A1 ? ? ? ? 33 ? 56 89 */
					/**
					 * 1. Search "ERROR: First point at the 'to' area.\n"
					 * 2. Go inside the first user function below by pseudocode or raw opcodes
					 * 3. Being a wrapper function, the only function inside is it.
					 */
}
a1, a2 -> (CNavArea *) startArea, endArea
a3 -> (Vector *) always 0 for script call
a4 -> (Vector *) goalPos, script func has extra check for null vector for unknown reason
a5 -> (ShortestPathCost &) never used in function, can be 0
a6 -> (CNavArea **) always 0 for script call
a7 -> (float) flMaxPathLength
a8 -> (int) teamID
a9 -> (bool) ignoreNavBlockers
ret -> (bool)

Last edited by Forgetest; 07-07-2022 at 16:37.
Forgetest is offline
Wielder7826
New Member
Join Date: Jul 2022
Old 07-14-2022 , 00:36   Re: [L4D & L4D2] Left 4 DHooks Direct (1.109) [05-Jul-2022]
Reply With Quote #720

Got the error, while my server was trying to load the plugin.
`[SM] Failed to load plugin "left4dhooks.smx": Unable to load plugin (unsupported feature set; code is too new).`

Using sourcemod-1.11.0-git6906-linux.tar.gz metamod is installed too
Wielder7826 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 10:28.


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