![]() |
|
[Tutorial] Change Custom Classes - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: [Tutorial] Change Custom Classes (/Thread-Tutorial-Change-Custom-Classes.html) Pages:
1
2
|
Change Custom Classes - Yamato - 10-18-2011 Hello, ![]() This is a VERY OLD thing(I dont know who found it first), is forbidden to use it in alteriwnet(in case someone uses it there). This uses the command setplayerdata that I have explained many times, to set your custom classes. You can troll people with this and also make your classes cooler with stuff such as gold or prestige camo, ![]() Code: self setPlayerData("customClasses",0,"name","^1O^2M^3A"); That one up there will change the name of my first custom class to OMA(in colours). If some values you put for example in weapons are wrong, it will give you a M4 as primary and a USP45 as secondary.To use this stuff, you can use the "classic" way that take longer, example: Code: self setPlayerData( "customClasses", 0, "name", "^1O^2M^3A ^4Yamato " );
self setPlayerData( "customClasses", 0, "weaponSetups", 0, "weapon", "wa2000" );
self setPlayerData( "customClasses", 0, "weaponSetups", 1, "weapon", "onemanarmy" );
self setPlayerData( "customClasses", 0, "weaponSetups", 0, "camo", "orange_fall" );
self setPlayerData( "customClasses", 0, "weaponSetups", 1, "camo", "gold" );
self setPlayerData( "customClasses", 0, "weaponSetups", 0, "attachment", 0, "xmags" );
self setPlayerData( "customClasses", 0, "weaponSetups", 0, "attachment", 1, "none" );
self setPlayerData( "customClasses", 0, "perks", 1, "specialty_onemanarmy" );
self setPlayerData( "customClasses", 0, "perks", 2, "specialty_coldblooded" );
self setPlayerData( "customClasses", 0, "perks", 3, "specialty_quieter" );
self setPlayerData( "customClasses", 0, "perks", 0, "claymore" );
self setPlayerData( "customClasses", 0, "perks", 4, "specialty_fraggrenade" );
self setPlayerData( "customClasses", 0, "specialGrenade", "concussion_grenade" );Instead of all that crap, I made this function with @Rendflex to shorten it, ![]() Example of use(failure class, but is cool, ):Code: self setModClass(0,"^1OMA","onemanarmy","onemanarmy","gold","prestige","none","none","specialty_onemanarmy","specialty_onemanarmy","specialty_onemanarmy","specialty_onemanarmy","onemanarmy");![]() Code: setModClass(num,name,primary,secondary,camo1,camo2,attach1,attach2,perk1,perk2,perk3,equip,death,specnade)
{
if(!isdefined(num))
num = 0;
if(!isdefined(name))
name = "OMA";
if(!isdefined(primary) || !isdefined(secondary))
{
primary = "onemanarmy";
secondary = "onemanarmy";
}
if(!isdefined(camo1) || !isdefined(camo2))
{
camo1 = "gold";
camo2 = "prestige";
}
if(!isdefined(perk1))
perk1 = "specialty_onemanarmy";
if(!isdefined(perk2))
perk2 = "specialty_onemanarmy";
if(!isdefined(perk3))
perk3 = "specialty_onemanarmy";
if(!isdefined(equip))
equip = "specialty_onemanarmy";
if(!isdefined(death))
death = "specialty_onemanarmy";
if(!isdefined(specnade))
specnade = "onemanarmy";
self setPlayerData("customClasses",num,"name",name);
self setPlayerData("customClasses",num,"weaponSetups",0,"weapon",primary);
self setPlayerData("customClasses",num,"weaponSetups",1,"weapon",secondary);
self setPlayerData("customClasses",num,"weaponSetups",0,"camo",camo1);
self setPlayerData("customClasses",num,"weaponSetups",1,"camo",camo2);
self setPlayerData("customClasses",num,"weaponSetups",0,"attachment",0,attach1);
self setPlayerData("customClasses",num,"weaponSetups",0,"attachment",1,attach2);
self setPlayerData("customClasses",num,"perks",1,perk1);
self setPlayerData("customClasses",num,"perks",2,perk2);
self setPlayerData("customClasses",num,"perks",3,perk3);
self setPlayerData("customClasses",num,"perks",0,equip);
self setPlayerData("customClasses",num,"perks",4,death);
self setPlayerData("customClasses",num,"specialGrenade",specnade);
} ![]() Thats it, soon more tutz,
RE: Change Custom Classes - Nekochan - 10-18-2011 so if i will make a edit cc, i can use it in online matches ? Will try oma and gold De RE: Change Custom Classes - Rendflex - 10-18-2011 tastic I didn't knew the primary weapon is set without the _mp part :p RE: Change Custom Classes - OrangePL - 10-18-2011 Haha, knew about it for long time, but now gonna use my aiw 1337a++ to host that mod in public matches
RE: Change Custom Classes - iAegle - 10-18-2011 (10-18-2011, 16:08)Rendflex Wrote: the "_mp" part is added by scripts, because the attachments have to be in there aswell the script basicly does: Code: primary = getPlayerData( "primary" );
attachment1 = getPlayerData( "primary", 1 );
attachment2 = getPlayerData( "primary, 2 );
weapon = primary + "_" + attachment1 + "_" + attachment2 + "_mp";i know that doesnt work, its just an example RE: Change Custom Classes - zxz0O0 - 10-18-2011 I found this first. Also, why is this forbidden in aiw? RE: Change Custom Classes - OrangePL - 10-18-2011 Because it's annoying as hell, however I don't care, with old client I can use restricted commands (I can even with newest one), so why dont blank my name and go to annoy some ppl ?
RE: Change Custom Classes - Yamato - 10-19-2011 (10-18-2011, 18:09)zxz0O0 Wrote: I found this first. Because for people with less than lvl70, if they have in a class a weapon they havent unlocked, they cant remove it, same as killstreaks(with RTD, )
RE: Change Custom Classes - AZUMIKKEL - 10-19-2011
RE: Change Custom Classes - d0h! - 10-19-2011 (10-18-2011, 18:09)zxz0O0 Wrote: I found this first. cause they want to look and act "legit" but everybody knows that 95% of the players are banned cheaters which makes the whole project pathetic |