I've made a custom model that needs to block players and projectiles, but not bullets. I found the $contents (https://developer.valvesoftware.com/wiki/$contents) command on the dev wiki that seems perfect, but when I add it to my QC there doesn't seem to be any effect at all. No errors in the compile log and ingame it's still fully solid to everything including bullets.
I have managed to find few mentions of it on google and people seem to have managed to get it working in some Source versions, so I'm asking if it's deprecated in TF2 or my setup is wrong. Currently model is a simple prop_static, I've also tested it as prop_dynamic and nothing changed.
QC:
Mesh & physhull:
Sorry if this is posted in the wrong place and thanks in advance for anyone who can help.
I have managed to find few mentions of it on google and people seem to have managed to get it working in some Source versions, so I'm asking if it's deprecated in TF2 or my setup is wrong. Currently model is a simple prop_static, I've also tested it as prop_dynamic and nothing changed.
QC:
Code:
$modelname "rpd/mainhall_rail_centre.mdl"
$staticprop
$body mainhall_rail_centre "mainhall_rail_centre.smd"
$contents "grate"
$collisionmodel "mainhall_rail_centre_hull.smd" {
$concave
}
$surfaceprop "wood"
$cdmaterials "models/rpd"
$sequence idle "mainhall_rail_centre" fps 1
Mesh & physhull:
Sorry if this is posted in the wrong place and thanks in advance for anyone who can help.