Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
|
09-16-2022
, 03:11
Re: [L4D / L4D2] Lockdown System | 1.7 [Final] : Jan. 30, 2019 |
|
#142
|
Quote:
Originally Posted by DonnyAllen
my dhooks version is "[L4D & L4D2] Left 4 DHooks Direct" (1.51) by SilverShot
|
Holy jesus, it's time to upgrade l4dhooks , your Left 4 DHooks Direct is about one year old.
Quote:
Originally Posted by Silvers
Changes:
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.
1.113 (16-Aug-2022)
- Fixed the natives "L4D_GetCheckpointFirst" and "L4D_GetCheckpointLast" not always finding the saferoom door. Thanks to "azureblue" for reporting.
1.112 (15-Aug-2022)
- Added native "L4D2_GetScriptValueFloat" to return the directors float key values. See the left4dhooks.inc include file for details.
- Changed forwards "L4D_OnGetScriptValueInt" to read and modify the post hook values.
- Probably fixed forward "L4D_OnGetScriptValueString" not modifying the return value when changed.
- Initial adding of forward "L4D_OnGetScriptValueVector" to return the directors vector key values. This is unused and commented out in code due to not being tested.
- Thanks to "Forgetest" for help coding and testing.
- Wildcarded the "SurvivorBot::UseHealingItems" signature to prevent conflicts with other plugins.
- 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.
1.111 (30-Jul-2022)
- Fixed native "L4D_GetNearestNavArea" additional params not being backwards compatible with plugins compiled against older versions of left4dhooks. Thanks to "Mr. Man" for reporting.
1.110 (15-Jul-2022)
- Added L4D2 native "L4D2_NavAreaBuildPath" to replace the "L4D2_VScriptWrapper_NavAreaBuildPath" native VScript wrapper. Requested by "morzlee". Thanks to "Forgetest" for helping.
- Changed native "L4D_GetNearestNavArea" to accept some more parameters. Suggested by "Forgetest".
- Various minor code changes to adjust for splitting the project (cleaner comments and better error handling when compiling the split project files). Thanks to "Psyk0tik" for some help.
- Since adding this native proved how difficult it is jumping around files, I may merge the project again. Or maybe privately and split for release with the batch script I wrote to package the plugin.
- Updated: Plugin and test plugin.
- Updated: "left4dhooks.inc" Include file.
- Updated: "left4dhooks.l4d2.txt" GameData file.
- Updated: all "/scripting/l4dd/" project files.
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/"
1.108 (20-Jun-2022)
- Added support for the "Updater" plugin by "GoD-Tony" to auto-update Left4DHooks. Can change the "ALLOW_UPDATER" define value for various options.
- L4D2: Added native "L4D2_Jockey_EndRide" to stop a Jockey riding a Survivor. Requested by "Eyal282".
- Updated: Plugin.
- Updated: "left4dhooks.inc" Include file.
- Updated: "left4dhooks.l4d2.txt" GameData file.
1.107 (08-Jun-2022)
- Fixed memory leak when players disconnect. Thanks to "hefiwhfcds2" for reporting.
- Fixed forwards "L4D_OnShovedBySurvivor*" from throwing "null pointer" errors. Thanks to "HarryPotter" for reporting.
- Fixed native "L4D_TakeOverZombieBot" not always setting the correct zombie type in L4D2. Thanks to "a2121858" for fixing.
- Fixed native "L4D2Direct_SetTankTickets" crashing servers. Requires SourceMod 1.11. Thanks to "a2121858" for reporting.
- Potentially fixed other server crashes on map change when writing to memory. Requires SourceMod 1.11.
1.106 (02-Jun-2022)
- Added stock "L4D_HasReachedSmoker" to return if a Survivor has reached the Smoker. Requested by "Nuki".
- Plugin now warns if Left4DHooks is already running, to avoid duplicate plugins.
- Reverted accidental debug logging from the last update. Thanks to "Hawkins" for reporting.
- Updated: Plugin and test plugin.
- Updated: "left4dhooks_silver.inc" Include files.
1.105 (01-Jun-2022)
- L4D1: Fixed native "L4D2_GetTankCount" not reporting the correct value. Thanks to "Alexmy" for reporting.
1.104 (28-May-2022)
- Fixed the new natives from the last update throwing errors in L4D1.
1.103 (28-May-2022)
- L4D2: Added new natives:
"L4D2_Charger_ThrowImpactedSurvivor" - To throw a Survivor like when they're flung by a Charger impacting nearby.
"L4D2_Charger_StartCarryingVictim" - To carry a Survivor by a Charger.
"L4D2_Charger_PummelVictim" - To pummel a specific Survivor by a Charger.
"L4D2_Charger_EndPummel" - To end pummelling a Survivor by a Charger.
- Various changes to the "left4dhooks.inc" include file. Thanks to "Vinillia" for fixing.
- Added some missing params
- Added some const qualifiers
- Renamed some brief params
- Changed some return types to any to avoid extra casting
- When recompiling plugins changes maybe required to align with these fixes.
- Updated: Plugin and test plugin.
- Updated: "left4dhooks.inc" and "left4dhooks_stocks.inc" Include files.
- Updated: "left4dhooks.l4d2.txt" GameData file.
1.102 (16-May-2022)
- Added various post hook forwards that will trigger even when the relative pre hook has been blocked with return Plugin_Handled. This is since the changes in Left4DHooks version 1.94.
- Added new forwards:
"L4D_OnSpawnSpecial_PostHandled", "L4D_OnSpawnTank_PostHandled", "L4D_OnSpawnWitch_PostHandled", "L4D_OnMobRushStart_PostHandled", "L4D_OnSpawnITMob_PostHandled", "L4D_OnSpawnMob_PostHandled",
"L4D_OnEnterGhostState_PostHandled", "L4D_OnFirstSurvivorLeftSafeArea_PostHandled", "L4D_OnGetMissionVSBossSpawning_PostHandled", "L4D_TankClaw_OnPlayerHit_PostHandled", "L4D_OnTryOfferingTankBot_PostHandled",
"L4D_OnCThrowActivate_PostHandled", "L4D2_OnEndVersusModeRound_PostHandled", "L4D_OnLedgeGrabbed_PostHandled", "L4D2_OnStagger_PostHandled", "L4D_OnShovedBySurvivor_PostHandled", "L4D2_OnEntityShoved_PostHandled",
"L4D2_OnPounceOrLeapStumble_PostHandled", "L4D_OnKnockedDown_PostHandled", "L4D2_OnPummelVictim_PostHandled", "L4D2_OnThrowImpactedSurvivor_PostHandled", "L4D2_OnPlayerFling_PostHandled",
"L4D_OnMaterializeFromGhost_PostHandled", "L4D_OnVomitedUpon_PostHandled", "L4D_PipeBombProjectile_PostHandled", "L4D_OnPouncedOnSurvivor_PostHandled", "L4D_OnGrabWithTongue_PostHandled".
1.101 (10-May-2022)
- Added natives "L4D_GetCheckpointFirst" and "L4D_GetCheckpointLast" to get the first and last saferoom door entities.
- Updated: "left4dhooks.inc" Include file.
1.100 (28-Apr-2022)
- Fixed forward "L4D2_OnStagger_Post" throwing errors. Thanks to "Eyal282" for reporting.
1.99 (27-Apr-2022)
- Fixed forward "L4D2_OnStagger_Post" not triggering. Thanks to "Eyal282" for reporting.
1.98 (27-Apr-2022)
- Added new forward "L4D_OnSwingStart" to trigger when a Survivor shoves.
- Added post hook forward "L4D_OnShovedBySurvivor_Post". Requested by "Eyal282".
- Added post hook forwards: "L4D_TankRock_OnRelease_Post, "L4D_OnCThrowActivate_Post", "L4D_OnLedgeGrabbed_Post", "L4D2_OnEntityShoved_Post",
- "L4D_OnPouncedOnSurvivor_Post", "L4D_OnStartMeleeSwing_Post" and "L4D2_OnChangeFinaleStage_Post"
- Fixed native "L4D2Direct_SetNextShoveTime" not working when setting the shove time earlier than the current value. Thanks to "Eyal282" for reporting and helping fix.
- Updated: Plugin and test plugin.
- Updated: "left4dhooks.inc" Include file.
- Updated: "left4dhooks.l4d1.txt" and "left4dhooks.l4d2.txt" GameData files.
1.97 (15-Apr-2022)
- Fixed removing animation detours in the same frame as the detour callback, crashing the server. Thanks to "Red Flame" and "fdxx" for reporting and helping.
- Fixed not erasing all animation hooks on client disconnect. Thanks to "sorallll" for reporting and fixing.
- Fixed not hooking pre hooks when only post forwards were used. Thanks to "Beatles" for reporting.
1.96 (11-Apr-2022)
- Fixed error on client disconnect. Thanks to "sorallll" for reporting.
1.95 (10-Apr-2022)
- Added stock "GetRandomClient" in the "left4dhooks_silver.inc" include file.
- Added forward "L4D_OnWitchSetHarasser" to fire when a Witch has been startled. Requested by "ProjectSky".
- Added post hook forward "L4D_OnTryOfferingTankBot_Post" to compliment it's related forward "L4D_OnTryOfferingTankBot".
- Fixed animation hooks not removing the detour when no longer required.
- Fixed animation hooks not cleaning up when a client disconnects.
- Fixed animation hooks triggering on clients other than those specified. Thanks to "JoinedSenses", "nosoop" and "Impact" for helping.
- Fixed forward "L4D2_OnPummelVictim" bugging out the victim when blocking the pummel.
- Fixed some description errors in the "left4dhooks.inc" include file. Thanks to "Eyal282" for reporting.
- Fixed a compile warning in 1.11 from the "left4dhooks_silver.inc" include file.
- Updated: Plugin and test plugin.
- Updated: "left4dhooks.inc" and "left4dhooks_silver.inc" Include files.
- Updated: "left4dhooks.l4d1.txt" and "left4dhooks.l4d2.txt" GameData files.
1.94 (29-Mar-2022)
- Added natives "L4D_GetReserveAmmo" and "L4D_SetReserveAmmo" to get and set a players weapons reserve ammo.
- Changed forward "L4D2_CGasCan_ShouldStartAction" swapping the nozzle and gascan params - to keep consistency with "L4D2_CGasCan_ActionComplete". Thanks to "Eyal282" for reporting.
- Fixed forward "L4D2_OnPlayerFling" not firing. Thanks to "Forgetest" for reporting.
- The follow forwards will no longer fire their post hook counterparts when blocked in the pre-hook (this allows using the post hooks to guarantee the forwards detoured function is invoked):
"L4D2_OnHitByVomitJar", "L4D_OnVomitedUpon", "L4D2_CInsectSwarm_CanHarm", "L4D2_OnStartCarryingVictim", "L4D2_OnStartCarryingVictim", "L4D2_OnJockeyRide", "L4D_OnGrabWithTongue",
"L4D2_CGasCan_ActionComplete", "L4D2_CGasCan_ShouldStartAction", "L4D_PipeBombProjectile_Pre", "L4D_OnMaterializeFromGhostPre", "L4D2_OnPlayerFling", "L4D2_OnThrowImpactedSurvivor",
"L4D2_OnPummelVictim", "L4D_OnKnockedDown", "L4D2_OnPounceOrLeapStumble", "L4D2_OnEndVersusModeRound", "L4D_OnTryOfferingTankBot", "L4D_TankClaw_OnPlayerHit_Pre", "L4D_OnGetMissionVSBossSpawning",
"L4D_OnEnterGhostState", "L4D_OnSpawnMob", "L4D_OnSpawnITMob", "L4D_OnMobRushStart", "L4D_OnFirstSurvivorLeftSafeArea", "L4D_OnSpawnWitch", "L4D2_OnSpawnWitchBride", "L4D_OnSpawnTank" and "L4D_OnSpawnSpecial".
1.93 (25-Mar-2022)
- Fixed forward "L4D_OnVomitedUpon_Post" throwing errors.
1.92 (24-Mar-2022)
- Fixed forward "L4D_OnSpawnSpecial_Post" firing when the client index is -1. Seems the code wasn't copied to the release.
1.91 (24-Mar-2022)
- Added post hook forwards:
"L4D2_CGasCan_ShouldStartAction_Post", "L4D2_CGasCan_ActionComplete_Post", "L4D2_CInsectSwarm_CanHarm_Post",
"L4D_OnMobRushStart_Post", "L4D_OnSpawnITMob_Post", "L4D_OnSpawnMob_Post", "L4D2_OnStagger_Post", "L4D2_OnPounceOrLeapStumble_Post",
"L4D_OnSetCampaignScores_Post", "L4D_OnRecalculateVersusScore_Post", "L4D_OnHasConfigurableDifficulty_Post",
"L4D_OnVomitedUpon_Post", "L4D2_OnHitByVomitJar_Post", "L4D2_OnJockeyRide_Post" and "L4D2_OnStartCarryingVictim_Post".
- Changed forward "L4D2_CGasCan_ShouldStartAction" params to include the nozzle entity.
- Added some missing "MarkNativeAsOptional" lines to the include file.
- Cleaned and tidied up some code.
- Fixed forward "L4D_OnSpawnSpecial" firing when the client index is -1. Thanks to "Marttt" for reporting.
- Fixed forward "L4D2_CGasCan_ShouldStartAction" crashing. Thanks to "Eyal282" for reporting.
- Fixed native "L4D_GetCurrentChapter" sometimes reporting the wrong chapter number.
- Updated: Plugin and test plugin.
- Updated: "left4dhooks.inc" and "left4dhooks_silver.inc" Include files.
- Updated: "left4dhooks.l4d2.txt" GameData file.
1.90 (20-Mar-2022)
- Added forwards "L4D_OnKnockedDown" and "L4D_OnKnockedDown_Post" to trigger when a Survivor is being thrown by a Tank rock or Hunter lung.
- Added forwards "L4D2_OnThrowImpactedSurvivor" and "L4D2_OnThrowImpactedSurvivor_Post" to trigger when a Survivor is impacted by a Charger.
- Added forwards "L4D2_OnPummelVictim" and "L4D2_OnPummelVictim_Post" to trigger when a Survivor is about to be pummelled by a Charger.
- Added native "L4D_EstimateFallingDamage" to check a players estimated falling damage. Requested by "Eyal282".
- Added stocks "L4D_GetPinnedSurvivor" and "L4D2_IsMultiCharged" in the "left4dhooks_silver.inc" include file. Requested by "Eyal282".
- Changed stock "L4D_IsPlayerStaggering" in the "left4dhooks_silver.inc" include file to add better thanks. Thanks to "HarryPotter" for modifying.
- Changed forward "L4D_OnMaterializeFromGhost" from "Action" type to "void". Thanks to "Eyal282" for reporting.
- Updated: Plugin and test plugin.
- Updated: "left4dhooks.inc" and "left4dhooks_silver.inc" Include files.
- Updated: "left4dhooks.l4d1.txt" and "left4dhooks.l4d2.txt" GameData files.
1.89 (02-Mar-2022)
- Fixed various @ targeting from only selecting 1 player. Thanks to "Eyal282" for reporting.
- Changed stock "L4D_ForcePanicEvent" in the "left4dhooks_silver.inc" include file" to fix breaking and in L4D2 trigger under more circumstances. Thanks to "Eyal282" for reporting.
1.88 (01-Mar-2022)
- Added forward "L4D2_CGasCan_ShouldStartAction" (L4D2 only) to trigger when someone is about to pour a gascan. Requested by "Eyal282".
- Added forward "L4D2_OnPlayerFling_Post" as a post hook to supplement the "L4D2_OnPlayerFling" forward. Requested by "Eyal282".
- Added natives "L4D_ForceVersusStart", "L4D_ForceSurvivalStart" and "L4D2_ForceScavengeStart" (L4D2 only). Requested by "ProjectSky".
- Thanks to "Lux" for some advice.
- Added stock "L4D_GetClientTeam" in the "left4dhooks_stocks.inc" include file. Requested by Eyal282".
- Added stock "L4D_IsPlayerStaggering" in the "left4dhooks_silver.inc" include file. Thanks to "HarryPotter" for writing.
- Changed stock "L4D_ForcePanicEvent" in the "left4dhooks_silver.inc" include file to strip cheat flags when executing the command. Thanks to "Eyal282" for reporting.
- Fixed stock "L4D_GetPinnedInfected" in the "left4dhooks_silver.inc" include file not returning a Charger carrying someone. Thanks to "Eyal282" for reporting.
- Added enums "L4D1ZombieClassname" and "L4D2ZombieClassname" to the "left4dhooks_stocks.inc" include file to retrieve a classname from the relative "L4D1ZombieClassType" and "L4D2ZombieClassType" enums.
- Added target filters "@blackwhite" and "@bw" to target people who are on their third strike (black and white - about to die). Requested by "eyal282".
- Added target filters "@survivorbots" and "@sb" to target Survivor Bots. Requested by "LordVGames".
- Added target filters "@infectedbots" and "@ib" to target Infected Bots. Requested by "LordVGames".
- Changed "L4D2Direct_SetShovePenalty" and "L4D2Direct_SetNextShoveTime" to use SDKCalls instead of writing to memory.
- Changes to potentially fix intermittent crashing on map change when using "CTimer_Set*", "ITimer_Set*", natives.
- Thanks to "Forgetest" and "vikingo12" for reporting and possible solutions.
- Requires re-compiling with SourceMod 1.11 to take affect.
- Updated: Plugin and test plugin.
- Updated: "left4dhooks.inc" Include file.
- Updated: "left4dhooks_silver.inc" Include file.
- Updated: "left4dhooks_stocks.inc" Include file.
- Updated: "left4dhooks.l4d1.txt" and "left4dhooks.l4d2.txt" GameData files.
- Plugins using these stocks should recompile their plugin if the relative stock mentioned above has been updated.
1.87 (06-Feb-2022)
- Added native "L4D_LobbyIsReserved" to return if players connected from the lobby and reserved the server.
- Added natives "L4D_GetLobbyReservation" and "L4D_SetLobbyReservation" to get and set the lobby reservation ID.
- Setting lobby reservation may not work when L4DToolZ is installed.
- Added new weapon attribute. Requested by "vikingo12".
- L4D2FloatWeaponAttributes: "L4D2FWA_ReloadDuration".
- L4D2: now dynamically generates the "CTerrorGameRules::IsRealism" signature to future proof against updates breaking the signature.
- Updated: Plugin.
- Updated: "left4dhooks.inc" Include file.
- Updated: "left4dhooks.l4d1.txt" and "left4dhooks.l4d2.txt" GameData files.
1.86 (02-Feb-2022)
- Added forward "L4D_OnServerHibernationUpdate" to report when server hibernation status changes. Requested by ProjectSky".
- Added new weapon attribute. Requested by "A1m".
- L4D2FloatWeaponAttributes: "L4D2FWA_GainRange".
- Fixed broken signatures in L4D1 and L4D2 due to game updates.
- Updated: Plugin.
- Updated: "left4dhooks.inc" Include file.
- Updated: "left4dhooks.l4d1.txt" and "left4dhooks.l4d2.txt" GameData files.
1.85 (10-Jan-2022)
- Fixed "L4D2IWA_Bucket", "L4D2IWA_Tier", "L4D2FWA_VerticalPunch" and "L4D2FWA_HorizontalPunch" not reading offsets. Thanks to "DarklSide" for reporting.
- Fixed native "AnimHookDisable" removing all hooks when multiple identical hook callbacks are added from a single plugin. Thanks to "Eärendil" for reporting.
1.84 (08-Jan-2022)
- Fixed forward "L4D_OnTryOfferingTankBot" detour returning the wrong value when using "Plugin_Changed". Thanks to "Nuki" for reporting.
- Fixed "Local_GetRandomClient" not processing alive or bots values correctly. Thanks to "Mrs cheng" for reporting.
- Now using a random seed when using functions that randomly select players. Requested by "Mrs cheng".
- More error messages report the OS, game and plugin version.
- Updated: Plugin.
- Updated: "left4dhooks_silver.inc" Include file.
1.83 (25-Dec-2021)
- Made error messages report the OS, game and plugin version.
- Wildcarded the "CDirector::RestartScenarioFromVote" signature for L4D1. Thanks to "Beatles" or reporting.
- Updated: Plugin.
- Updated: "left4dhooks.l4d1.txt" GameData file.
1.82 (14-Dec-2021)
- Added new weapon attributes. Thanks to "iaNanaNana" for requesting and giving offsets.
- L4D2IntWeaponAttributes: "L4D2IWA_Bucket" (both games) and "L4D2IWA_Tier" (L4D2 only).
- L4D2FloatWeaponAttributes: "L4D2FWA_VerticalPunch" and "L4D2FWA_HorizontalPunch".
- Updated: Plugin.
- Updated: "left4dhooks.inc" Include file.
- Updated: "left4dhooks.l4d1.txt" and "left4dhooks.l4d2.txt" GameData files.
1.81 (30-Nov-2021)
- Fixed forward "L4D_OnVomitedUpon" sometimes throwing errors about null pointer. Thanks to "Krufftys Killers" for reporting.
- Changed function "Local_GetRandomClient" in "left4dhooks_silver.inc" to be stock. Thanks to "A1m" for reporting.
- Updated: Plugin.
- Updated: "left4dhooks_silver.inc" Include file.
1.80 (24-Nov-2021)
- Fixed forward "L4D_OnSpawnSpecial_Post" param error. Thanks to "fdxx" for reporting.
1.79 (23-Nov-2021)
- Changed forward "L4D_OnSpawnSpecial_Post" prototype to remove the reference variable.
- Updated: Plugin and Test plugin.
- Updated: "left4dhooks.inc" Include file.
1.78 (23-Nov-2021)
- Added forwards "L4D_OnSpawnSpecial_Post", "L4D_OnSpawnTank_Post", "L4D_OnSpawnWitch_Post" and "L4D2_OnSpawnWitchBride_Post". Requested by "A1m".
- Added stocks "GetAnyRandomClient", "GetRandomSurvivor" and "GetRandomInfected" to the "left4dhooks_silver.inc" include file.
- Updated: Plugin and Test plugin.
- Updated: "left4dhooks.l4d1" and "left4dhooks.l4d2" GameData files.
- Updated: "left4dhooks.inc" and "left4dhooks_silver.inc" Include files.
1.77 (21-Nov-2021)
- Fixed not detouring some functions when only 1 detour was used instead of both pre and post. Thanks to "fdxx" for reporting.
1.76 (20-Nov-2021)
- Fixed native "L4D2_IsReachable" using a bad signature. Thanks to "tRololo312312" for reporting.
- Wildcarded the "Music::Play" signatures to be compatible with plugins detouring. Thanks to "user2000", "Edison1318" and "Shadowysn" for reporting.
- Wildcarded the "ZombieManager::SpawnTank" signatures to be compatible with plugins detouring. Thanks to "Tank Rush" for reporting.
- L4D1 and L4D2 GameData files updated.
1.75 (18-Nov-2021)
- Fixed forward "L4D2_OnHitByVomitJar" throwing errors about null pointer.
- Forwards "L4D_OnVomitedUpon" and "L4D2_OnHitByVomitJar" attacker can now be reported as 0.
- "left4dhooks_silver.inc" include:
- Deprecated stock "L4D_IsPlayerIncapped".
- "left4dhooks_stocks.inc" include:
- Renamed the stock "L4D_HasAnySurvivorLeftSafeArea" to "L4D_HasAnySurvivorLeftSafeAreaStock" (the native "L4D_HasAnySurvivorLeftSafeArea" still exists).
- Fixed compile errors on SourceMod version 1.11. Thanks to "user2000" for reporting.
- Replaced indentation spaces with tabs.
- Note: "#include <left4dhooks>" will load all <left4dhooks_*> includes. Other "#include <left4dhooks_*>" will attempt to load each other if included on their own.
- Only required to use "#include <left4dhooks>" for all features and stocks availability.
- Plugin and Include files updated.
1.74 (16-Nov-2021)
- Fixed releasing 1.73 with the wrong "left4dhooks_stocks.inc" include file version. Thanks to "moschinovac" for reporting.
1.73 (15-Nov-2021)
- Added tons of new stocks! About 147!
- Added some new enums to the "left4dhooks_silver.inc" include file: "L4D_TEAM_*", "L4D_ZOMBIE_CLASS_*", "L4D2_ZOMBIE_CLASS_*" and "L4D_WEAPON_SLOT_*".
- Added new include file "left4dhooks_lux_library.inc" - various new stocks from "lux_library.inc". Thanks to "Lux" for the original file and allowing use.
- Added new include file "left4dhooks_silver.inc" - various new stocks. This will be updated over time to add new simple stock functions.
- Added new inclide file "left4dhooks_stocks.inc" - various new stocks from "l4d_stocks.inc". Thanks to "Mr. Zero" for the original files.
- This is also combined with the "l4d_weapon_stocks.inc" include file by "Mr. Zero".
- Only required to copy to the "scripting/include" directory when compiling, "left4dhooks.inc" will include these automatically.
- New GameData file "lux_library.txt" used for the "left4dhooks_lux_library.inc" include file. Thanks to "Lux" for providing these.
- Updated: Plugin, Test plugin, Include file.
- Added: New include files and GameData file.
1.72 (10-Nov-2021)
- Added native "L4D_GetPointer" to return various pointer addresses.
- Added native "L4D_GetClientFromAddress" to return a client index from a memory address.
- Added native "L4D_GetEntityFromAddress" to return an entity index from a memory address.
- Added native "L4D_ReadMemoryString" to read a string from a memory address.
- Added native "L4D_GetServerOS" to return the current server OS.
1.71 (07-Nov-2021)
- Fixed native "L4D2_GetSurvivorSetMod" not being restricted to L4D2. Thanks to "HarryPotter" for reporting.
- Plugin now loads about 1 second faster and no longer creates about 1 second delay on map changes.
- Changes to the "sm_l4dd_detours" and "sm_l4dhooks_detours" commands to prevent errors when using the DEBUG or DETOUR defines.
1.70 (07-Nov-2021)
- Added native "L4D_TankRockPrj" to create a Tank Rock projectile.
- Added native "L4D_DetonateProjectile" to detonate grenade projectiles.
- Added natives to L4D2: "L4D2_GetSurvivorSetMap" and "L4D2_GetSurvivorSetMod" to return the maps and modified Survivor set.
- Changed forwards "L4D_OnGetSurvivorSet" and "L4D_OnFastGetSurvivorSet" to post hooks to retrieve the correct value. Thanks to "Gabe Iggy" for reporting.
- Fixed detours "OnShovedBySurvivor_Clone" and "OnStaggered_Clone" being broken on L4D1 linux. Thanks to "HarryPotter" for reporting.
- GameData files, include file and plugins updated.
1.69a (04-Nov-2021)
- Added missing forwards "L4D_OnPouncedOnSurvivor" and "L4D2_OnStartCarryingVictim" to the include file. Thanks to "ProjectSky" for reporting.
1.69 (03-Nov-2021)
- Added forward "L4D_OnPouncedOnSurvivor" to notify when a Survivor is being pounced on by a Hunter.
- Added forward "L4D2_OnStartCarryingVictim" to L4D2 to notify when a Survivor is being grabbed by a Charger.
- Fixed some natives disabling the plugin if their signatures broke. Only their functionality will break.
- GameData files, include file and plugins updated.
1.68 (02-Nov-2021)
- Added forward "L4D_OnGrabWithTongue" to L4D2 to notify when someone is about to be grabbed by a Smoker Tongue. Requested by "Alexmy".
- Added forward "L4D2_OnJockeyRide" to notify when someone is about to be ridden by a Jockey. Requested by "Alexmy".
- Cleaned and consolidated the code: standardized gamedata names, function names and variable names.
- Compatibility support for SourceMod 1.11. Fixed various warnings.
- GameData files, include file and plugins updated.
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.
1.66 (21-Oct-2021)
- Fixed L4D1 Linux not finding the "g_pWeaponInfoDatabase" signature. Thanks to "Ja-Forces" for reporting.
- L4D1 GameData updated.
1.65 (20-Oct-2021)
- Changed forward "L4D2_CGasCan_EventKilled" params to show the inflictor and attacker.
- Thanks to "ProjectSky" for reminding me.
- Plugins and include file updated.
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.
1.63 (15-Oct-2021)
- Changed all projectile natives to allow passing 0 (world) instead of a client index. Thanks to "BHaType" for reporting.
- Changed forward "L4D_OnGameModeChange" from "Action" type to "void". Thanks to "Psyk0tik" for reporting.
- Fixed commands "sm_l4dd_detours" and "sm_l4dhooks_detours" not showing all forwards when they have pre and post hooks.
- Added 11 new forwards to L4D1 and L4D2. Thanks to "Psyk0tik" for the suggestions, signatures and detour functions.
- "L4D_TankClaw_DoSwing_Pre" - When a tank is swinging to punch.
- "L4D_TankClaw_DoSwing_Post" - When a tank is swinging to punch.
- "L4D_TankClaw_GroundPound_Pre" - When an tank punches the ground.
- "L4D_TankClaw_GroundPound_Post" - When an tank punches the ground.
- "L4D_TankClaw_OnPlayerHit_Pre" - When a tank swings and punches a player.
- "L4D_TankClaw_OnPlayerHit_Post" - When a tank swings and punches a player.
- "L4D_TankRock_OnDetonate" - When a tank rock hits something.
- "L4D_TankRock_OnRelease" - When a tank rock is thrown.
- "L4D_PlayerExtinguish" - When a player is about to be extinguished.
- "L4D_PipeBombProjectile_Pre" - When a PipeBomb projectile is being created.
- "L4D_PipeBombProjectile_Post" - After a PipeBomb projectile is created.
- Added 1 new forward to L4D2. Thanks to "Lux" for the suggestion, signature and detour functions.
- "L4D2_MeleeGetDamageForVictim" - When calculating melee damage to inflict on something.
- GameData files, include file and plugins updated.
1.62 (08-Oct-2021)
- L4D1 Linux: Update thanks to "Forgetest" for writing.
- L4D1 Linux: Fixed issues with the forwards "L4D_OnShovedBySurvivor" and "L4D2_OnStagger". Thanks "HarryPotter" for reporting.
- L4D1 GameData file and plugin updated.
1.61 (05-Oct-2021)
- Added natives "L4D_GetTempHealth" and "L4D_SetTempHealth" to handle Survivors temporary health buffer.
- Added natives "L4D_PlayMusic" to play a specified music string to a client. Thanks to "DeathChaos25" and "Shadowysn" for "Dynamic Soundtrack Sets" plugin.
- Added natives "L4D_StopMusic" to stop playing a specified music string to a client. Thanks to "DeathChaos25" and "Shadowysn" for "Dynamic Soundtrack Sets" plugin.
- Moved the animation ACT_* enums from "include/left4dhooks.inc" to "include/left4dhooks_anim.inc". Suggested by "Accelerator". No plugin changes required.
- Thanks to "Psyk0tik" for requesting the following forwards and natives and their signatures found here: https://github.com/Psykotikism/L4D1-2_Signatures
- Added natives:
- "L4D2_HasConfigurableDifficultySetting" - Returns if there is a configurable difficulty setting.
- "L4D2_IsGenericCooperativeMode" - Returns if the current game mode is Coop/Realism mode.
- "L4D_IsCoopMode" - Returns if the current game mode is Coop mode.
- "L4D2_IsRealismMode" - Returns if the current game mode is Realism mode.
- "L4D2_IsScavengeMode" - Returns if the current game mode is Scavenge mode.
- "L4D_IsSurvivalMode" - Returns if the current game mode is Survival mode.
- "L4D_IsVersusMode" - Returns if the current game mode is Versus mode.
- Added forwards:
- "L4D_OnFalling" - Called when a player is falling.
- "L4D_OnFatalFalling" - Called when a player is falling in a fatal zone.
- "L4D2_OnPlayerFling" - Called when a player is flung to the ground.
- "L4D_OnEnterStasis" - Called when a Tank enters stasis mode in Versus mode.
- "L4D_OnLeaveStasis" - Called when a Tank leaves stasis mode in Versus mode.
- GameData files, include file and plugins updated.
1.60 (29-Sep-2021)
- Added native "L4D2_GrenadeLauncherPrj" to create an activated Grenade Launcher projectile which detonates on impact. L4D2 only.
- Fixed L4D1 Linux "MolotovProjectile_Create" signature. Thanks to "Ja-Forces" for reporting.
1.59 (29-Sep-2021)
- HotFix: Fix Linux not loading the last 2 natives.
1.58 (29-Sep-2021)
- Added native "L4D_MolotovPrj" to create an activated Molotov projectile which detonates on impact.
- Added native "L4D2_VomitJarPrj" to create an activated VomitJar projectile which detonates on impact. L4D2 only.
- Added "STATE_*" enums to the include file for use with the "L4D_State_Transition" native. Thanks to "BHaType" for providing.
- Fixed some incorrect information in the include file. Thanks to "jackz" for reporting.
- GameData files, include file and plugins updated.
1.57 (18-Sep-2021)
- Changed the method for getting the current GameMode. Should have no more issues. Thanks to "ddd123" for reporting.
- L4D2: Wildcarded the "CTerrorPlayer::Fling" signature for compatibility with being detoured. Thanks to "ddd123" for reporting.
- L4D2 GameData file and plugin updated.
1.56 (15-Sep-2021)
- Fixed spawning an entity directly OnMapStart (can cause crashes), delayed by a frame to fix errors. Thanks to "fdxx" for reporting.
1.55 (12-Sep-2021)
- Fixed native "L4D2Direct_TryOfferingTankBot" not working for L4D1 Linux due to the last update. Thanks to "Forgetest" for reporting.
- L4D1 gamedata file updated only.
1.54 (12-Sep-2021)
- Big thanks to "Forgetest" and "HarryPotter" for helping fix and test this release.
- Added forward "L4D_OnGameModeChange" to notify plugins when the mode has changed to Coop, Versus, Survival and Scavenge (L4D2).
- Added native "L4D_GetGameModeType" to return if the current game mode is Coop, Versus, Survival or Scavenge (L4D2).
- Update for L4D1:
- Fixed on Linux forward "L4D_OnSpawnWitch" from not triggering for some Witch spawns. Thanks to "Forgetest" for fixing.
- Fixed on Linux forward "L4D_OnTryOfferingTankBot" from not triggering on the first tank. Thanks to "Forgetest" for fixing.
- Unlocked native "L4D2Direct_GetMobSpawnTimer" for usage in L4D1. Thanks to "HarryPotter" for reporting functionality.
- Unlocked native "L4D2Direct_GetTankCount" for usage in L4D1. Missed this from the last update.
- L4D1 GameData file, include file and plugins updated.
1.53 (09-Sep-2021)
- Update for L4D1:
- Added forward "L4D_OnRecalculateVersusScore" from "raziEiL"'s port of "L4D Direct".
- Added natives "L4DDirect_GetSurvivorHealthBonus", "L4DDirect_SetSurvivorHealthBonus" and "L4DDirect_RecomputeTeamScores" from "raziEiL"'s port of "L4D Direct".
- Changed native "L4D2_GetTankCount" to use the directors variable instead of counting entities. Thanks to "Forgetest" for the offsets.
- Unblocked native "L4D_GetTeamScore" for usage in L4D1. Accepts logical_team params 1-6.
- Fixed forward "L4D_OnFirstSurvivorLeftSafeArea" not blocking correctly. Thanks to "Forgetest" for the solution.
- Various fixes and additions thanks to "HarryPotter" for requesting and testing.
- L4D1 GameData file, include file and plugins updated.
1.52 (31-Aug-2021)
- Added L4D1 and L4D2 specific "ACT_*" animation activity constants to the include file for usage in animation pre-hooks. See the include file for details.
- Wildcarded "RestartScenarioFromVote" detour to be compatible with the "[L4D2] Restart Without Changelevel" plugin by "iaNanaNana".
- Various minor changes to the code legibility.
- L4D2 GameData updated. Include file and plugins updated.
1.51 (10-Aug-2021)
- Added natives "L4D_GetCurrentChapter" and "L4D_GetMaxChapters" to get the current and max chapters count. Thanks to "Psyk0tik" for help.
- L4D1: added natives "L4D_GetVersusMaxCompletionScore" and "L4D_SetVersusMaxCompletionScore" to get/set Versus max score. Thanks to "BHaType" for offsets.
- L4D1: Fixed broken "CThrowActivate" signature due to the 1.0.4.0 update. Thank to "matrixmark" for reporting.
- GameData files, include file and plugins updated.
|
__________________
Last edited by HarryPotter; 09-16-2022 at 03:11.
|
|