AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Use lights code (https://forums.alliedmods.net/showthread.php?t=84918)

kevin14144 02-02-2009 21:29

Use lights code
 
How can use lights(black) code and no change sky light ?

Exolent[jNr] 02-02-2009 21:56

Re: Use lights code
 
Code:
#include <engine> // Usage: set_lights("z");

Code:
#include <fakemeta> #define fm_set_lights(%1) engfunc(EngFunc_LightStyle, 0, %1) // Usage: fm_set_lights("z");

kevin14144 02-02-2009 22:21

Re: Use lights code
 
Quote:

Originally Posted by Exolent[jNr] (Post 754696)
Code:
#include <engine></p><p>&nbsp;</p><p>// Usage:</p><p>set_lights("z");




Code:
#include <fakemeta></p><p>&nbsp;</p><p>#define fm_set_lights(%1) engfunc(EngFunc_LightStyle, 0, %1)</p><p>&nbsp;</p><p>// Usage:</p><p>fm_set_lights("z");

THX

THX

It work
By the way what is "fm_set_lights(%1) engfunc(EngFunc_LightStyle, 0, %1)".


It mean fm_set_lights(%1) = engfunc(EngFunc_LightStyle, 0, %1) ?


And have other style(0) ?

Exolent[jNr] 02-02-2009 22:44

Re: Use lights code
 
In other words:

Engine:
set_lights("z");

Fakemeta:
engfunc(EngFunc_LightStyle, 0, "z");

kevin14144 02-02-2009 22:50

Re: Use lights code
 
Quote:

Originally Posted by Exolent[jNr] (Post 754714)
In other words:

Engine:
set_lights("z");

Fakemeta:
engfunc(EngFunc_LightStyle, 0, "z");



Oh , i know thx

kevin14144 02-02-2009 23:05

Re: Use lights code
 
I am stupid . Ha!


New question about set person light


How ?

Sn!ff3r 02-02-2009 23:06

Re: Use lights code
 
Not possible.

hleV 02-03-2009 07:55

Re: Use lights code
 
Umm... Let's say you set light in server. Then a player reconnects. He sees default light. So maybe it's possible somehow to set light for a single player? For now I'd suggest using ScreenFade.

Speed! 02-03-2009 12:01

Re: Use lights code
 
Quote:

Originally Posted by hleV (Post 754885)
Umm... Let's say you set light in server. Then a player reconnects. He sees default light. So maybe it's possible somehow to set light for a single player? For now I'd suggest using ScreenFade.

use T_DLIGHT

ConnorMcLeod 02-05-2009 02:20

Re: Use lights code
 
Quote:

Originally Posted by hleV (Post 754885)
Umm... Let's say you set light in server. Then a player reconnects. He sees default light.

It's true when you don't fully convert set_lights, and sometime he doen't see default light, but strange lightning :mrgreen:


All times are GMT -4. The time now is 01:40.

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