Viewmodel not showing up.

I tried to edit $origin, but that didn’t work, does it support decimal numbers?


$modelname weapons/v_qshot.mdl
$cdmaterials models\Weapons\v_qshot


// whole body
$body studio "Reference.smd"

$origin -1.055 9.698 14.525

$sequence idle01 "idle" loop fps 30 activity ACT_VM_IDLE 1 node 0
$sequence fire "fire" snap fps 30 activity ACT_VM_PRIMARYATTACK 1 node 2
$sequence draw "holster" snap fps 30 activity ACT_VM_DRAW 1 node 0

Sup nightstalker! that’s you right?

Try this and then compile…


$modelname weapons/v_qshot.mdl
$cdmaterials models\Weapons\v_qshot


// whole body
$body studio "Reference.smd"

$origin -1.055 9.698 14.525

$sequence idle01 "idle" loop fps 30 activity ACT_VM_IDLE 1 rotate 90 node 0
$sequence fire "fire" snap fps 30 activity ACT_VM_PRIMARYATTACK 1 rotate 90 node 2
$sequence draw "holster" snap fps 30 activity ACT_VM_DRAW 1 rotate 90 node 0

I’ve ran into this problem my self, and it was VERY annoying, what is happening ( I think ) is your models there, its just not facing the right direction, in this case, im assiuming its off by 90 degrees, but it may be off by 180 degrees ( completely behind you as if the back of your head, if your face) so if you dont see if with this compile, replace rotate 90, with rotate 180.

hope this solves it!

Will try it out, thank you.

I Also fix it by doing “-90”

And here’s final product:

http://cloud-2.steampowered.com/ugc/597009398734686804/F0927C08C9AD568AB0AD4FA48351803903CC4376/637x358.resizedimage