LED Posted June 28, 2015 Share Posted June 28, 2015 Как можно заменить vehicle.txd ? я хочу чтобы игроки скачивали мой vehicle.txd (допустим обычный HD) но в замене txd надо прописывать ID, а что с этим делать ведь у этого файла нет модели. Link to comment
FranklinRoosevelt Posted June 28, 2015 Share Posted June 28, 2015 С помощью шейдеров скорее всего можно. Link to comment
DakiLLa Posted June 28, 2015 Share Posted June 28, 2015 Шейдеры в помощь dxCreateTexture dxCreateShader dxSetShaderValue engineApplyShaderToWorldTexture https://community.multitheftauto.com/index.php?p ... ls&id=5645 ^ пример ресурса, заменяющего текстуры фар ("vehiclelights128", который как раз находится внутри vehicle.txd). Рекомендую обратить внимание на функцию loadVehicleLights() внутри этого ресурса (файл lights_client.lua) чтобы понять, как менять текстурки с помощью шейдеров. 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