03-28-2015, 05:42 PM
(This post was last modified: 03-30-2015, 04:27 PM by toneddu2000.)
Hi guys! I'm trying to attach a weapon (normal model without bones) to a CSQC player skeleton with this code (in player predraw function)
The weapon is attached correctly, but orientation follows mouse input. I'd like that it'd stay oriented to weapon bone.
Is it possible? I asked at guys at inside3d but no one knows how to do it
Please don't tell me to look at Xonotic code: I did it but I cannot understand a thing!
Thanks in advance guys!!
Code:
setorigin(rifle,gettaginfo(self, weapon_r));
The weapon is attached correctly, but orientation follows mouse input. I'd like that it'd stay oriented to weapon bone.
Is it possible? I asked at guys at inside3d but no one knows how to do it
Please don't tell me to look at Xonotic code: I did it but I cannot understand a thing!
Thanks in advance guys!!