Post: Code: Nightvision
01-02-2011, 01:44 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); This works for all players for the whole game once you trigger it. This is how it works in my patch, it may be different for you.

Try it online in SnD Smile

As an added bonus, if you just set the actionslot without the doNight, it disables noobtubes Smile

If anyone knows a better "night" VisionsetNaked, let me know as this one is completely black. ( ive tried default night, its not dark enough.)

Init()
    
self.PickedNight=0


onPlayerSpawned()
    if(self.PickedNight==0){self _SetActionSlot(3,"");}else if(self.PickedNight==1){self _SetActionSlot(3,"nightvision");}




Call this function foreach player in level ...
    
doNightVision() {
self endon("disconnect");
self.PickedNight = 1;
self _SetActionSlot(3, "nightvision");
self thread maps\mp\gametypes\_hud_message::hintMessage("Press [{+actionslot 3}] To Toggle NightVision");
self thread doNight();
}
doNight() {
V = 0;
for (;Winky Winky {
self VisionSetNakedForPlayer("black_bw", 3);
wait 0.01;
V++;
}
}



[ame=https://www.youtube.com/watch?v=j5sui0j91y8]YouTube - x_DaftVader_x MW2 Nightvision[/ame]



Thanks to the unkn0wn for the vision loop... And Thanks to JuddyLovesPizza for the help..
(adsbygoogle = window.adsbygoogle || []).push({});

The following 4 users say thank you to x_DaftVader_x for this useful post:

angel_of_deth, Arvindian, Dreamcather, Skyl1n3
01-02-2011, 01:48 PM #2
FrozN
Look up my Patch Edits :P
Homer you BEAST! Cool Man (aka Tustin)
01-02-2011, 02:25 PM #3
Merkii
Former Staff
nice :O
The message you have entered is too short. Please lengthen your message to at least 10 characters
01-02-2011, 04:15 PM #4
Originally posted by Homer
This works for all players for the whole game once you trigger it. This is how it works in my patch, it may be different for you.


Nice Code! :420:

But can everyone use that nightvision? :whistle:

EDIT: Oh I found it
01-02-2011, 04:17 PM #5
Originally posted by TuhoajaFIN View Post
Nice Code! :420:

But can everyone use that nightvision? :whistle:

EDIT: Oh I found it


lol, you can make it just for host but most people would leave when it gets dark !!
01-02-2011, 04:24 PM #6
Originally posted by Homer
lol, you can make it just for host but most people would leave when it gets dark !!


Yea lol, but how about this;

    self VisionSetNakedForPlayer("black_bw", 3);


There is self, so It means the vision comes only for self?

Or....? :bro:
01-02-2011, 04:25 PM #7
DEREKTROTTER
You're Goddamn Right
i think ur code just sets it to night for yourself

this would make it for all

    VisionSetNaked("black_bw", 3);
01-02-2011, 04:29 PM #8
Originally posted by DEREKTROTTER View Post
i think ur code just sets it to night for yourself

this would make it for all

    VisionSetNaked("black_bw", 3);


My code runs it for everybody and does it each time they re spawn. The other way didn't work. I ve tested this on ps3 online so it works perfectly for everyone in the game..

---------- Post added at 04:29 PM ---------- Previous post was at 04:28 PM ----------

Originally posted by TuhoajaFIN View Post
Yea lol, but how about this;

    self VisionSetNakedForPlayer("black_bw", 3);


There is self, so It means the vision comes only for self?

Or....? :bro:


Thats why you run it for each player in level.player Smile
01-02-2011, 04:35 PM #9
Originally posted by Homer

Thats why you run it for each player in level.player Smile


Oh yeah right I didnt notice that Eek
01-02-2011, 04:35 PM #10
DEREKTROTTER
You're Goddamn Right
Originally posted by Homer
My code runs it for everybody and does it each time they re spawn. The other way didn't work. I ve tested this on ps3 online so it works perfectly for everyone in the game..

---------- Post added at 04:29 PM ---------- Previous post was at 04:28 PM ----------



Thats why you run it for each player in level.player Smile


ye yours works fine when u call foreach (p in level.players)

its just a shame the FX dont show like fire, would look cool in dark

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo