Hello,
I have a problem while setting a client model in game.
Most people see the texture error, other don't.
model is precached on the map starts
PHP Code:
public OnMapStart() {
AddModelToDownloadsTable("models/Deadly-Desire/player/francis/francis");
PrecacheModel("models/Deadly-Desire/player/francis/francis.mdl", true);
AddFileToDownloadsTable("materials/models/Deadly-Desire/player/francis/francis_alpha.vtf");
AddFileToDownloadsTable("materials/models/Deadly-Desire/player/francis/francis_alpha_n.vtf");
AddFileToDownloadsTable("materials/models/Deadly-Desire/player/francis/francis_color.vmt");
AddFileToDownloadsTable("materials/models/Deadly-Desire/player/francis/francis_color.vtf");
AddFileToDownloadsTable("materials/models/Deadly-Desire/player/francis/francis_color_n.vtf");
AddFileToDownloadsTable("materials/models/Deadly-Desire/player/francis/francis_eyes.vmt");
AddFileToDownloadsTable("materials/models/Deadly-Desire/player/francis/francis_hair.vmt");
AddFileToDownloadsTable("materials/models/Deadly-Desire/player/francis/francis_head.vmt");
AddFileToDownloadsTable("materials/models/Deadly-Desire/player/francis/francis_head.vtf");
AddFileToDownloadsTable("materials/models/Deadly-Desire/player/francis/francis_head_n.vtf");
}
stock AddModelToDownloadsTable( String:path[] ) {
new String:link[128];
Format(link, 127, "%s.dx80.vtx", path);
AddFileToDownloadsTable(link);
Format(link, 127, "%s.dx90.vtx", path);
AddFileToDownloadsTable(link);
Format(link, 127, "%s.mdl", path);
AddFileToDownloadsTable(link);
Format(link, 127, "%s.phy", path);
AddFileToDownloadsTable(link);
Format(link, 127, "%s.sw.vtx", path);
AddFileToDownloadsTable(link);
Format(link, 127, "%s.vvd", path);
AddFileToDownloadsTable(link);
}
the model is set using a client command:
PHP Code:
...
SetEntityModel(client, "models/Deadly-Desire/player/francis/francis.mdl");
Texture and model are correctly downloaded but still having that texture mistake... (model in attachment)
[IMG]http://img716.**************/img716/555/texterror.jpg[/IMG]
edit: When a player die using that skin, each player's game crashing... :/
Any idea why most have the pinky texture error, and only a little part don't? Can you help me please?
Thanks in advance.