• Preferred carry angles
    8 replies, posted
Hi Is there a way to set preferred carry angles on a model? I know this is possible in hammer using the preferredcarryangles keyvalue, but I'm looking to make something similar to the sawblade in the way it is always held flat. Thanks
I think you would find that in the .qc of the sawblade model. Decompile it and see what you can find.
Already done so, there was nothing i could see. $modelname "props_junk\sawblade001a.mdl" $model "Body" "sawblade001a_reference.smd" $lod 25 { replacemodel "sawblade001a_reference" "lod1_sawblade001a_reference" } $lod 35 { replacemodel "sawblade001a_reference" "lod2_sawblade001a_reference" } $lod 40 { replacemodel "sawblade001a_reference" "lod3_sawblade001a_reference" } $cdmaterials "models\props_junk\" $hboxset "default" // Model uses material "phys_objects01a.vmt" $surfaceprop "metal" $keyvalues { prop_data { "base" "Metal.Small" } physgun_interactions { "onlaunch" "spin_zaxis" "onfirstimpact" "lose_energy" "onworldimpact" "stick" } } $illumposition 0.010 0.072 0.000 $sequence idle "idle" fps 30.00 $collisionmodel "phymodel.smd" { $mass 50.0 $inertia 1.00 $damping 0.00 $rotdamping 0.00 }
Hmm, that's odd. Feels like that's the only place to specify such a thing unless it's hard coded, which I doubt it is. I'm left clueless.
[url]http://developer.valvesoftware.com/wiki/Category:QC_Commands[/url] Nothing here either
If I'm not mistaken, every prop model requires at least one bone. maybe experiment with the orientation of the model relative to that bone.
[code] $keyvalues { physgun_interactions { "preferred_carryangles" "270 0 0" } }[/code]
As far as I know you can't compile a model without at least 1 joint. The orientation of the model wouldn't make a difference as technically it is the joint rotating and the geometry rotating as a result. There is something somewhere that specifically tells the engine that the model should be set to a specific axis when gravgunned/carried. [editline]12:27AM[/editline] Thanks cloud! Will that work for models that are carried by "using" them as well?
v:v:v
Sorry, you need to Log In to post a reply to this thread.