Raised This Month: $ Target: $400
 0% 

Enging Function Lighting Style


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Saad706
Member
Join Date: Jun 2010
Location: Karachi,Pakistan
Old 07-15-2010 , 06:51   Enging Function Lighting Style
Reply With Quote #1

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....??
__________________
HeLL MoD Project is 50% Completed . Thanks @bdul for Help

My plugin link Advanced fog system
http://forums.alliedmods.net/showthr...t=advanced+fog
Saad706 is offline
Send a message via Skype™ to Saad706
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-15-2010 , 06:56   Re: Enging Function Lighting Style
Reply With Quote #2

(int style, char *val);

It means style
__________________
xPaw is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-15-2010 , 08:43   Re: Enging Function Lighting Style
Reply With Quote #3

Quote:
Originally Posted by xPaw View Post
(int style, char *val);

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

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 07-15-2010 , 11:12   Re: Enging Function Lighting Style
Reply With Quote #4

Quote:
Originally Posted by SAMURAI16 View Post
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.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-15-2010 , 11:27   Re: Enging Function Lighting Style
Reply With Quote #5

Quote:
Originally Posted by Jelle View Post
found with 5 seconds of searching.
The code you have posted is for pev_effects...
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 07-15-2010 , 11:34   Re: Enging Function Lighting Style
Reply With Quote #6

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.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-15-2010 , 13:34   Re: Enging Function Lighting Style
Reply With Quote #7

SAMURAI is wrong, it's for pev_effect, Jelle.
__________________
Arkshine is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-15-2010 , 13:59   Re: Enging Function Lighting Style
Reply With Quote #8

So what deos it mean....??
Do the amx dev team only know what its suppose to mean
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 07-15-2010 , 15:14   Re: Enging Function Lighting Style
Reply With Quote #9

Quote:
Originally Posted by Arkshine View Post
SAMURAI is wrong, it's for pev_effect, Jelle.
I found it by searching for "EngFunc_LightStyle" on google, but okay.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-15-2010 , 15:33   Re: Enging Function Lighting Style
Reply With Quote #10

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");
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
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 07:15.


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