Alright Silver Spirit recently made me some npc's out of ragdolls (niko and roman) and they both work fine apart from this:
[img]http://img257.imageshack.us/img257/7899/csoffice0000.jpg[/img]
He is ALWAYS holding this invisible weapon, even when no weapon is selected. I've also tried making him equip other weapons but this doesn't make much difference (except the smg which helps a fair bit but not completely)
We haven't been able to figure out how to fix this so far. Does anyone have any suggestions?
Thanks :)
[code]$ikchain ikclip ValveBiped.weapon_bone_Clip knee 0.707 -0.707 0.000
[/code]
Delete that line in the qc and It will work fine.
The weapons are not invisible, they are under the NPC's feet.
[QUOTE=ShoTGuNGuY49;16678368][code]$ikchain ikclip ValveBiped.weapon_bone_Clip knee 0.707 -0.707 0.000
[/code]
Delete that line in the qc and It will work fine.
The weapons are not invisible, they are under the NPC's feet.[/QUOTE]
Ok i'll give it a go.
Awesome, thanks. I'll do that now. Spirit will it work if I just decompile the model again and remove the line and recompile? or is there something else to it lol. I'm a noob at this xD
edit: Oh lol. I guess this is what being Ninja'd is xD you can try it then if you want :P
edit again: I just tried it and while the weapons are being put in the right place, he still uses the hold weapon animation when no weapon is being used. not only that but the game crashes like 5 seconds after i spawn him now xD
[QUOTE=Glenneth;16678399]Awesome, thanks. I'll do that now. Spirit will it work if I just decompile the model again and remove the line and recompile? or is there something else to it lol. I'm a noob at this xD
edit: Oh lol. I guess this is what being Ninja'd is xD you can try it then if you want :P[/QUOTE]
Ninja'd? And yes that will work if you decompile and recompile it. Though I just tested it and it made no difference but then mine have weapons sticking out of their shoulders and are perminantely stuck with the arms by their sides (no matter what weapon)
[img] http://fc09.deviantart.com/fs49/f/2009/224/e/1/e1201a2ce95144c7bd93325fb5fd70c2.jpg [/img]
Same as before (image is from before but the change in the QC made no difference to this).
Yeah that worked :) thanks very much! It fixed the invisible gun error when unarmed but it doesn't work properly with some guns - this doesn't bother me though as it's for a machinima, and if we need them to use weapons we'll just use player models anyway. Thanks again guys :)
[QUOTE=ShoTGuNGuY49;16678767]Try getting rid of...
[code]$includemodel "player/cs_player_shared.mdl"
$includemodel "player/ak_anims_ct.mdl"
[/code][/QUOTE]
Ah good i'll do that too then :D
[QUOTE=Glenneth;16678776]Yeah that worked :) thanks very much! It fixed the invisible gun error when unarmed but it doesn't work properly with some guns - this doesn't bother me though as it's for a machinima, and if we need them to use weapons we'll just use player models anyway. Thanks again guys :)[/QUOTE]
Glad you got it fixed ^^
Yep :) thanks for all your help!
Sorry, you need to Log In to post a reply to this thread.