Weapon Placement on NPCs

I recently downloaded a NPC weapons expansion for garry’s mod, More NPC Weapons V3 (http://www.garrysmod.org/downloads/?a=view&id=30075). I also downloaded some new scripted weapons, Tactical Weapons Pack (http://www.garrysmod.org/downloads/?a=view&id=60980). I was attempting at one stage to alter the script in the NPC weapons LUA to try and get the NPCs to equip some of these new rifles. However, simply adding a new line did not work:


list.Set( "NPCWeapons", "kriss_weapon", "KRISS" )

The weapon was equipped however it was in the default position at the centre of the model (at the crotch) and when confronted with an enemy it did not fire.

http://img121.imageshack.us/img121/1715/gunmiss.jpg

could anyone point me in the right direction in determining how to get an NPC to full equip a functioning SWEP?

The model needs some attachment points, if it does not have it you get crotch guns like this.

the NPC model or the gun model?

Npc.

but you see, other weapon models work fine. AR2, SMG1, the para from CSS, m4 aswell, they all work and are held properly and they are fired buy aswell. SO the points in the NPC must already be there.

Maybe it’s the model then…?

The world or W_model is not rigged properly with the correct bones and connect points. You’ll need a modeler to do it for you or learn to do it yourself.

Both the NPC and weapon need to have a ValveBiped.Bip01_R_Hand bone.

Try giving that same weapon to a player, or an NPC with a normal model (citizen, rebel, refugee, whatever). If the weapon is equipped properly on either, then it’s that particular NPC model you’re using in the screenshot that is missing that bone.

If the weapon is not equipped properly on NPCs or players, the weapon’s world model is missing that bone.

how would I go on adding the bones?

Ahhh, yes you’re right, the guns are misplaced even when equipped by players. I guess that means the weapon model is missing the “bone”. So i need a modeler to do it. Do modellers do their work in SDK? Or in Softimage XSI? I think it’s the later.

I don’t know that much about the creation/modification of models (at least for the Source SDK) but I think modellers use Softimage XSI or 3DS Max. There’s also some out-of-editor work, like compiling models or setting properties for the models. I’d see if you could get a modeller’s attention here or here.