Rubat

Results 447 comments of Rubat

Don't expect this or any other L4D game ports. L4D games are probably the only Valve Source Engine games whose source code is still private and unavailable for us, likely...

I image this is more of a problem on your end, than a problem (out of RAM problems, bad materials, etc) with Hammer itself. I couldn't reproduce this and this...

I have narrowed it down to `StretchDIBits` failing (Windows API function) on `x86-64`, but I do not see any reason why it would be randomly failing for certain textures.

Does this not fulfill that purpose? https://wiki.facepunch.com/gmod/IMaterial:SetVector4D Edit: Oh nevermind you want it to magically fill out different parameters

Material parameters each have a type. Each function sets only 1 material parameter. You want a function that sets 4 individual material parameters, while assuming their names.

Could probably change the shader/material parameter to just be a vector4 instead of 4 separate ones, but idk.

> I'm not following, isn't float4 in shaders always x y z w? How would it need to assume their names? Imo, it's not a good practice to have functions...

You are basically asking for a function that is only useful for 1 shader.

I have ported this to GMod and after some testing the NULL type keys would be missing from the return table, because you cannot store `nil` as a table value....