Jey Posted August 13, 2014 Share Posted August 13, 2014 (edited) Hello Guys Today i see in CIT2 Server a group have a edited skin and the orginal skin is working too mean: the edited skin he replace with it working and the Orginal is working too idk how that mean i have edited skin like 230 i replaced it with the original in CIT2 they have the orignial and the edited How ? Thanks Sorry For my bad English <3 Edited August 13, 2014 by Guest Link to comment
Jey Posted August 13, 2014 Author Share Posted August 13, 2014 Shaders I believe. Sorry but i can't understand what you mean by Shaders ? Link to comment
Moderators IIYAMA Posted August 17, 2014 Moderators Share Posted August 17, 2014 When somebody mention shaders you can better forget it. Far from your understanding and also mine. This are shaders: https://wiki.multitheftauto.com/wiki/Shader_examples To edit everything related to directX. Link to comment
Saml1er Posted August 17, 2014 Share Posted August 17, 2014 It's because in that resource the script is running for a specific player. For example, local function j (o) if o and getPlayerName(o) == "Jey" then return "Hey, Jey!" else return "You are not Jey" end end local txt = j(localPlayer) outputChatBox(txt) --> this will run on every client PC but it will output "Hey, Jey" for player whose name is Jey. so basically that model is loaded for specific players and shaders? 0.0 Link to comment
Et-win Posted August 17, 2014 Share Posted August 17, 2014 Is it synced with the server then, or something? Because how do you want to replace the original ID with a something different while other players have the same ID which is the original? Link to comment
Saml1er Posted August 17, 2014 Share Posted August 17, 2014 Is it synced with the server then, or something? Nope. Link to comment
Et-win Posted August 17, 2014 Share Posted August 17, 2014 Is it synced with the server then, or something? Nope. Because how do you want to replace the original ID with something different while other players have the same ID which is the original? Link to comment
DiSaMe Posted August 17, 2014 Share Posted August 17, 2014 Shader is a program for graphics processing, typically executed by graphics card. In MTA, shaders can be applied to specific elements. Which means different elements with the same model IDs may look different. Shaders make it possible to change the texture or reposition the vertices but I'm not sure about geometry shaders, the ones that generate new primitives, which is needed for full flexibility of this kind of model replacement. Link to comment
Saml1er Posted August 17, 2014 Share Posted August 17, 2014 Yeah, I actually forgot about this function engineApplyShaderToWorldTexture This function has an argument where you can apply a shader to a specific element. 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