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
Forgetest
Member
Join Date: Aug 2020
Old 09-18-2020 , 08:20   Re: [L4D & L4D2] Left 4 DHooks Direct (1.21) [01-Sep-2020]
Reply With Quote #171

Code:
/**
 * @brief Get the team scores for the current map
 * @remarks The campaign scores are not set until the end of round 2,
 *			use L4D_GetCampaignScores to get them earlier.
 *
 * @deprecated This function can be called through SDKTools using CTerrorGameRules,
 *			and so you should switch off to using SDKTools instead of this native.
 *
 * @param logical_team		0 for A, 1 for B
 * @param campaign_score	true to get campaign score instead of map score
 *
 * @return			the logical team's map score
 *					or -1 if the team hasn't played the round yet,
 *					or the team's campaign score if campaign_score = true
 */
// L4D2 only.
native int L4D_GetTeamScore(int logical_team, bool campaign_score=false);
Mark it deprecated as described? Meanwhile this native doesn't work as expected because it never consider 0 passed as logical_team valid when campaign_score = false, nor the downtown version.

Btw, it seems that the coming update for L4D2 has changes of offsets and/or signatures. Busy time guaranteed?
Forgetest is offline
caxanga334
Member
Join Date: Nov 2013
Location: Brazil
Old 09-24-2020 , 13:31   Re: [L4D & L4D2] Left 4 DHooks Direct (1.21) [01-Sep-2020]
Reply With Quote #172

Linux gamedata needs update.

Code:
L 09/24/2020 - 14:25:28: [left4dhooks.smx] Failed to find "VanillaModeAddress" address.
L 09/24/2020 - 14:25:28: [left4dhooks.smx] Failed to load "GetMissionVersusBossSpawning" signature.

Last edited by caxanga334; 09-24-2020 at 13:32.
caxanga334 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-24-2020 , 13:55   Re: [L4D & L4D2] Left 4 DHooks Direct (1.21) [01-Sep-2020]
Reply With Quote #173

There are a bunch of signatures needing updates. Have patience. Temporary updated gamedata (still needs more testing) here: https://forums.alliedmods.net/showpo...6&postcount=18
__________________

Last edited by Silvers; 09-24-2020 at 15:02.
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-24-2020 , 17:06   Re: [L4D & L4D2] Left 4 DHooks Direct (1.22) [24-Sep-2020]
Reply With Quote #174

Code:
1.22 (24-Sep-2020)1.22 (24-Sep-2020)
    - Compatibility update for L4D2's "The Last Stand" update.
    - Big thanks to "ProdigySim" for help updating various gamedata offsets and signatures.
    - Added support for the 2 new melee weapons.
    - Changed native "L4D_GetTeamScore" to accept values 0 and 1 which seems is the standard.
    - Late loading with debug enabled now shows the g_pGameRules pointer.
    - Moved hard coded Addon Eclipse offsets to gamedata.
It seems Addons Eclipse is still broken. When testing it worked 4/6 times. Possibly the gamedata offset needs to be changed from "48" to "108" as noted here: https://gist.github.com/ProdigySim/1...ae67b32abe0f06 but I cannot test on my own.

There may still be other unknown issues. Signatures and vtable offsets have been fixed and some other bits thanks to ProdigySim.
__________________

Last edited by Silvers; 09-25-2020 at 00:21.
Silvers is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 09-24-2020 , 23:07   Re: [L4D & L4D2] Left 4 DHooks Direct (1.22) [24-Sep-2020]
Reply With Quote #175

I haven't seen anyone post an updated version of forceset to work with this so I'll just drop it here.

I've done literally nothing except change the left4downtown include to now be l4dhooks include, I also tested and it works with last stand update provided you have updated gamedata.

Spoiler
Attached Files
File Type: smx forceset.smx (3.0 KB, 1558 views)
__________________
DeathChaos25 is offline
mikaelangelis
Senior Member
Join Date: Oct 2017
Old 09-24-2020 , 23:41   Re: [L4D & L4D2] Left 4 DHooks Direct (1.22) [24-Sep-2020]
Reply With Quote #176

Quote:
Originally Posted by DeathChaos25 View Post
I haven't seen anyone post an updated version of forceset to work with this so I'll just drop it here.

I've done literally nothing except change the left4downtown include to now be l4dhooks include, I also tested and it works with last stand update provided you have updated gamedata.

Spoiler
@deathchaos25 Hey death, I'm using left4downtown, forceset, sceneprocessor to correct voices of l4d1 and l4d2 characters when using characterselect plugin. Since left4downtown is unecessary and to be got rid of, do you know how to correct voice without left4downtown?
mikaelangelis is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 09-24-2020 , 23:57   Re: [L4D & L4D2] Left 4 DHooks Direct (1.22) [24-Sep-2020]
Reply With Quote #177

Get rid of left4downtown and use left4dhooks instead, and use this version of forceset, I tested in maps such as The Sacrifice and Last Stand and it works fine.

Spoiler
__________________
DeathChaos25 is offline
mikaelangelis
Senior Member
Join Date: Oct 2017
Old 09-25-2020 , 01:08   Re: [L4D & L4D2] Left 4 DHooks Direct (1.22) [24-Sep-2020]
Reply With Quote #178

Quote:
Originally Posted by DeathChaos25 View Post
Get rid of left4downtown and use left4dhooks instead, and use this version of forceset, I tested in maps such as The Sacrifice and Last Stand and it works fine.

Spoiler
Well I tried changing to Coach in l4d1 campaign and he still has louis voice, only sometimes has Coach voiceline and melee grunt, that also happens to other l4d2 characters LMAO. I'm figuring out what causes this

Last edited by mikaelangelis; 09-25-2020 at 01:09.
mikaelangelis is offline
mikaelangelis
Senior Member
Join Date: Oct 2017
Old 09-25-2020 , 08:03   Re: [L4D & L4D2] Left 4 DHooks Direct (1.22) [24-Sep-2020]
Reply With Quote #179

Oh nvm I found the problem for incorrect voice. Still had the Dhook of sm1.9 fixed
mikaelangelis is offline
Shao
Senior Member
Join Date: Jan 2015
Old 09-26-2020 , 03:51   Re: [L4D & L4D2] Left 4 DHooks Direct (1.22) [24-Sep-2020]
Reply With Quote #180

Quote:
Originally Posted by DeathChaos25 View Post
I haven't seen anyone post an updated version of forceset to work with this so I'll just drop it here.

I've done literally nothing except change the left4downtown include to now be l4dhooks include, I also tested and it works with last stand update provided you have updated gamedata.

Spoiler
I don't exactly get the purpose of this plugin. Why have it when info editor can just do it fine?
Shao 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 07:52.


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