Raised This Month: $51 Target: $400
 12% 

How do I get the coordinates of v_models attaches?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 01-18-2020 , 05:56   How do I get the coordinates of v_models attaches?
Reply With Quote #1

Hello! Please tell me how to solve this problem:

On the player's V_model (first-person model), I need to get the coordinates of some attach of this model.
For example, the player entity info_player_terrorist, this entity uses a 3d model of hands with their removable skins.
The question itself is, if I change the hand model to any of my own, how do I find out the index of the changed model in order to get access to the attachments of this 3d model?
tonline_kms65 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-27-2020 , 05:11   Re: How do I get the coordinates of v_models attaches?
Reply With Quote #2

So, if you changed hands model you should have known in advance its entity index,
otherwise what method do you use to do so, some model hook, like in Ptah?

See this project: https://forums.alliedmods.net/showthread.php?p=2410982
There is a trick to retrieve such coordinates on weapons' attachment point. Similar way should be applicable for other parented entities.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas 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 03:23.


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