• sENT bullet physics
    4 replies, posted
This has probably already been asked, but since search is down, I'm not gonna browse through 101 pages of moronic questions. Quite simply wondering, how do I make a sENT that reacts just like prop_physics. I have it's physics initalized, so it can be pushed around correctly. But shooting it does nothing. Nor do explosions. Is there some way to have it react normally to all the forces that generic props do? Thanks.
You need to call Entity.TakePhysicsDamage in ENT.OnTakeDamage. [lua] function ENT:OnTakeDamage(dmg) self:TakePhysicsDamage(dmg); end [/lua] But using an entity to simulate bullet physics is a bad idea, because there will be lots of them. You might want to use multiple traces instead.
No, no. As in the force that the bullet causes on the entity that it hits. For instance, when shooting a small model, it will fly a short distance away. Basically, I need a sENT that physically acts the same as a prop_physics.
The code I posted above should do that.
Alright, that's awesome. Thanks
Sorry, you need to Log In to post a reply to this thread.