View Single Post
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 02-19-2022 , 21:35   Re: [L4D2] Remove bile effect if Vomit jar out of map (NAV)
Reply With Quote #9

Quote:
Originally Posted by HarryPotter View Post
That is weird, I throw bile at reachable nav or common infected body, the chat still prints
Hmm... Game overwrites ChaseVictim property. Try this version
Code
GameData

Help information for everyone else who wants to find a better solution

Infected starts waving animation at 40EFD0 + 96D (ChaseVictim::Update) it compares ChaseVictim property which stores return value of Path::IsValid function, property getting set from DirectChaseVictim::Update at 3B71B7 and 3B717A (Windows offsets).

Probably the best solution is to detourPost DirectChaseVictim::Update function and check if chasing entity is vomitjar and path for it is unreachable if so delete vomitjar and set property to 1
__________________
cry

Last edited by BHaType; 02-19-2022 at 21:38.
BHaType is offline
Send a message via AIM to BHaType