mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-31 06:57:28 +05:00
VC: Update DrawBackfaces, allow the tear gas to damage anyone (including the player), like on PS2
This commit is contained in:
parent
7ce2935e13
commit
f8d4dabdac
2 changed files with 42 additions and 0 deletions
|
@ -31,12 +31,15 @@ ap_hookerinn1
|
||||||
ap_roadsigns1_02
|
ap_roadsigns1_02
|
||||||
ap_stairsout04
|
ap_stairsout04
|
||||||
basketballcourt05
|
basketballcourt05
|
||||||
|
bb_pooltable1_01
|
||||||
|
biker_bar_exterior
|
||||||
bikeshop_glass2
|
bikeshop_glass2
|
||||||
BillBd04
|
BillBd04
|
||||||
BillBd1
|
BillBd1
|
||||||
BillBd2
|
BillBd2
|
||||||
BillBd3
|
BillBd3
|
||||||
bodyarmour
|
bodyarmour
|
||||||
|
carsontrack
|
||||||
car_fucko03
|
car_fucko03
|
||||||
chairsntable
|
chairsntable
|
||||||
chairsntableml
|
chairsntableml
|
||||||
|
@ -57,9 +60,22 @@ cl_tbl_chait_tmpb
|
||||||
cl_yachtmdl
|
cl_yachtmdl
|
||||||
cof_bardetail
|
cof_bardetail
|
||||||
cof_extwindw
|
cof_extwindw
|
||||||
|
concerth06
|
||||||
|
concerth07
|
||||||
|
concerth08
|
||||||
|
concerth10
|
||||||
|
concerth12
|
||||||
|
concerth27
|
||||||
|
concerth29
|
||||||
|
concerth56
|
||||||
cop_mainroom
|
cop_mainroom
|
||||||
deco_polbuild
|
deco_polbuild
|
||||||
deli_exterior_front
|
deli_exterior_front
|
||||||
|
destruct03
|
||||||
|
destruct04
|
||||||
|
destruct05
|
||||||
|
destruct1
|
||||||
|
destruct2
|
||||||
doc_crane_cab04
|
doc_crane_cab04
|
||||||
doontoon54
|
doontoon54
|
||||||
doontoon65
|
doontoon65
|
||||||
|
@ -81,10 +97,21 @@ haiticar10
|
||||||
haiticar12
|
haiticar12
|
||||||
haiticar13
|
haiticar13
|
||||||
hav_car_show_out2
|
hav_car_show_out2
|
||||||
|
hogans_alley
|
||||||
|
hogans_alley_b
|
||||||
hospital
|
hospital
|
||||||
hot_room317
|
hot_room317
|
||||||
hot_trans1
|
hot_trans1
|
||||||
|
instruments
|
||||||
kb_chr_tbl_test
|
kb_chr_tbl_test
|
||||||
|
kickbannerstart01
|
||||||
|
kickbus03
|
||||||
|
kickcar06
|
||||||
|
kickcar17
|
||||||
|
kickcar23
|
||||||
|
kickcar28
|
||||||
|
kickcar3
|
||||||
|
kickcar36
|
||||||
lampost_coast
|
lampost_coast
|
||||||
lamppost1
|
lamppost1
|
||||||
lamppost2
|
lamppost2
|
||||||
|
@ -98,6 +125,8 @@ lh_icecream02
|
||||||
lh_philsint
|
lh_philsint
|
||||||
lh_pizzaplace
|
lh_pizzaplace
|
||||||
litharoada3
|
litharoada3
|
||||||
|
loopbig
|
||||||
|
looplop2
|
||||||
lw_lights
|
lw_lights
|
||||||
lw_roombitsb
|
lw_roombitsb
|
||||||
mall_ammu
|
mall_ammu
|
||||||
|
@ -139,6 +168,8 @@ od_lightbeam
|
||||||
od_lightext
|
od_lightext
|
||||||
od_lightint
|
od_lightint
|
||||||
od_wtlegs
|
od_wtlegs
|
||||||
|
plank1
|
||||||
|
plankk2
|
||||||
pot_02
|
pot_02
|
||||||
pw_priint
|
pw_priint
|
||||||
RoosbrgeStart_r_dt
|
RoosbrgeStart_r_dt
|
||||||
|
|
|
@ -1952,6 +1952,7 @@ void Patch_VC_Common()
|
||||||
|
|
||||||
|
|
||||||
// Fix the screwdriver not making sounds on impact
|
// Fix the screwdriver not making sounds on impact
|
||||||
|
try
|
||||||
{
|
{
|
||||||
void** pedAttackJumpTable = *get_pattern<void**>("83 F8 05 77 77 FF 24 85", 5 + 3);
|
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
|
// Only make changes if the table hasn't been relocated
|
||||||
|
@ -1961,6 +1962,16 @@ void Patch_VC_Common()
|
||||||
pedAttackJumpTable[1] = pedAttackJumpTable[2];
|
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)
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||||
|
|
Loading…
Reference in a new issue