Learn more about the scripts around you by dumping all their user-defined functions, and a quick peek at some this vars.
PHP Code:
//#CLIENTSIDE
function onCreated() {
for (temp.wep: player.weapons) {
temp.funcs = temp.wep.getfunctions();
for (temp.func: temp.funcs) {
// Ignore Built-In Functions
// All user-defined functions have a parameters set to ...
if (temp.func.parameters != "...") continue;
temp.doc.add((temp.func.scope == "public" ? "public " : "") @ "function " @ temp.func @ "();");
}
temp.doc.sortdescending();
temp.doc.insert(0, "== Functions ==");
temp.doc.add("== this. Variables == ");
temp.keys = temp.wep.getdynamicvarnames();
for (temp.key: temp.keys) {
if (temp.key in temp.funcs) continue;
temp.doc.add("this." @ temp.key SPC "=" SPC temp.wep.(@temp.key));
}
temp.doc.savelines("functions/" @ temp.wep.name @ ".txt", 0);
temp.doc = "";
}
}