w_model

Stertman

Newbie
Joined
Mar 24, 2005
Messages
128
Reaction score
0
Okey.. I have my gun, its a ak5. I have it in game but I want to do the world model for it.. I have the model itself but can anyone post the qc file for worldmodels? I dont know how to do it at all..
Thanks
 
anyone? please? noone who knows how to do the world model of the gun?
 
The .qc is nothing special, this is an example of one of my world models:

Code:
$modelname weapons/w_devil.mdl
$cdmaterials models/weapons/

$surfaceprop "metal"
$scale 1.0

$body studio "w_devil.smd"

$attachment "muzzle" "Box01" 0.20 -2.70 0.40 rotate 0 -90 90

$sequence idle "w_devil" loop
$collisionmodel "w_devil_physmodel.smd"
{
    $concave
    $mass 4.0
    $inertia 1.00
    $damping 0.00
    $rotdamping 0.00
}

What's special is that in your .smd (.max), there should be a bone that is identical (name too) to a bone in the player model that can serve as attachment (e.g. the right hand bone). We've used a dummy for this. Then, in the player model .qc, you need this:

Code:
// Specify we'll use the right hand for a bonemerge
$bonemerge "Quinn_Dummy01"

If both the player model and the world model have the same bone; using this parameter will keep the weapon in the right place when you select that specific world model. Make sure the position of this bone relative to the weapon in the weapon .max is identical as in your player animations.
 
Back
Top