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