How to make resource.Addfile() forcedly download something
1 replies, posted
Dear Lua scripters and developers!
As we may already know, the [I]models/stalker.mdl[/I] is bugged. I have found a replacing, working fix for that ([URL="http://www.garrysmod.org/downloads/?a=view&id=38373"]http://www.garrysmod.org/downloads/?a=view&id=38373[/URL]).
Now, if I make the server's code download the files, just as in the example:
[CODE]for k, v in pairs( _file.Find("models/stalker*", true) ) do
resource.AddFile("models/"..v);
end;
for k, v in pairs( _file.Find("materials/models/stalker/*.*", true) ) do
resource.AddFile("materials/models/stalker/"..v);
end;
[/CODE]
nothing happens. I have found the reason for it, the stalker model is part of the automatically mounted files (source shared, or another GCF), thus GMod thinks the file is there and does not download.
Could you please suggest me how to make GMod download the working stalker model, without setting [I]sv_pure[/I] to 1 or 2?
Thank you in advance.
Your best bet is to decompile the model ([url=http://www.gamebanana.com/tuts/5805]first tutorial I could find[/url]) and recompile the model under a different path or filename. Example: "models/stalker2.mdl"
Sorry, you need to Log In to post a reply to this thread.