Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Left 4 DHooks Direct (1.145) [03-Apr-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-20-2021 , 08:00   Re: [L4D & L4D2] Left 4 DHooks Direct (1.64) [20-Oct-2021]
Reply With Quote #491

Another large update!

Code:
1.64 (20-Oct-2021)
    - Added 1 new forward to L4D1 and L4D2:
        - "L4D_CBreakableProp_Break" - When a physics prop is broken.

    - Added 3 new forwards to L4D2:
        - "L4D2_CGasCan_EventKilled" - When a GasCan is destroyed.
        - "L4D2_CGasCan_ActionComplete" - When a Survivor has finished pouring gas.
        - "L4D2_CInsectSwarm_CanHarm" - When Spitter Acid is checking if a player or entity can be damaged.

    - Added 1 new native to L4D1 and L4D2:
        - "L4D_GetWeaponID" - to get the Weapon ID by classname

    - Added and unlocked all the weapon attribute modification natives to L4D1:
    - Thanks to "Psyk0tik" for the suggestion and information about offsets.
        - "L4D2_IsValidWeapon"
        - "L4D2_GetFloatWeaponAttribute" and "L4D2_SetFloatWeaponAttribute"
        - "L4D2_GetIntWeaponAttribute" and "L4D2_SetIntWeaponAttribute"
        - "L4D2IntWeaponAttributes" enums - ("L4D2IWA_Bullets", "L4D2IWA_Damage", "L4D2IWA_ClipSize")
        - "L4D2FloatWeaponAttributes" enums - ("L4D2FWA_MaxPlayerSpeed", "L4D2FWA_SpreadPerShot", "L4D2FWA_MaxSpread", "L4D2FWA_Range", etc)

    - Added new target filters (requested by Tonblader):
        "@deads" - Dead Survivors (all, bots)
        "@deadsi" - Dead Special Infected (all, bots)
        "@deadsp" - Dead Survivors players (no bots)
        "@deadsip" - Dead Special Infected players (no bots)
        "@deadsb" - Dead Survivors bots (no players)
        "@deadsib" - Dead Special Infected bots (no players)
        "@sp" - Survivors players (no bots)
        "@isp" - Special Infected players (no bots)
        "@isb" - Incapped Survivor Only Bots
        "@isp" - Incapped Survivor Only Players

    - Changed target filter names (requested by Tonblader):
        "@incappedsurvivorbot" to "@rincappedsurvivorbot"
        "@isb" to "@risb"
        "@survivorbot" to "@rsurvivorbot"
        "@sb" to "@rsb"
        "@infectedbot" to "@rinfectedbot"
        "@ib" to "@rib"
        "@tankbot" to "@rtankbot"
        "@tb" to "@rtb"

    - Added "FINALE_*" enums to the include file for use with the "L4D2_ChangeFinaleStage" and "L4D2_GetCurrentFinaleStage" natives and "L4D2_OnChangeFinaleStage" forward.
    - Thanks to "Dragokas" for suggesting.

    - GameData files, include file and plugins updated.
Spitter Acid Damage and Scavenge Score Fix - Gascan Pouring have updated GameData signature files for compatibility with this release.
__________________

Last edited by Silvers; 10-20-2021 at 08:02.
Silvers is offline
ProjectSky
AlliedModders Donor
Join Date: Aug 2020
Old 10-20-2021 , 10:54   Re: [L4D & L4D2] Left 4 DHooks Direct (1.64) [20-Oct-2021]
Reply With Quote #492

PHP Code:
L4D2_CGasCan_EventKilled(int gascan//no client/entity caused gascan kill? 
ProjectSky is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-20-2021 , 11:21   Re: [L4D & L4D2] Left 4 DHooks Direct (1.64) [20-Oct-2021]
Reply With Quote #493

Code:
1.65 (20-Oct-2021)
	- Changed forward "L4D2_CGasCan_EventKilled" params to show the inflictor and attacker.
	- Thanks to "ProjectSky" for reminding me.
__________________

Last edited by Silvers; 10-20-2021 at 12:11.
Silvers is offline
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 10-20-2021 , 14:11   Re: [L4D & L4D2] Left 4 DHooks Direct (1.65) [20-Oct-2021]
Reply With Quote #494

Thank you, I detected a small problem that just realized too.

Quote:
Originally Posted by Silvers View Post
Code:
1.64 (20-Oct-2021)
        "@isp" - Special Infected players (no bots)
        "@isp" - Incapped Survivor Only Players
The target filters are the same, probably the target filter of the inccaped should be:
@in

and for the special infected:
@si

I'm not sure about this.

Last edited by Tonblader; 10-20-2021 at 14:30.
Tonblader is offline
Ja-Forces
Senior Member
Join Date: Jul 2009
Location: Leningrad
Old 10-21-2021 , 01:42   Re: [L4D & L4D2] Left 4 DHooks Direct (1.65) [20-Oct-2021]
Reply With Quote #495

[L4D & L4D2] Left 4 DHooks Direct (1.65) [20-Oct-2021]

left 4 dead part one linux server

L 10/21/2021 - 08:46:50: SourceMod error session started
L 10/21/2021 - 08:46:50: Info (map "l4d_hospital01_apartment") (file "/home/gameserver9654/serverfiles/left4dead/addons/sourcemod/logs/errors_20211021.log")
L 10/21/2021 - 08:46:50: [left4dhooks.smx] Failed to find "g_pWeaponInfoDatabase" address.
__________________

Last edited by Ja-Forces; 10-21-2021 at 01:47.
Ja-Forces is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-21-2021 , 03:01   Re: [L4D & L4D2] Left 4 DHooks Direct (1.65) [20-Oct-2021]
Reply With Quote #496

Quote:
Originally Posted by Tonblader View Post
Thank you, I detected a small problem that just realized too.



The target filters are the same, probably the target filter of the inccaped should be:
@in

and for the special infected:
@si

I'm not sure about this.
In code it was actually "@sip". The problem was copy pasting from the ones you posted, since you put "@isp". I had to change them to make more sense.
Edit: next version update: - Fixed target filters "@isb" and "@isp" being flipped.



Quote:
Originally Posted by Ja-Forces View Post
[L4D & L4D2] Left 4 DHooks Direct (1.65) [20-Oct-2021]

left 4 dead part one linux server

L 10/21/2021 - 08:46:50: SourceMod error session started
L 10/21/2021 - 08:46:50: Info (map "l4d_hospital01_apartment") (file "/home/gameserver9654/serverfiles/left4dead/addons/sourcemod/logs/errors_20211021.log")
L 10/21/2021 - 08:46:50: [left4dhooks.smx] Failed to find "g_pWeaponInfoDatabase" address.
Thanks, should be fixed.


Code:
1.66 (21-Oct-2021)
    - Fixed L4D1 Linux not finding the "g_pWeaponInfoDatabase" signature. Thanks to "Ja-Forces" for reporting.
    - L4D1 GameData updated.


Quote:
Originally Posted by ProjectSky View Post
PHP Code:
L4D2_CGasCan_EventKilled(int gascan
Just a note on this, it seemed this was not triggered when the gascan broke from a molotov or pipebomb. Only when I shot the gascan or it exploded from a Fuel Barrel - although I am using the Explosive Chains Credit plugin which might have influenced this slightly.
__________________

Last edited by Silvers; 10-21-2021 at 09:30.
Silvers is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 10-24-2021 , 16:10   Re: [L4D & L4D2] Left 4 DHooks Direct (1.66) [21-Oct-2021]
Reply With Quote #497

after 1.66 version, I sometimes have this error in l4d1 linux
PHP Code:
L 10/25/2021 00:30:38SourceMod error session started
L 10
/25/2021 00:30:38Info (map "l4d_dbd_new_dawn") (file "/root/sv1/left4dead/addons/sourcemod/logs/errors_20211025.log")
L 10/25/2021 00:30:38: [SMException reportedParam is not a pointer!
L 10/25/2021 00:30:38: [SMBlamingleft4dhooks.smx
L 10
/25/2021 00:30:38: [SMCall stack trace:
L 10/25/2021 00:30:38: [SM]   [0DHookIsNullParam
L 10
/25/2021 00:30:38: [SM]   [1Line 8437left4dhooks.sp::TryOfferingTankBot
L 10
/25/2021 00:35:59: [SMException reportedParam is not a pointer!
L 10/25/2021 00:35:59: [SMBlamingleft4dhooks.smx
L 10
/25/2021 00:35:59: [SMCall stack trace:
L 10/25/2021 00:35:59: [SM]   [0DHookIsNullParam
L 10
/25/2021 00:35:59: [SM]   [1Line 8437left4dhooks.sp::TryOfferingTankBot
L 10
/25/2021 00:41:44: [SMException reportedParam is not a pointer!
L 10/25/2021 00:41:44: [SMBlamingleft4dhooks.smx
L 10
/25/2021 00:41:44: [SMCall stack trace:
L 10/25/2021 00:41:44: [SM]   [0DHookIsNullParam
L 10
/25/2021 00:41:44: [SM]   [1Line 8437left4dhooks.sp::TryOfferingTankBot
L 10
/25/2021 00:48:32: [SMException reportedParam is not a pointer!
L 10/25/2021 00:48:32: [SMBlamingleft4dhooks.smx
L 10
/25/2021 00:48:32: [SMCall stack trace:
L 10/25/2021 00:48:32: [SM]   [0DHookIsNullParam
L 10
/25/2021 00:48:32: [SM]   [1Line 8437left4dhooks.sp::TryOfferingTankBot
L 10
/25/2021 00:49:56Error log file session closed
__________________
HarryPotter is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-25-2021 , 15:19   Re: [L4D & L4D2] Left 4 DHooks Direct (1.67) [25-Oct-2021]
Reply With Quote #498

Code:
1.67 (25-Oct-2021)
    - Fixed the create projectile natives from failing still when passing 0 entity index. Thanks to "BHaType" for reporting.
    - Fixed L4D1 Linux forward "TryOfferingTankBot" sometimes throwing errors. Thanks to "HarryPotter" for reporting.
    - Fixed L4D1 setting "L4D2FWA_PenetrationNumLayers" - float values will be rounded to ceiling. Thanks to "epzminion" for finding and "Psyk0tik" for reporting.
    - Fixed target filters "@isb" and "@isp" being flipped.
__________________
Silvers is offline
th3y
Junior Member
Join Date: Jan 2014
Old 10-30-2021 , 04:40   Re: [L4D & L4D2] Left 4 DHooks Direct (1.67) [25-Oct-2021]
Reply With Quote #499

Are you gonna add more natives from L4D Direct (L4D1)?
Like:
L4DDirect_GetVSCampaignScore
L4DDirect_SetVSTankToSpawnThisRound
L4DDirect_SetVSWitchToSpawnThisRound

L4DDirect_GetVSWitchFlowPercent
L4DDirect_GetVSTankFlowPercent

L4DDirect_GetMapMaxFlowDistance

(And a few more that now i can't remember)
__________________
th3y is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 10-30-2021 , 05:59   Re: [L4D & L4D2] Left 4 DHooks Direct (1.67) [25-Oct-2021]
Reply With Quote #500

Quote:
Originally Posted by th3y View Post
Are you gonna add more natives from L4D Direct (L4D1)?
Silvers already did,
the following functions can be called in l4d1

Quote:
Originally Posted by th3y View Post
L4DDirect_GetVSCampaignScore
PHP Code:
native int L4D2Direct_GetVSCampaignScore(int teamNumber); 
Quote:
L4DDirect_SetVSTankToSpawnThisRound
PHP Code:
native void L4D2Direct_SetVSTankToSpawnThisRound(int roundNumberbool spawn); 
Quote:
L4DDirect_SetVSWitchToSpawnThisRound
PHP Code:
native int L4D2Direct_SetVSWitchFlowPercent(int roundNumberfloat flow); 
Quote:
L4DDirect_GetVSWitchFlowPercent
PHP Code:
native float L4D2Direct_GetVSWitchFlowPercent(int roundNumber); 
Quote:
L4DDirect_GetVSTankFlowPercent
PHP Code:
native float L4D2Direct_GetVSTankFlowPercent(int roundNumber); 
Quote:
L4DDirect_GetMapMaxFlowDistance
PHP Code:
native float L4D2Direct_GetMapMaxFlowDistance(); 
__________________

Last edited by HarryPotter; 10-30-2021 at 06:00.
HarryPotter 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 16:04.


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