SetEntPropEnt "m_hOwnerEntity" Changes Collision Group & Weapon Interaction
When trying to spawn an entity prop, setting it's owner to a client entity via...
Code:
SetEntPropEnt(iEnt, Prop_Data, "m_hOwnerEntity", client); If I do not set an owner entity, the prop takes damage from all weapon types and collides with the player as expected. Any ideas here? PHP Code:
|
Re: SetEntPropEnt "m_hOwnerEntity" Changes Collision Group & Weapon Interaction
Try set properties, after entity spawn.
CreateTimer with 0.0 seconds. |
Re: SetEntPropEnt "m_hOwnerEntity" Changes Collision Group & Weapon Interaction
That occur since always, and I used that for make my noblock in props plugin -> https://forums.alliedmods.net/showthread.php?p=2561383
|
Re: SetEntPropEnt "m_hOwnerEntity" Changes Collision Group & Weapon Interaction
Quote:
PHP Code:
|
Re: SetEntPropEnt "m_hOwnerEntity" Changes Collision Group & Weapon Interaction
Not sure does it make any change but, I think you need use Prop_Send for m_hOwnerEntity.
I haven't tested. But look what Franc1sco offered |
Re: SetEntPropEnt "m_hOwnerEntity" Changes Collision Group & Weapon Interaction
Quote:
Code:
SetEntPropEnt(iEnt, Prop_Send, "m_hOwnerEntity", client); I believe Franc1sco had mentioned he had made use this particular "bug" to intentionally change the collision groups of props as a mention, not as a solution. I am not sure what else to try as this definitely shouldn't be expected behavior just by changing an entity owner. Very strange. :grrr: |
Re: SetEntPropEnt "m_hOwnerEntity" Changes Collision Group & Weapon Interaction
It's not a bug, that is how the engine works. Same applies to goldsource games. There is no collision between an entity and it's owner.
|
Re: SetEntPropEnt "m_hOwnerEntity" Changes Collision Group & Weapon Interaction
Quote:
Prop ownership still doesn't explain what is happening to certain weapons being able to interact with the prop while some don't. One solid proof for this here is with HL2DM. A player can set SLAMS (which are also props after they are set in the world). Even with the player being the prop owner, they are still be able to interact/damage them with any weapon. What is the difference going on here? |
Re: SetEntPropEnt "m_hOwnerEntity" Changes Collision Group & Weapon Interaction
I believe owner is used for projectiles, projectiles are given the owner info so they dont collide or interact with the owner. Here are some links from HL1's engine, i assume HL2 behaves similarly.
https://github.com/dreamstalker/rehl...pp#L1246-L1247 https://github.com/dreamstalker/rehl....cpp#L524-L525 https://github.com/dreamstalker/rehl...ty_state.h#L79 https://github.com/dreamstalker/rehl...n/const.h#L514 Not sure how damage is handled tho. Edit: Usually when i set owner to an entity, i manually block damage from the owner because i dont want the owner to damage the entity. |
Re: SetEntPropEnt "m_hOwnerEntity" Changes Collision Group & Weapon Interaction
Quote:
Solution below if anyone may find it useful. Appreciate all the help! :) :bacon!::bacon!::bacon!: PHP Code:
|
All times are GMT -4. The time now is 01:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.