Raised This Month: $32 Target: $400
 8% 

lights flickering like crazy...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 12-05-2017 , 09:14   lights flickering like crazy...
Reply With Quote #1

so this is my plugin:
PHP Code:
#include <amxmodx>
#include <engine>

public plugin_init() {
    
register_plugin("light changer 3000""1.0""Softero")
        
set_lights("z")

I always thought changing the light in the map would be as easy as that, but why does it flicker so much?
https://www.youtube.com/watch?v=-LyW...ature=youtu.be

p.s. don`t mind the free recording software i use
__________________
retired chump

Last edited by DjSoftero; 12-05-2017 at 09:16. Reason: grammar
DjSoftero is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-05-2017 , 11:45   Re: lights flickering like crazy...
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=301839
You could have searched.
__________________
HamletEagle is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 12-05-2017 , 12:55   Re: lights flickering like crazy...
Reply With Quote #3

I remember this thread, but i didn`t manage to find it and thought it might have been different. Sorry and thank you.
__________________
retired chump
DjSoftero is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 12-06-2017 , 08:03   Re: lights flickering like crazy...
Reply With Quote #4

You tired fakemeta?
PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init() 

    
register_forward(FM_Think"fw_Think_lights"1)
}

public 
fw_Think_lights(iEnt)
{
    if (!
pev_valid(iEnt))
        return 
FMRES_IGNORED
    
    engfunc
(EngFunc_LightStyle0"z")
    
set_pev(iEntpev_nextthinkget_gametime() + 0.1);
    
    return 
FMRES_IGNORED

__________________

Last edited by D3XT3R; 12-06-2017 at 08:11.
D3XT3R is offline
Send a message via Skype™ to D3XT3R
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-06-2017 , 08:43   Re: lights flickering like crazy...
Reply With Quote #5

Quote:
Originally Posted by D3XT3R View Post
You tired fakemeta?
PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init() 

    
register_forward(FM_Think"fw_Think_lights"1)
}

public 
fw_Think_lights(iEnt)
{
    if (!
pev_valid(iEnt))
        return 
FMRES_IGNORED
    
    engfunc
(EngFunc_LightStyle0"z")
    
set_pev(iEntpev_nextthinkget_gametime() + 0.1);
    
    return 
FMRES_IGNORED

__________________
HamletEagle is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 12-06-2017 , 10:04   Re: lights flickering like crazy...
Reply With Quote #6

@D3XT3R
Quote:
Originally Posted by PRoSToTeM@ View Post
EngFunc_LightStyle is also bugged, example code:
Code:
public plugin_init() {     engfunc(EngFunc_LightStyle, 0, "z"); } public client_putinserver() {     strlen("a"); }
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 12-06-2017 , 11:22   Re: lights flickering like crazy...
Reply With Quote #7

__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Reply


Thread Tools
Display Modes

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 03:17.


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