I'm working on a plugin, but it's quite a dedicated one that won't see light of day here; it's making weather effects for a specific map, dm_duel_v2. Now, using various bastardised code (that I would obviously credit if I posted it here), I've got rain and snow falling and the skybox changing. Now I want to put snow on the floor.
So, I'm using some of the built-in textures (materials/nature/snowfloor002a.vmt) as decals and spraying them on the floor, but the textures are 512x512, and dm_duel's floor is, of course, 1213 wide, meaning I have a lovely 200ish gap. If I overlay the decals I get that funky I'm-not-sure-what-decal-I-am-so-I'll-be-both flicker; I don't want to tile them with the overlaps because then I get snow inside.
So, my question is, is it possible to resize decals/vmts on the fly somehow, or am I going to have to manually resize it and make people download it?
I'd be pretty happy with just sizing down to 256 if that's all that's possible, since it would pretty much fill the gaps.
(A second question is, if I put the ApplyDecals code in OnMapStart, they don't show up, I have to trigger them manually. How can I delay the trigger a bit?)