View Single Post
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 02-10-2017 , 06:55   Re: How to SetParent
Reply With Quote #17

Quote:
Originally Posted by abrandnewday View Post
Ooh, very useful info that'll help me fix some old-ass issues from several years ago involving certain particle effects in TF2 remaining after they're killed. I remember those issues from the old AttachParticle stock that many plugins passed around (had two attachment points, "head" and "back" I think). Circling TF particle for example would remain after being killed. mp_restartgame 1 cleared it right up though.

Not to mention, parenting is also used in that recent Piggyback plugin, so this further info on SetParent/ClearParent is nice to have.


Children inherit their parent's attachment points iirc.
You could just parent to a weapon and use an attachment point on the player since it's bonemerged. I forget but I think I used to do this to weapons using the hand attachment for weapons... weapons themselves had no ap.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline