Post: Give Loadout [Script]
03-08-2012, 10:46 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); During my re-creation of infected i faced a problem with the loadout. It wasn't the same with MW3, so I had to re-create the loadout, without actually setting a legit one. Here is my script. 100% mine so no being n00bs :love:

Just add this whenever you want custom classes:
    
self initLoadout("beretta_tactical_mp",0,"specialty_marathon|specialty_lightweight|specialty_extendedmelee",1.4,"beretta_tactical_mp","","beretta_tactical_mp");


Add this anywhere:
    

initLoadout(weapons,color,perks,speedscale,weapontoswitch,weapontogiveammo,weapontotakeammo)
{
self takeAllWeapons();
self _clearPerks();
wait 0.1;
weapons2 = strTok(weapons, "|");
perks2 = strTok(perks, "|");
self.moveSpeedScaler = speedscale;
foreach(weap in weapons2){self giveWeapon(weap, color, false);}
foreach(park in perks2){self givePerk(park);}
self switchToWeapon(weapontoswitch);
if(isDefined(weapontogiveammo))
self giveMaxAmmo(weapontogiveammo);
if(isDefined(weapontotakeammo))
self takeAmmo(weapontotakeammo);
}

takeAmmo(weapon){self setWeaponAmmoStock( weapon, 0 );self setWeaponAmmoClip( weapon, 0);}
givePerk(perk){self maps\mp\perks\_perks::givePerk(perk);}



just make sure you put the loadout you want in self loadout(etc.) as far as the syntax of my loadout goes....

(for initLoadout)

(weapons,color,perks,speedscale,weapontoswitch,weapontogiveammo,weapontotakeammo)

the first one is all the weapons you want in that loadout (all of them) and seperate each weapon by a "|"

The second one is the color of the gun you want it to be (0-9 for the number)

Speedscale is how fast you want that player to run when given that loadout (1 = normal, 3 = fast {goes up to 100})

Weapon to switch is what gun you want to start out with when given that class.

The last two are self explanitory. If you want a weapon to have full ammo put the name of it there, if you want it to have no ammo, put it in the one next to it :y:

I hope this helps your patches get better.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to Jakes625 for this useful post:

04jberry, Choco, Karoolus, mattyjkilledme, Rustled Jimmies
03-09-2012, 12:40 AM #2
SCR34M
Banned
dude teach me how to do ur 2in1 thingy brha

The following 2 users groaned at SCR34M for this awful post:

Choco, Cmd-X
03-09-2012, 03:15 PM #3
247Yamato
< ^ > < ^ >
........... _class.gsc has a completer version of this.
03-10-2012, 01:18 AM #4
Originally posted by 247Yamato View Post
........... _class.gsc has a completer version of this.


you don't say? I couldn't figure it out, and no one would help so I made my own. #stop.hating
03-10-2012, 01:48 AM #5
SCR34M
Banned
wht the hell does this do brha
03-10-2012, 05:36 AM #6
Rustled Jimmies
Who’s Jim Erased?
Originally posted by SatanicHispanic View Post
you don't say? I couldn't figure it out, and no one would help so I made my own. #stop.hating

yoo do you think you can make the specialist killstreaks from MW3 to MW2?
03-10-2012, 05:58 AM #7
Damn, sweet find haha
03-10-2012, 06:18 AM #8
Originally posted by RAGE912 View Post
yoo do you think you can make the specialist killstreaks from MW3 to MW2?


Is specialist, where you get perks?
03-10-2012, 06:28 AM #9
Originally posted by SatanicHispanic View Post
Is specialist, where you get perks?


Yea, its where instead of killstreak rewards such as air strikes, you get perks. Its every two kills, and you choose which perk you get for each 2,4,6 killstreak :p
03-10-2012, 07:27 AM #10
Rustled Jimmies
Who’s Jim Erased?
Originally posted by SatanicHispanic View Post
Is specialist, where you get perks?


yes what he ^ said. From the looks of it though it may be really hard to code.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo