Consistency errors and collision madness

Hello!
I’ve started messing around models since I’m in process of doing my counter strike source addon(cod4 and fear 1 gun models/skins/sounds and all shit). I had to decompile two fpsbanana w_ ( world ) models since their authors gave a fuck and screwed the skin paths and origins inside them ( awp and deagle )
After quick fix, they actually work but here’s the problem.
In-game ( css/gmod ) it cries about consistency errors, also the collision is fucked up, I mean you can see how half of the gun clips with ground or how the gun stands on it’s barrel ignoring gravity.
I don’t know what the hell is going on, I’ve used mdl-decompiler and checked to dump old smd’s and don’t fix the rotations on animations - Since they are world models so who gives a crap.
Here are the qc’s:

AWP



$cd "D:\Program Files\Steam\steamapps\*\counter-strike source\cstrike\models\weapons"
$modelname "weapons\w_snip_awp.mdl"
$model "studio" "w_snip_awp.smd"
$cdmaterials "models\weapons\w_models\M82b\"
$hboxset "default"
$hbox 0 "ValveBiped.weapon_bone" -1.386  -7.672  -14.670  1.678  2.160  36.421
// Model uses material "m82.vmt"
$attachment "muzzle_flash" "ValveBiped.flash" 0.00 0.00 0.00 rotate -90.00 0.00 0.00
$surfaceprop "weapon"
$illumposition 16.701 0.456 1.618
$sequence idle "idle" fps 30.00
$collisionmodel "phymodel.smd" {

	$mass 5.0
	$inertia 1.00
	$damping 0.00
	$rotdamping 0.00
}


Deagle



$cd "D:\Program Files\Steam\steamapps\*\counter-strike source\cstrike\models\weapons"
$modelname "weapons\w_pist_deagle.mdl"
$model "studio" "w_pist_deagle.smd"
$cdmaterials "models\weapons\w_models\Vashts Deagle\"
$hboxset "default"
$hbox 0 "ValveBiped" 0.000  0.000  0.000  1.227  4.372  5.826
$hbox 0 "ValveBiped.weapon_bone" -1.461  -6.015  -5.037  0.264  0.569  7.115
// Model uses material "bullet.vmt"
// Model uses material "grip.vmt"
// Model uses material "DE.vmt"
$attachment "muzzle_flash" "ValveBiped.flash" 0.00 0.00 0.00 rotate -90.00 0.00 0.00
$surfaceprop "weapon"
$keyvalues  { prop_data { "base" "Metal.Small"  } } 
$illumposition -0.628 6.470 1.578
$sequence idle "idle" fps 30.00
$collisionmodel "phymodel.smd" {

	$mass 5.0
	$inertia 1.00
	$damping 0.00
	$rotdamping 0.00
}


Also, compiled them with studiomdl for css and ep1 engine.

Thanks for eventual help.

Use the original model .smd for the phy model. That would fix the bad collisons

I’d try this.
I think I know what’s the case. I’ve decompiled two models - awp and deagle. The .qc changed but it is possible that I have awp compiled with deagles collision and deagle with awp’s collision.

Anyway could you try to help me with other problem?
I’ve got myself nice silenced P90 that actually has got world models.
The problem is that they cause consistency errors.
Do you think that if i will replace the smd’s with original one, it won’t do errors? Shall I post the .qc?

When you decompile CSS models, the phy models get turned around. So the .qcs are with fixed phy models.

AWP


$cd "D:\Program Files\Steam\steamapps\*\counter-strike source\cstrike\models\"
$modelname "weapons\w_snip_awp.mdl"
$model "studio" "w_snip_awp.smd"
$cdmaterials "models\weapons\w_models\M82b\"
$hboxset "default"
$hbox 0 "ValveBiped.weapon_bone" -1.386  -7.672  -14.670  1.678  2.160  36.421
// Model uses material "m82.vmt"
$attachment "muzzle_flash" "ValveBiped.flash" 0.00 0.00 0.00 rotate -90.00 0.00 0.00
$surfaceprop "weapon"
$illumposition 16.701 0.456 1.618
$sequence idle "idle" fps 30.00
$collisionmodel "w_snip_awp.smd" {

	$mass 5.0
	$inertia 1.00
	$damping 0.00
	$rotdamping 0.00
}

Deagle


$cd "D:\Program Files\Steam\steamapps\*\counter-strike source\cstrike\models\"
$modelname "weapons\w_pist_deagle.mdl"
$model "studio" "w_pist_deagle.smd"
$cdmaterials "models\weapons\w_models\Vashts Deagle\"
$hboxset "default"
$hbox 0 "ValveBiped" 0.000  0.000  0.000  1.227  4.372  5.826
$hbox 0 "ValveBiped.weapon_bone" -1.461  -6.015  -5.037  0.264  0.569  7.115
// Model uses material "bullet.vmt"
// Model uses material "grip.vmt"
// Model uses material "DE.vmt"
$attachment "muzzle_flash" "ValveBiped.flash" 0.00 0.00 0.00 rotate -90.00 0.00 0.00
$surfaceprop "weapon"
$keyvalues  { prop_data { "base" "Metal.Small"  } } 
$illumposition -0.628 6.470 1.578
$sequence idle "idle" fps 30.00
$collisionmodel "w_pist_deagle.smd" {

	$mass 5.0
	$inertia 1.00
	$damping 0.00
	$rotdamping 0.00
}

Could not load file w_pist_deagle.smd

Need to be put in the same place as the .qc, which should be in counterstrike/models/.

Nevermind, got it.
We forgot to put /weapons after /models in the directory :stuck_out_tongue:
Wait let’s see how it turned out.

Is that what the deagle .smd is called?

No, the awp compiled fine, the collison model is good too, but still consistency error.
What causes consistency errors?
I just changed the material directory in .qc and that caused the error, original skin was fine.

Bump?

sv_consistency 0?

Yeah, tell me how am I going to do this for all css servers in the world and I will give you entire internet.
Seriously. I want to know how the hell I’ve done consistency error, when the original model was fine and all I changed in the .qc file was the material line.