Raised This Month: $ Target: $400
 0% 

Light flicker


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ThomasNguyen
Senior Member
Join Date: May 2006
Old 06-30-2006 , 01:23   Re: Light flicker
Reply With Quote #1

Quote:
Originally Posted by Mini_Midget
umm...
i believe thats my zbot script you just ripped...
you didn't ask me for it and it doesn't seem like you did a heavy edit to it
but my name is still up there...

oh yeah, i want to know this too as i was gonna add it to zbot (i haven't got much around it lately)
Your right about your plugin being ripped by me but im just changing it to what i want it to be and using it for my self [private] I wasnt gonna post the sma but i had to, to learn where to put the part where the lights flicker. I dont consider me "ripping" your/shino's plugin off by making it different in a way. but i guess i did now since i posted the plugin script.

All i did was change the code a little like everyone else does to other codes. Thats what the .sma is for, if you not want people "ripping/changing" your code then dont post the .sma but its against the rules.. soo
__________________

Last edited by ThomasNguyen; 06-30-2006 at 01:27.
ThomasNguyen is offline
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 #2

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 #3

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