Raised This Month: $51 Target: $400
 12% 

Solved [L4D2] Offset to get duration of the "insect_swarm" entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 05-05-2021 , 09:12   [L4D2] Offset to get duration of the "insect_swarm" entity
Reply With Quote #1

As the title says, I want to know how long the spit puddles last before they fade away. I've seen that in l4d2_uniform_spit's source code:
PHP Code:
// I transitioned it to new syntax on my end
float GetPuddleLifetime(int entity)
{
    return 
ITimer_GetElapsedTime(view_as<IntervalTimer>(GetEntityAddress(entity) + view_as<Address>(2968)));

I've tried figuring out how to find that offset but I came to a dead end so I took a look at the game's binaries and found CInsectSwarm::GetFlameLifetime.

Is the function mentioned above perhaps similar to the code by any chance? If so, I'm gonna call that one through SDKTools instead.

Last edited by cravenge; 05-06-2021 at 13:24.
cravenge is offline
 



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 23:51.


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