VC: Update DrawBackfaces, allow the tear gas to damage anyone (including the player), like on PS2

This commit is contained in:
Silent 2024-09-22 14:18:39 +02:00
parent 7ce2935e13
commit f8d4dabdac
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
2 changed files with 42 additions and 0 deletions

View File

@ -31,12 +31,15 @@ ap_hookerinn1
ap_roadsigns1_02
ap_stairsout04
basketballcourt05
bb_pooltable1_01
biker_bar_exterior
bikeshop_glass2
BillBd04
BillBd1
BillBd2
BillBd3
bodyarmour
carsontrack
car_fucko03
chairsntable
chairsntableml
@ -57,9 +60,22 @@ cl_tbl_chait_tmpb
cl_yachtmdl
cof_bardetail
cof_extwindw
concerth06
concerth07
concerth08
concerth10
concerth12
concerth27
concerth29
concerth56
cop_mainroom
deco_polbuild
deli_exterior_front
destruct03
destruct04
destruct05
destruct1
destruct2
doc_crane_cab04
doontoon54
doontoon65
@ -81,10 +97,21 @@ haiticar10
haiticar12
haiticar13
hav_car_show_out2
hogans_alley
hogans_alley_b
hospital
hot_room317
hot_trans1
instruments
kb_chr_tbl_test
kickbannerstart01
kickbus03
kickcar06
kickcar17
kickcar23
kickcar28
kickcar3
kickcar36
lampost_coast
lamppost1
lamppost2
@ -98,6 +125,8 @@ lh_icecream02
lh_philsint
lh_pizzaplace
litharoada3
loopbig
looplop2
lw_lights
lw_roombitsb
mall_ammu
@ -139,6 +168,8 @@ od_lightbeam
od_lightext
od_lightint
od_wtlegs
plank1
plankk2
pot_02
pw_priint
RoosbrgeStart_r_dt

View File

@ -1952,6 +1952,7 @@ void Patch_VC_Common()
// Fix the screwdriver not making sounds on impact
try
{
void** pedAttackJumpTable = *get_pattern<void**>("83 F8 05 77 77 FF 24 85", 5 + 3);
// Only make changes if the table hasn't been relocated
@ -1961,6 +1962,16 @@ void Patch_VC_Common()
pedAttackJumpTable[1] = pedAttackJumpTable[2];
}
}
TXN_CATCH();
// Allow the tear gas to damage anyone (including the player), like on PS2
try
{
auto set_peds_choking = get_pattern("0F 84 ? ? ? ? 8D 4B 34 D9 41 08");
Nop(set_peds_choking, 6);
}
TXN_CATCH();
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)