Quote:
|
Originally Posted by Mini_Midget
meh... as long as theres credit with my name in it, then i'm cool with what you did
anywho...
this might sound stupid just to make the lights flicker but it might work
using the set_task command might work
you could like have the flicker happen every 10 seconds then go back to night
i think its like:
set_task 1.0 "night hour"
night hour
set_lights "b"
set_task 10.0 "lighting"
lighting
set_lights "g"
set_task 1.0 "night hour"
thats just a blur of what i'm talking, i guess you can call it a loop or something but i'm sure theres a better way to do this
i know thats a shit description but it could work ;)
|
That makes no sense. Just spawn an ent and set its effects to EF_BRIGHTLIGHT. Either that, or you can send a message to every player with TE_DLIGHT with a low decay.
EDIT: If you mean a lightning effect, here's part of it taken from the old zombie mod:
Code:
if (get_cvar_num("amx_zombie_lightning"))
{
if (random_num(0,7) == 1)
{
g_iLastLights = 1
new iRand = random_num(1,5)
switch (iRand)
{
case 1:
set_lights("aaaaaaaaabcdefdbaa")
case 2:
set_lights("aaaaaagcdaaaaaa")
case 3:
set_lights("aaacdefdbaaaa")
case 4:
set_lights("aaaabbbaaaa")
case 5:
set_lights("aaaacbbcaaaab")
}
}
else if (g_iLastLights)
{
g_iLastLights = 0
set_lights("aaaaaaaaaaaaaaaaaaabbbaaaa")
}
}
else
set_lights("a")
__________________