If you update a file in a zip, then attempt to execute said file, it'll forget up
This is due to the resource manager caching where the files are in the zip, if the length changes it will read the wrong section of the zip and get an incomplete file, hence why this is necessary when working out of a zip
function _r(%name,%mode)
{
if(%name $= "")
%name = getWord($r_last,0);
if(%mode $= "")
%mode = getWord($r_last,1);
else %mode = strReplace(%mode," ","");
%path = "Add-Ons/" @ %name;
if(isFile(%path @ ".zip"))
{
discoverFile(%path @ ".zip");
}
if(striPos(%mode,"c") != -1 && isFile(%path @ "/client.cs"))
exec(%path @ "/client.cs");
if(striPos(%mode,"s") != -1 && isFile(%path @ "/server.cs"))
exec(%path @ "/server.cs");
$r_last = %name SPC %mode;
}
$r_last = "Weapon_Gun s";$ _r("Weapon_stuffAddOn","s");
$ _r();