Way to switch through every weapon without a 2,000 line code.
Posts 1–10 of 10 · Page 1 of 1
Way to switch through every weapon without a 2,000 line code.
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]
[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
********************
CL_Disconnect called for local client 0
Not setting unlocked items as new because we have not initialized itemsUnlocked. This should only happen after a map load error.
Saving lastPlayedTime of 1288819806.
Using profile source cloud (l:0 c:0)
Successfully read stats data from IWNet
Could not find menu 'playerdataread'
----- Server Shutdown -----
==== ShutdownGame (1) ====
CL_Disconnect called for local client 0
Using profile source cloud (l:0 c:0)
Successfully read stats data from IWNet
Could not find menu 'playerdataread'
---------------------------
Calling Party_StopParty() for partyId 0
Deleting session gameSession (handle 00000001)
Deleting 'gameSession' session
Voice: Unregistering slot 0 (11000015a4f599c) from gameSession [00000001]
Voice: Unregistering slot 2 (110000190b9bbeb) from gameSession [00000001]
Clearing party member 0's party info for gameSession
Clearing party member 2's party info for gameSession
Clearing migration data
Clearing migration data
----- R_Init -----
Video memory for device: 121 MB.
Rounded video memory size: 128 MB.
Available DirectX texture memory: 1348 MB.
DirectX reports 128 MB of video memory and 1348 MB of available texture memory.
Using video memory size to cap used texture memory at 112 MB.
Using previously reported texture memory size of 112 MB.
Using reported available texture memory: 112 MB.
Texture detail is set automatically.
Capping texture detail based on virtual memory of 2047 MB to prevent out-of-memory failure.
Using picmip 1 on most textures, 1 on normal maps, and 3 on specular maps
Unloaded fastfile mp_rust
Unloaded fastfile mp_rust_load
Loading fastfile ui_mp
Loading fastfile localized_ui_mp
Loading fastfile dlc1_ui_mp
Loading fastfile dlc2_ui_mp
Waited 616 msec for asset 'ui_mp/menus.txt' of type 'men*****'.
GamerProfile - Updating and possibly saving for controller #0.
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.
Please close I am so mentally stupid I don't use fresh .GSC's.