View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-17-2021 , 14:25   Re: [L4D2]How to add damage sources to flying objects (containers, cars, truck)
Reply With Quote #8

Yeah, where are you putting the code?

Edit: I do this in one of my plugins:
PHP Code:
elay)
{
    
SetEntPropEnt(entityProp_Data"m_hPhysicsAttacker"client);
    
SetEntPropFloat(entityProp_Data"m_flLastPhysicsInfluenceTime"GetGameTime()); 
I think that last line might be required, I see it in a few of mine like this.
__________________

Last edited by Silvers; 09-17-2021 at 14:28.
Silvers is offline