Post: Day And Night Enhancement
01-06-2012, 06:42 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); hey guys,i put together a quick script for people who would like realistic geometry so enjoy, this is currently known as a beta so i will improve very soon.

    LightEnHancement()
{
{
self setclientdvar("r_lighttweaksundirection", "-50 -50 -50");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-49 -49 -49");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-48 -48 -48");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-47 -47 -47");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-46 -46 -46");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-45 -45 -45");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-44 -44 -44");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-43 -43 -43");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-42 -42 -42");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-41 -41 -41");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-40 -40 -40");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-39 -39 -39");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-38 -38 -38");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-37 -37 -37");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-36 -36 -36");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-35 -35 -35");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-34 -34 -34");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-33 -33 -33");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-32 -32 -32");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-31 -31 -31");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-30 -30 -30");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-29 -29 -29");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-28 -28 -28");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-27 -27 -27");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-26 -26 -26");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-25 -25 -25");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-24 -24 -24");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-24 -24 -24");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-23 -23 -23");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-22 -22 -22");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-21 -21 -21");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-20 -20 -20");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-19 -19 -19");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-18 -18 -18");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-17 -17 -17");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-16 -16 -16");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-15 -15 -15");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-14 -14 -14");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-13 -13 -13");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-12 -12 -12");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-11 -11 -11");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-10 -10 -10");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-9 -9 -9");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-8 -8 -8");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-7 -7 -7");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-6 -6 -6");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-5 -5 -5");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-4 -4 -4");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-3 -3 -3");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-2 -2 -2");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-1 -1 -1");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "0 0 0");
wait 0.1;
{
self thread LightEnHancementRedo();
}
}
}

LightEnHancementRedo()
{
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "0 0 0");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-1 -1 -1");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-2 -2 -2");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-3 -3 -3");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-4 -4 -4");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-5 -5 -5");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-6 -6 -6");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-7 -7 -7");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-8 -8 -8");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-9 -9 -9");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-10 -10 -10");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-11 -11 -11");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-12 -12 -12");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-13 -13 -13");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-14 -14 -14");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-15 -15 -15");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-16 -16 -16");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-17 -17 -17");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-18 -18 -18");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-19 -19 -19");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-20 -20 -20");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-21 -21 -21");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-22 -22 -22");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-23 -23 -23");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-24 -24 -24");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-24 -24 -24");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-25 -25 -25");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-26 -26 -26");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-27 -27 -27");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-28 -28 -28");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-29 -29 -29");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-30 -30 -30");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-31 -31 -31");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-32 -32 -32");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-33 -33 -33");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-34 -34 -34");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-35 -35 -35");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-36 -36 -36");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-37 -37 -37");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-38 -38 -38");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-39 -39 -39");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-40 -40 -40");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-41 -41 -41");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-42 -42 -42");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-43 -43 -43");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-44 -44 -44");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-45 -45 -45");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-46 -46 -46");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-47 -47 -47");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-48 -48 -48");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-49 -49 -49");
wait 0.1;
self setclientdvar("r_lighttweaksundirection", "-50 -50 -50");
}


