Preventing Painting on prop_weighted_cube/Cleaning it
Quote from reepblue on May 14, 2013, 2:17 pmHi,
I recently got back to re working my Gel cubes as you saw in A Little Higher. I've made it use a different model, and set it as an instance so I can edit the type and color with a func_instance_pram.
However, the biggest issue with my Gel cubes is still not resolved. The cubes can paint themselves and this is annoying on all levels; it's the number one complaint of A Little Higher. I tried to fix it with a trigger_paint_cleanser around it but that prevents other cubes from painting it. The issue is if the cube is moving and shooting paint, the gel spawns in the cube.
I've tried the ChangePaintType input, (But that is apparently broken.) tired spawning water inside the cube if OnPainted but nothing seems to work. This is even a bigger deal since the custom model can't do the gel decal.
My issue is, how do I prevent self painting with I/O or vscripts? I can't spawn the gel cubes out of droppers anymore due to the model replacement...
Thanks.
Hi,
I recently got back to re working my Gel cubes as you saw in A Little Higher. I've made it use a different model, and set it as an instance so I can edit the type and color with a func_instance_pram.
However, the biggest issue with my Gel cubes is still not resolved. The cubes can paint themselves and this is annoying on all levels; it's the number one complaint of A Little Higher. I tried to fix it with a trigger_paint_cleanser around it but that prevents other cubes from painting it. The issue is if the cube is moving and shooting paint, the gel spawns in the cube.
I've tried the ChangePaintType input, (But that is apparently broken.) tired spawning water inside the cube if OnPainted but nothing seems to work. This is even a bigger deal since the custom model can't do the gel decal.
My issue is, how do I prevent self painting with I/O or vscripts? I can't spawn the gel cubes out of droppers anymore due to the model replacement...
Thanks.
The more you give, the less appreciated it will be received.
Quote from FelixGriffin on May 14, 2013, 4:43 pmYou can do the model swap in a dropper, just add a logic_relay to the template with OnSpawn > model > RunScriptFile...
But I don't know if there's a way. Try putting a paint cleanser just behind the sprayer that's enabled at the same time, so if two cubes are going at once it can only be coated from the side?
You can do the model swap in a dropper, just add a logic_relay to the template with OnSpawn > model > RunScriptFile...
But I don't know if there's a way. Try putting a paint cleanser just behind the sprayer that's enabled at the same time, so if two cubes are going at once it can only be coated from the side?
Quote from portal2tenacious on May 14, 2013, 7:16 pmYou could disable the paint cleanser when it isn't being held and enable when it's put down. Only if you're firing it the same way you did in ALH.
You could disable the paint cleanser when it isn't being held and enable when it's put down. Only if you're firing it the same way you did in ALH.
Quote from reepblue on May 14, 2013, 7:42 pmDon't think the paint cleanser cleanses paint effects off objects.
Don't think the paint cleanser cleanses paint effects off objects.
The more you give, the less appreciated it will be received.

Quote from josepezdj on May 15, 2013, 5:25 amWhat about parenting a paint_sphere with its $paint_type set to 4 (water) to the cube in the moment it has been spawn/dropped or for example when it's into the dropper waiting to be spawn, or whereever the cube is OnMapSpawn
... and make it paint the cube right after the cube has painted something. This would clean it. If you set the radius close enough to the cube size, it would almost only affect the cube not the surrounding stuff.
In the case you can't parent it naturally (not even disabling the SmartEdit and adding a new keyvalue parentname), you could use vscripting to locate each cube and teleport the sphere to it to clean the cube each time the cube fires paint.... Or yuo can use an info_paint_sprayer instead.
Orrr.... you could parent an env_entity_maker maybe to the cube that spawns the paint_sphere
What about parenting a paint_sphere with its $paint_type set to 4 (water) to the cube in the moment it has been spawn/dropped or for example when it's into the dropper waiting to be spawn, or whereever the cube is OnMapSpawn ... and make it paint the cube right after the cube has painted something. This would clean it. If you set the radius close enough to the cube size, it would almost only affect the cube not the surrounding stuff.
In the case you can't parent it naturally (not even disabling the SmartEdit and adding a new keyvalue parentname), you could use vscripting to locate each cube and teleport the sphere to it to clean the cube each time the cube fires paint.... Or yuo can use an info_paint_sprayer instead.
Orrr.... you could parent an env_entity_maker maybe to the cube that spawns the paint_sphere