Raised This Month: $51 Target: $400
 12% 

Setting client model, textures bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kossolax
AlliedModders Donor
Join Date: Jan 2008
Location: Belgium
Old 03-27-2010 , 16:44   Setting client model, textures bug
Reply With Quote #1

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 AddModelToDownloadsTableString:path[] ) {
    
    new 
String:link[128];
    
Format(link127"%s.dx80.vtx"path);
    
AddFileToDownloadsTable(link);
    
Format(link127"%s.dx90.vtx"path);
    
AddFileToDownloadsTable(link);
    
Format(link127"%s.mdl"path);
    
AddFileToDownloadsTable(link);
    
Format(link127"%s.phy"path);
    
AddFileToDownloadsTable(link);
    
Format(link127"%s.sw.vtx"path);
    
AddFileToDownloadsTable(link);
    
Format(link127"%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.
Attached Files
File Type: rar francis.rar (1.40 MB, 75 views)

Last edited by kossolax; 03-28-2010 at 10:48. Reason: added screen
kossolax is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode