Scripts / light flicker

Author
Message
MK83
GameGuru TGC Backer
17
Years of Service
User Offline
Joined: 10th Jun 2006
Location: Greeneville, TN USA
Posted: 26th Aug 2015 21:36
anyone can make and post one?
AMD Phenom x4 9850 2.5 Ghz , 6 gigs ram, GTX 260 Win 7 x64



PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 26th Aug 2015 21:57 Edited at: 26th Aug 2015 21:59


This was made by someone else, but they did not mark it so in there script. Name the script light_flicker.lua
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 26th Aug 2015 22:59
cool thanks....

but how can I to do to randomise more the flcker?

how I have to set this string?


--delay[e] = GetTimer(e) + math.random(100,1500)
PC Specs:

Q9550@3,8GHZ - 8GB RAM - SVGA R9 280 3GB GDDR5 - HDD WD 1500TB
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 27th Aug 2015 00:15 Edited at: 27th Aug 2015 00:16
--change time here to adjust flicker timing
delay[e] = 250

This only controls on and off, as they are the only light scripting commands we have right now. I set up a few of them No More Then 4 in a group all with different delay times and it did ok.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

FabledFoe
8
Years of Service
User Offline
Joined: 26th Jul 2015
Playing: Game Guru
Posted: 27th Aug 2015 08:33
I used it, thank you.
"Don't give up on your dreams, or your dreams will give up on you."- SS <*})))><
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 27th Aug 2015 11:18
@PYRATEmYKE

thanks...
PC Specs:

Q9550@3,8GHZ - 8GB RAM - SVGA R9 280 3GB GDDR5 - HDD WD 1500TB
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 27th Aug 2015 18:09
to make the light flicker more randomly just uncomment the line
Quote: "delay[e] = GetTimer(e) + math.random(100,1500)"

the values are milliseconds so 100 is 0.1s and 1500 is 1.5s, so to make the flicker slower make both values higher, to make it more varied adjust the second value higher only

like so
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 27th Aug 2015 21:59
got it thanks to you too smallg
PC Specs:

Q9550@3,8GHZ - 8GB RAM - SVGA R9 280 3GB GDDR5 - HDD WD 1500TB
PM
MK83
GameGuru TGC Backer
17
Years of Service
User Offline
Joined: 10th Jun 2006
Location: Greeneville, TN USA
Posted: 27th Aug 2015 22:17
thanks
AMD Phenom x4 9850 2.5 Ghz , 6 gigs ram, GTX 260 Win 7 x64



PM

Login to post a reply

Server time is: 2024-05-06 14:12:02
Your offset time is: 2024-05-06 14:12:02