Correys Version
    LightingTweaks()
{
for(;Winky Winky
{
for( i=0; i<50; i++ )
{
l = i + " ";
self setClientDvar("r_lighttweaksundirection", (l+l+l+l));
wait .1;
}
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

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

247Yamato, FourzerotwoFAILS
01-07-2012, 09:22 PM #11
Yoko
Banned
You never fail to amuse me :wub:
01-07-2012, 10:27 PM #12
Originally posted by Blackstorm View Post
I don't see how people can't format their code like I could understand after you finished everything and to save space in a patch but like that just makes it look plain messy. :b


loving the sig! Smiledid you do that in photoshop because thats pure art, **** graphics :carling:
01-07-2012, 10:57 PM #13
Blackstorm
Veni. Vidi. Vici.
Originally posted by UK
loving the sig! Smiledid you do that in photoshop because thats pure art, **** graphics :carling:


Meow made it :wub:

---------- Post added at 03:57 PM ---------- Previous post was at 03:56 PM ----------

Originally posted by reScript
I am guessing what this does and if it does then epic! =D
Also just to be a little smart ass I would like to correct your waiting :carling:
1 / 60 = 0.0166666666666667
0.0166666666666667 * 10 = 0.166666666666667
therefore for the real frame by frame effect (not lasting one second) you would need to do "wait .166666666666667;" :fa:
It would then take 8.33333333333333 seconds to finish.

    
LightingTweak()
{
for(frame = 0; frame < 50; frame++)
{
var = "-" + frame + " -" + frame + " -" + frame;
self setClientDvar("r_lighttweaksundirection", var);
wait .166666666666667;
}
}


Each frame is .05 seconds lol
01-08-2012, 12:05 AM #14
d7w7z
Bounty hunter
Originally posted by Blackstorm View Post
I don't see how people can't format their code like I could understand after you finished everything and to save space in a patch but like that just makes it look plain messy. :b

I can format my code and do, just not by statements but by groups of similar processes. I find this kind of formatting easiest to understand the process of the function.
Your opinion is yours, mine is mine.


Example:
    
SubMenu_PlayerOptions() {
ResetMenuSelfs(); self.LL = 4; self.DefaultI = ::GetInput; self.DefaultF = ::MenuSetVerification; [B]//Setting variables[/B]

AddTM("Kick", ::kickPlayer); [B]//Do first process[/B]
AddTM("Verify", "", 1);
AddTM("VIP", "", 2);
AddTM("Admin", "", 3);
AddTM("Co-Host", "", 4, 5);
AddTM("Remove Access", "", 0, 5);

MakeMenu("Do What To Player?", 1); [B]//Do some other process[/B]
}
01-08-2012, 11:15 AM #15
Originally posted by reScript
Incorrect sir.

0.100 = 10fps
0.050 = 20fps
0.030 = 30fps
0.025 = 40fps
0.020 = 50fps
0.016 = 60fps
0.014 = 70fps
0.012 = 80fps
0.011 = 90fps
0.010 = 100fps

I believe the PS3 runs the game @ 60fps.

---------- Post added at 03:46 AM ---------- Previous post was at 03:36 AM ----------

Or the highest fps possible on the pc :fa:

0.00416 = 240fps


the console is limited to 60fps, xbox is 80fps (FU 360!)
01-08-2012, 01:52 PM #16
Originally posted by reScript
I thought the xbox felt smoother on black ops!
Thanks for telling me :p


no problem, i know 90% of the cod4 engine and how it works on consoles and pc, excluding the scripting, i know about 50% about scripting lol.
01-08-2012, 02:07 PM #17
Originally posted by reScript
I respect you for using the real term script instead of the commonly used "code", then again its so commonly used now... Happy


i know me rights and wrongs of each term i use :carling:
01-08-2012, 06:40 PM #18
Blackstorm
Veni. Vidi. Vici.
Originally posted by reScript
Incorrect sir.

0.100 = 10fps
0.050 = 20fps
0.030 = 30fps
0.025 = 40fps
0.020 = 50fps
0.016 = 60fps
0.014 = 70fps
0.012 = 80fps
0.011 = 90fps
0.010 = 100fps

I believe the PS3 runs the game @ 60fps.

---------- Post added at 03:46 AM ---------- Previous post was at 03:36 AM ----------

Or the highest fps possible on the pc :fa:

0.00416 = 240fps


Then explain this script in one of the GSC's.

waitframe()
{
wait( 0.05 );
}
01-08-2012, 07:08 PM #19
Blackstorm
Veni. Vidi. Vici.
Originally posted by reScript
Clearly they can't devide 1 by 60 :p


Every server step ( frame ) in CoD is 0.05 seconds. Don't argue with the devs scripts. :b

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo