CoD4x_Server
CoD4x_Server copied to clipboard
Change material of model
Hello please its will be possible to change material of model via gsc its will be decreased number of needed models like weapons with camo. or in future.
Client changes required.
i know but its will be great :)
Server:
- Invoke on player
- Find weapon and material by name
- Send message to player to change weapon's current material.
Client:
- Find desired weapon and material
- Find correct offset in xmodel structure
- Replace pointer
Result:
- Each client may have its own texture on weapon, server still think its default one
- One xmodel, N textures, less work on adding new texture than new model
- Same weapon index means same texture for two clients even they see it as different one
- Less work == less quality (I'm talking about this texture mismatch).
@callofduty4x/dev Any limitations? Like weapon in common_mp and texture in mod?