multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.4k stars 431 forks source link

The ability to replace CJ clothing and body part models #1017

Open tut001 opened 5 years ago

tut001 commented 5 years ago

Is your feature request related to a problem? Please describe. MTA doesn't allow loading/replacing CJ clothing and body parts. (done testing on SP and MTA with modded player.img which on the other hand does work just fine)

Describe the solution you'd like MTA engine should be able to load and replace custom models stored in player.img

Describe alternatives you've considered Very far away there's an alternative being modifying a player.img for your server and having each player install it into their local files. As MTA does render local custom player.img, but can't seem to load/replace using the engineLoadDff/engineReplaceDff.

Additional context Use this for testing if you need to. No errors, only poor rigging. 30541.dff.zip

Brian9221 commented 5 years ago

I've tried to replace model IDs listed in https://wiki.multitheftauto.com/wiki/Clothing_Component_IDs

engineReplaceModel isn't able to replace the ID, isn't it possible to whitelist those IDs?

Pirulax commented 4 years ago

yeah, this would be cool, any ideas?

qaisjp commented 4 years ago

In the meantime I think a shader will work

Brian9221 commented 4 years ago

What about using something like engineRequestModel("cj") to add those IDs into customizable CJ body parts?

AlexTMjugador commented 4 years ago

In the meantime I think a shader will work

Shaders work on body parts, but AFAIK there's no way to create vertices in a DirectX 9 vertex shader. So they can replace CJ body parts textures and perform morphing, but not introduce geometric detail to scenes or perform tessellation.

tut001 commented 4 years ago

According to this page you can replace TXD's but not DFF's. https://wiki.multitheftauto.com/wiki/Clothing_Component_IDs

LiraGamer commented 3 years ago

I wonder if it will ever be possible to replace body.dff from cj, I don't see it anytime soon mta developers are focused on patches and stuff and not on adding something, I would be happy to contribute more I don't have time to read it all the source code of mta

Armisael2k commented 4 months ago

It would be a great addition