try this:
Code:spawned() { if(self isHost()) { self takeAllWeapons(); foreach ( weaponName in level.weaponList ) self giveWeapon( weaponName, 6, false); } }
Is their a way to do it under 1,000 lines. According to my research, their are 1,148 LINES or GUNS in Mw2. - This includes Bling and Attachments. Excluding Semtex, Frag, Blast Shield Tact Etc. Including C4 & Claymore.
1,148 x 3 = 3,444 Lines of CODE.
3 lines of a code per 1 gun name.
The code per gun.
[php] self giveWeapon( "m4_eotech_gl_mp", 6, false); //1
self GiveMaxAmmo( "m4_eotech_gl_mp"); //2
self waittill("1"); //3[/php]
My question is, Is their a EASIER way to do this instead of just Copying and pasting names into it 2 times per 1 gun? /
The following codes DO NOT work.
[php]onPlayerSpawned()
{
if(self isHost())
self takeAllWeapons();
foreach(weapon in level.weapons)//should be level.weapons but not 100% sure
{
self giveWeapon( weapon, 6, false);
}
}[/php]
[php]doWeapons()
{
owner = self;
self takeAllWeapons();
foreach(wep in level.weapons)
{
owner waittill("[{+melee}]");
owner giveWeapon(wep, randomInt(9), randomInt(1));
}
}[/php]
With those two, all I end up getting is No Gun outcome.
Including [php]self takeAllWeapons();[/php] in doDvars.
[php]doDvars
{
self takeAllWeapons();
}[/php]
So please, If their IS a faster way PLEASE post it. I don't feel like losing my hands doing this.
Credits for the codes.
~ bomb21
~ spiritwo
~ Imthebosss
~ master131 (master131backup)
~ and [WhA]4FunPlayin.
Last edited by ~Just IN~; 11-03-2010 at 02:51 PM.
try this:
Code:spawned() { if(self isHost()) { self takeAllWeapons(); foreach ( weaponName in level.weaponList ) self giveWeapon( weaponName, 6, false); } }
~Just IN~ (11-03-2010)
Do something witht this I got to go to school:
Code:level.stow_priority_model_array = []; level.stow_priority_model_array[ weapon + "_mp" ] = stow_model; assert( isdefined( level.stow_priority_model_array ) ); foreach ( weapon_name, priority_weapon in level.stow_priority_model_array ) { weaponName = getBaseWeaponName( weapon_name ); weaponList = self getWeaponsListAll(); foreach ( weapon in weaponList ) { self giveWeapon( weapon, 6, false ); } }
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
Nope.Originally Posted by bomb21
its in the GSC Modding list, never tried it, dunno if it works, but give it a shot perhaps? mess with the "i" perhaps, i got nooo ideaCode:cycleWeapons() { self endon( "disconnect" ); self endon( "death" ); self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" ); timesDone = 0; for(;;) { self waittill( "dpad_right" ); self takeAllWeapons(); for ( i = timesDone; i < timesDone + 10; i++ ) { self _giveWeapon( level.weaponList[i], 0); wait (0.05); if (i >= level.weaponList.size) { timesDone = 0; } } timesDone += 10; } }
tested this myself, if this doesn't work it is something else
Code:onPlayerSpawned() { self endon( "disconnect" ); for(;;) { self waittill( "spawned_player" ); self thread test(); } } test() { self endon("death"); self endon("disconnect"); if(self isHost()) { self notifyOnPlayerCommand("test", "weapnext"); self takeAllWeapons(); foreach ( weaponName in level.weaponList ) { self waittill("test"); self takeWeapon(self getCurrentWeapon()); self giveWeapon( weaponName, 6, false); self switchToWeapon(weaponName); } } }
~Just IN~ (11-03-2010)
[FONT="Papyrus"][COLOR="DarkGreen"][SIZE="3"]Same as above. Here is the whole file.
IM SUCHAFUCKINGFAILURE!
LMFAO i only had _rank.gsc in their no _weapons.gsc XDDXDXD Sorry for all yur time everyone :C
Edit: "Unknown Function"
Originally Posted by Console
Last edited by ~Just IN~; 11-03-2010 at 03:31 PM.
is THERE a way
not THEIR
THERE is a way
THEIR stuff blew up
sorry but i cant stand looking at a fail this big getting repeated like 10 times
Also, use the one Bomber posted, it should work.
www.YouTube.com/MpKiller100
Please close I am so mentally stupid I don't use fresh .GSC's.
/Closed as requested .