Post: [CODE] Glow Stick
07-16-2012, 01:14 AM #1
Cmd-X
It's been awhile.
(adsbygoogle = window.adsbygoogle || []).push({});
Glow Stick Code (MW2)

    
lightsticktestwtf()
{
self maps\mp\perks\_perks::givePerk("specialty_fastreload");
self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");
self maps\mp\perks\_perks::givePerk("specialty_fastsprintrecovery");
self maps\mp\perks\_perks::givePerk("specialty_improvedholdbreath");
self maps\mp\perks\_perks::givePerk("specialty_fastsnipe");
self maps\mp\perks\_perks::givePerk("specialty_selectivehearing");
self maps\mp\perks\_perks::givePerk("specialty_heartbreaker");
self maps\mp\perks\_perks::givePerk("specialty_automantle");
self maps\mp\perks\_perks::givePerk("specialty_falldamage");
self maps\mp\perks\_perks::givePerk("specialty_lightweight");
self maps\mp\perks\_perks::givePerk("specialty_coldblooded");
self maps\mp\perks\_perks::givePerk("specialty_fastmantle");
self maps\mp\perks\_perks::givePerk("specialty_quickdraw");
self maps\mp\perks\_perks::givePerk("specialty_parabolic");
self maps\mp\perks\_perks::givePerk("specialty_detectexplosive");
self maps\mp\perks\_perks::givePerk("specialty_marathon");
self maps\mp\perks\_perks::givePerk("specialty_extendedmags");
self maps\mp\perks\_perks::givePerk("specialty_armorvest");
self maps\mp\perks\_perks::givePerk("specialty_scavenger");
self maps\mp\perks\_perks::givePerk("specialty_jumpdive");
self maps\mp\perks\_perks::givePerk("specialty_extraammo");
self maps\mp\perks\_perks::givePerk("specialty_bulletdamage");
self maps\mp\perks\_perks::givePerk("specialty_quieter");
self maps\mp\perks\_perks::givePerk("specialty_bulletpenetration");
self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy");
self takeweapon( "semtex_mp" );
self takeweapon( "claymore_mp" );
self takeweapon( "frag_grenade_mp" );
self takeweapon( "c4_mp" );
self takeweapon( "throwingknife_mp" );
self takeweapon( "concussion_grenade_mp" );
self takeweapon( "smoke_grenade_mp" );
self giveweapon("c4_mp",0,false);
wait 0.01;
self takeweapon( "c4_mp" );
wait 0.5;
self giveweapon("lightstick_mp",0,false);
}

(Yes, you need all the perks, or else it won't work for some reason)

Precache:
    
precacheItem("lightstick_mp");


that's what my class setup was, sometimes it may not work if you use other items.

video:


Thanks LightModz for always being by my side when I was down :love:

credits:

rendflex
&
You must login or register to view this content.


_____________________________________________
thanks :love:
Last edited by Cmd-X ; 07-16-2012 at 09:33 PM.

The following 27 users say thank you to Cmd-X for this useful post:

-Kitten-, blackhawk2299, YouAppreciateMe, ChromeVisionz, CrEaTiiOnUNREAL, d1g1tal, DiscoverTheOG, dutch masters, EcLiPz_MoDD3Rz, forflah123, ForgivenxModz, Fraud, Hoodie Allen, Ingloreusemodz, itzHaZed, Kush Friendly, Jango, primetime43, say-say123, Script Kiddie, Simple-_-Modz, Special-Modding, This-Guyy, UnboundUser, Vultra, xSoulEdge, xXdynomite1997X

The following 5 users groaned at Cmd-X for this awful post:

247Yamato, KingcreekS, Uk_ViiPeR, Vampytwistッ
07-16-2012, 02:30 AM #11
Originally posted by Snow
Credits to infinity ward for putting it in their game? Lol, and yes Jake, we know you can also add it to the spawn, and yes, Jake, I already stated what you need to precache. Tell who found it, because I seriously don't know.


1. Rendflex
2. Why do you have that take all shit? Just use the 1 function.

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

247Yamato, KingcreekS
07-16-2012, 02:40 AM #12
Jacob-And-Britt
I’m too L33T
Originally posted by Snow
Glow Stick Code (MW2)

    
lightsticktestwtf()
{
self takeweapon( "semtex_mp" );
self takeweapon( "claymore_mp" );
self takeweapon( "frag_grenade_mp" );
self takeweapon( "c4_mp" );
self takeweapon( "throwingknife_mp" );
self takeweapon( "concussion_grenade_mp" );
self takeweapon( "smoke_grenade_mp" );
wait 0.5;
self giveweapon("lightstick_mp",0,false);
}

Precache:
    
precacheItem("lightstick_mp");


make sure you have the following perks/equipment:

C4 (not sure if needed)
Smoke Grenade (not sure if needed)
Scavenger (not sure if needed)
Stopping Power (not sure if needed)
Steady Aim


that's what my class setup was, sometimes it may not work if you use other items.

video:


hate me all you want LightModz :carling:

credits:
Not sure since this was always in the game..

thanks :love:
Thats really cool i diddnt know this was useable in multilayer i thought it was a single player only thing! Smile
07-16-2012, 03:09 AM #13
Cmd-X
It's been awhile.
Originally posted by GAMER View Post
Why do you have that take all shit? Just use the 1 function.


Because that function takes your guns also, and I don't want it to take my guns when all it is, is just an equipment item..
07-16-2012, 03:50 AM #14
Originally posted by Snow
Because that function takes your guns also, and I don't want it to take my guns when all it is, is just an equipment item..


foreach(weapon in secondaryOffHandList)
self takeWeapon(weapon);

lol.


also no you don't need all those fucking perks! holy shit lol

The following user thanked Jakes625 for this useful post:

Cmd-X
07-16-2012, 04:29 AM #15
Cmd-X
It's been awhile.
Originally posted by GAMER View Post
foreach(weapon in secondaryOffHandList)
self takeWeapon(weapon);

lol.


also no you don't need all those fucking perks! holy shit lol


Gaspkay: Always have to out-smart me don't ya? And I'm not quite sure which ones you do need, so f*ck it, I put all of 'em.
#yolo
:carling:
07-16-2012, 04:35 AM #16
Originally posted by Snow
Gaspkay: Always have to out-smart me don't ya? And I'm not quite sure which ones you do need, so f*ck it, I put all of 'em.
#yolo
:carling:


strong logic. lol
07-16-2012, 07:39 AM #17
Blackstorm
Veni. Vidi. Vici.
this could be coded better but nice find :p
07-16-2012, 11:20 AM #18
Cmd-X
It's been awhile.
Originally posted by Blackstorm View Post
this could be coded better but nice find :p


Yeah, but the result will always be the same :p
07-16-2012, 03:02 PM #19
Blackstorm
Veni. Vidi. Vici.
Originally posted by Snow
Yeah, but the result will always be the same :p


I know the result is always the same, but it's good to practice good scripting techniques. It's like math;

1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 = 10

2 x 5 = 10


They will give you the same result but which one is the better way to go? The 2 x 5 equation. That's all I'm saying, even though it'll have the same result, you should always practice making your scripts smaller and more efficient.

---------- Post added at 09:02 AM ---------- Previous post was at 08:59 AM ----------

Originally posted by GAMER View Post
foreach(weapon in secondaryOffHandList)


foreach(weapon in self getWeaponsListOffhands()) *

The following 2 users say thank you to Blackstorm for this useful post:

chaosx6, Cmd-X

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo