Raised This Month: $ Target: $400
 0% 

Light flicker


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 06-30-2006 , 04:00   Re: Light flicker
Reply With Quote #1

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 ;)
__________________
It's a mystery.
Mini_Midget is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-30-2006 , 12:34   Re: Light flicker
Reply With Quote #2

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")
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode