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

[CS:GO] SetParentAttachment attachment rotate?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EzPz
Junior Member
Join Date: Oct 2014
Old 06-24-2017 , 19:55   [CS:GO] SetParentAttachment attachment rotate?
Reply With Quote #1

I try attach model to player model with rotation of attachment, in hlmv its ok, in game rotation 0, 0, 0.
ATTACH CODE
Code:
new hmdl = CreateEntityByName("prop_dynamic_override");
DispatchKeyValue(hmdl, "model", "somemodel.mdl");
DispatchKeyValue(hmdl, "spawnflags", "256");
DispatchKeyValue(hmdl, "solid", "0");
decl Float:m_fHatOrigin[3];
decl Float:m_fHatAngles[3];
GetClientAbsAngles(client,m_fHatAngles);
GetClientAbsOrigin(client,m_fHatOrigin);
TeleportEntity(hmdl, m_fHatOrigin, m_fHatAngles, NULL_VECTOR); 
SetVariantString("!activator");
AcceptEntityInput(hmdl, "SetParent", client, hmdl, 0);
	
SetVariantString(attachment);
AcceptEntityInput(hmdl, "SetParentAttachmentMaintainOffset", hmdl, hmdl, 0); //OR SetParentAttachment - same result
ATTACH CODE MDL:
Code:
$attachment "someattach" "ValveBiped.Bip01_Pelvis" 0.00 5.00 4.10 rotate -60 -80 -0

Last edited by EzPz; 06-24-2017 at 20:01.
EzPz is offline
EzPz
Junior Member
Join Date: Oct 2014
Old 06-27-2017 , 10:21   Re: [CS:GO] SetParentAttachment attachment rotate?
Reply With Quote #2

Maybe find attachment rotation manually, but i cant find example
EzPz 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 16:40.


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