Sticmy Posted October 13, 2017 Share Posted October 13, 2017 Hay alguna manera de cambiar el color del humo del teargas, pienso hacer un multi color por favor necesito saber como hacerlo gracias Link to comment
aka Blue Posted October 14, 2017 Share Posted October 14, 2017 Con shaders tendria que ser supongo. Editando el png de la partícula Link to comment
Sticmy Posted October 15, 2017 Author Share Posted October 15, 2017 22 hours ago, aka Blue said: Con shaders tendria que ser supongo. Editando el png de la partícula pero cómo así lo hago he estado investigando y no hay manera de nada Link to comment
aka Blue Posted October 15, 2017 Share Posted October 15, 2017 (edited) Hay unas texturas que son smoke3, smoke4 y smoke5 creo. Deberias ir probando a aplicarles shaders. Sobre el shader de color en nada te lo dejo abajo que estoy en el móvil. Shader.fx: float r; float g; float b; float a; technique tec0 { pass P0 { MaterialAmbient = float4(r, g, b, a); MaterialDiffuse = float4(r, g, b, a); MaterialEmissive = float4(r, g, b, a); MaterialSpecular = float4(r, g, b, a); AmbientMaterialSource = Material; DiffuseMaterialSource = Material; EmissiveMaterialSource = Material; SpecularMaterialSource = Material; ColorOp[0] = SELECTARG1; ColorArg1[0] = Diffuse; Lighting = true; } } Script de prueba que hice para que veas mas o menos como usarlo, aunque tampoco es tan complicado. addCommandHandler( "test", function( cmd ) local shader = dxCreateShader( "shader.fx", 0, 0, true, "ped" ) setElementModel( localPlayer, 0 ) engineApplyShaderToWorldTexture( shader, "cj_ped_head", localPlayer ) dxSetShaderValue( shader, "r", 255 ) dxSetShaderValue( shader, "g", 0 ) dxSetShaderValue( shader, "b", 0 ) dxSetShaderValue( shader, "a", 0.06 ) outputChatBox( "Color de cabeza cambiado." ) end ) Edited October 15, 2017 by aka Blue Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now