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

How to use this event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alvedro
Member
Join Date: Feb 2012
Old 04-14-2012 , 07:03   How to use this event
Reply With Quote #1

Hi,
How to use this event to determine if we are blinded or not?

http://wiki.amxmodx.org/Half-Life_1_...nts#ScreenFade
alvedro is offline
Old 04-15-2012, 08:00
alvedro
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-15-2012 , 08:05   Re: How to use this event
Reply With Quote #2

Code:
stock UTIL_ScreenFade(id=0,iColor[3]={0,0,0},Float:flFxTime=-1.0,Float:flHoldTime=0.0,iAlpha=0,iFlags=0x0000,bool:bReliable=false,bool:bExternal=false){     if(id&&!is_user_connected(id))         return     new iFadeTime     if(flFxTime==-1.0)         iFadeTime = 4     else         iFadeTime = FixedUnsigned16(flFxTime,1<<12)     new MSG_DEST     if(bReliable)         MSG_DEST = id ? MSG_ONE : MSG_ALL     else         MSG_DEST = id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST     if(bExternal){         emessage_begin(MSG_DEST,g_screenfade, _,id)         ewrite_short(iFadeTime)         ewrite_short(FixedUnsigned16(flHoldTime,1<<12 ))         ewrite_short(iFlags)         ewrite_byte(iColor[0])         ewrite_byte(iColor[1])         ewrite_byte(iColor[2])         ewrite_byte(iAlpha)         emessage_end()     }     else{         message_begin(MSG_DEST,g_screenfade,_, id)         write_short(iFadeTime)         write_short(FixedUnsigned16(flHoldTime,1<<12 ))         write_short(iFlags)         write_byte(iColor[0])         write_byte(iColor[1])         write_byte(iColor[2])         write_byte(iAlpha)         message_end()     } } stock FixedUnsigned16(Float:flValue, iScale) {     new iOutput;     iOutput = floatround(flValue * iScale);     if ( iOutput < 0 )         iOutput = 0;     if ( iOutput > 0xFFFF )         iOutput = 0xFFFF;     return iOutput; }
__________________
The functional way is the right way
GordonFreeman (RU) is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-15-2012 , 08:53   Re: How to use this event
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=87623
__________________
xPaw is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-15-2012 , 14:07   Re: How to use this event
Reply With Quote #4

Don't bump until 2 weeks have passed since last post.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
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 01:03.


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