AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Enging Function Lighting Style (https://forums.alliedmods.net/showthread.php?t=132441)

Saad706 07-15-2010 06:51

Enging Function Lighting Style
 
Many of you have seen this native from fakemeta:
PHP Code:

engfunc(EngFunc_LightStyle0"b"

My question is that although you can set the lighting level using the 3rd parameter of this native then what is the function of the 2nd parameter of this native:
PHP Code:

engfunc(EngFunc_LightStyle, <What it means? >, "b"

So what numbers should i put in this 2nd parameter and what is it supposed to mean....??

xPaw 07-15-2010 06:56

Re: Enging Function Lighting Style
 
(int style, char *val);

It means style

abdul-rehman 07-15-2010 08:43

Re: Enging Function Lighting Style
 
Quote:

Originally Posted by xPaw (Post 1239913)
(int style, char *val);

It means style

So what values should be put in there and what style can be acheived,,,

Jelle 07-15-2010 11:12

Re: Enging Function Lighting Style
 
Quote:

Originally Posted by SAMURAI16 (Post 459477)
1) Why are you use fakemeta functions in a engine forward ?
2) For engfunc(EngFunc_LightStyle,<THISTHING>,"a")
Try one if this :
Code:

#define EF_BRIGHTFIELD 1      // Swirling cloud of particles
#define EF_MUZZLEFLASH 2          // Single frame ELIGHT on entity  attachment 0
#define EF_BRIGHTLIGHT 4          // DLIGHT centered at entity origin
#define EF_DIMLIGHT 8              // Player flashlight
#define EF_INVLIGHT 16          // Get lighting from ceiling
#define EF_NOINTERP 32        // Don't interpolate the next frame
#define EF_LIGHT 64            // Rocket flare glow sprite
#define EF_NODRAW 128      // Don't draw entity


found with 5 seconds of searching.

abdul-rehman 07-15-2010 11:27

Re: Enging Function Lighting Style
 
Quote:

Originally Posted by Jelle (Post 1240135)
found with 5 seconds of searching.

The code you have posted is for pev_effects...:rtfm:

Jelle 07-15-2010 11:34

Re: Enging Function Lighting Style
 
He asked for what number he should put in the second parameter. On what I posted, he can see what each number does. And it is for engfunc.

Arkshine 07-15-2010 13:34

Re: Enging Function Lighting Style
 
SAMURAI is wrong, it's for pev_effect, Jelle.

abdul-rehman 07-15-2010 13:59

Re: Enging Function Lighting Style
 
So what deos it mean....??
Do the amx dev team only know what its suppose to mean

Jelle 07-15-2010 15:14

Re: Enging Function Lighting Style
 
Quote:

Originally Posted by Arkshine (Post 1240346)
SAMURAI is wrong, it's for pev_effect, Jelle.

I found it by searching for "EngFunc_LightStyle" on google, but okay.

NiHiLaNTh 07-15-2010 15:33

Re: Enging Function Lighting Style
 
Ok, maybe this isnt exactly what you need, but I have found this in HL SDK.Don't know if this somehow helps or no. :?
Code:

    // 0 normal
    LIGHT_STYLE(0, "m");
   
    // 1 FLICKER (first variety)
    LIGHT_STYLE(1, "mmnmmommommnonmmonqnmmo");
   
    // 2 SLOW STRONG PULSE
    LIGHT_STYLE(2, "abcdefghijklmnopqrstuvwxyzyxwvutsrqponmlkjihgfedcba");
   
    // 3 CANDLE (first variety)
    LIGHT_STYLE(3, "mmmmmaaaaammmmmaaaaaabcdefgabcdefg");
   
    // 4 FAST STROBE
    LIGHT_STYLE(4, "mamamamamama");
   
    // 5 GENTLE PULSE 1
    LIGHT_STYLE(5,"jklmnopqrstuvwxyzyxwvutsrqponmlkj");
   
    // 6 FLICKER (second variety)
    LIGHT_STYLE(6, "nmonqnmomnmomomno");
   
    // 7 CANDLE (second variety)
    LIGHT_STYLE(7, "mmmaaaabcdefgmmmmaaaammmaamm");
   
    // 8 CANDLE (third variety)
    LIGHT_STYLE(8, "mmmaaammmaaammmabcdefaaaammmmabcdefmmmaaaa");
   
    // 9 SLOW STROBE (fourth variety)
    LIGHT_STYLE(9, "aaaaaaaazzzzzzzz");
   
    // 10 FLUORESCENT FLICKER
    LIGHT_STYLE(10, "mmamammmmammamamaaamammma");

    // 11 SLOW PULSE NOT FADE TO BLACK
    LIGHT_STYLE(11, "abcdefghijklmnopqrrqponmlkjihgfedcba");
   
    // 12 UNDERWATER LIGHT MUTATION
    // this light only distorts the lightmap - no contribution
    // is made to the brightness of affected surfaces
    LIGHT_STYLE(12, "mmnnmmnnnmmnn");
   
    // styles 32-62 are assigned by the light program for switchable lights

    // 63 testing
    LIGHT_STYLE(63, "a");



All times are GMT -4. The time now is 07:15.

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