Raised This Month: $32 Target: $400
 8% 

Solved SetEntPropEnt "m_hOwnerEntity" Changes Collision Group & Weapon Interaction


Post New Thread Reply   
 
Thread Tools Display Modes
safetymoose
Senior Member
Join Date: Feb 2015
Old 05-20-2020 , 18:08   Re: SetEntPropEnt "m_hOwnerEntity" Changes Collision Group & Weapon Interaction
Reply With Quote #11

Oh, now i see what you mean by owner. You want to save the player's index. Your method should work great, but there might be a better way. The targetname field is a string and can be usefull for linking with other entities (map makers use it all the time).

In HL1 however, we have these extra fields

https://github.com/dreamstalker/rehl...fs.h#L204-L220

See if you can find these in HL2 and use them, they are great for storing extra data on entities like this.

Last edited by safetymoose; 05-20-2020 at 19:23.
safetymoose is offline
Reply



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 15:58.


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