I'm trying to set up a system where specific models are only visible to certain players, under certain conditions. Ideally this would change according to a player's targetname, since that's what will decide other things in the map and would simplify things.
One of the first ideas suggested was to change the model visibility with Material Proxies - control the players' health via inputs (which is perfectly reasonable on this occasion for the map; I would use damage filters to prevent players changing these values), and use the "PlayerHealth" proxy to change visibility if it falls within a range, but from a test it seems like the game doesn't even recognize that proxy (even though it's listed on the VDC under TF2!), or "Health".
I'm new to material proxies/editing so I don't really know what else I could try with materials.
I did see the ConVar proxy, so maybe if there are ConVars that are reliably set per player, like a join ID or something, I could use that? But this is very alien to me, so I'm not sure if it would be worth investing time in that or trying something else.
I would appreciate any ideas!
One of the first ideas suggested was to change the model visibility with Material Proxies - control the players' health via inputs (which is perfectly reasonable on this occasion for the map; I would use damage filters to prevent players changing these values), and use the "PlayerHealth" proxy to change visibility if it falls within a range, but from a test it seems like the game doesn't even recognize that proxy (even though it's listed on the VDC under TF2!), or "Health".
I'm new to material proxies/editing so I don't really know what else I could try with materials.
I did see the ConVar proxy, so maybe if there are ConVars that are reliably set per player, like a join ID or something, I could use that? But this is very alien to me, so I'm not sure if it would be worth investing time in that or trying something else.
I would appreciate any ideas!