Raised This Month: $ Target: $400
 0% 

[INC] ScreenFade Util [RAGE Supported]


Post New Thread Reply   
 
Thread Tools Display Modes
bibu
Veteran Member
Join Date: Sep 2010
Old 02-02-2013 , 12:27   Re: [INC] ScreenFade Util [RAGE Supported]
Reply With Quote #51

Ok, I understand it now. Though random_num should be random_float.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-02-2013 , 12:27   Re: [INC] ScreenFade Util [RAGE Supported]
Reply With Quote #52

Yes.

No.

Wait.

The header is : stock UTIL_ScreenFade(id=0,iColor[3]={0,0,0},Float:flFxTime=-1.0,Float:flHoldTime=0.0,iAlpha=0,iFlags=FFAD E_IN,bool:bReliable=false,bool:bExternal=fals e)

Where do you see float value ?

it should be :

new color[3];
color[0] = random_num( 0, 255 );
color[1] = random_num( 0, 255 );
color[2] = random_num( 0, 255 );

UTIL_ScreenFade( id, color, ...

and if you pass list directly :

UTIL_ScreenFade( id, { 200, 0, 0 }, ....
__________________

Last edited by Arkshine; 02-02-2013 at 12:38.
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-02-2013 , 12:34   Re: [INC] ScreenFade Util [RAGE Supported]
Reply With Quote #53

Quote:
Originally Posted by bibu View Post
Ok, I understand it now. Though random_num should be random_float.
You are right.

@Arkshine
Rage uses game functions so i've kept color as Float array.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-02-2013 , 12:37   Re: [INC] ScreenFade Util [RAGE Supported]
Reply With Quote #54

Ah, the rage version. Well, yes, it was correct then bibu.
__________________
Arkshine is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 02-02-2013 , 16:38   Re: [INC] ScreenFade Util [RAGE Supported]
Reply With Quote #55

Alright, the function should be executed, but I don't see any effect.

If you need more infos, just tell me.

Quote:
Rage Commands:

rage : shows this
handlers : shows the loaded handlers
errors : display errors
functions : display functions
modules : shows modules

] rage errors

Errors:

Unexpected data in file 'cstrike/addons/rage/virtual_functions/amxmodx_mm/ReadMe.txt' at line 1, column 4

] rage functions

id: 0 , function 'CBaseEntity::FireBullets3', handler '5:13', library: 'mod' , offset: '0x78270'
id: 1 , function 'UTIL_ScreenFade', handler 'Void__CBaseEntity_Vector-ref_Float_Float_Int_Int', library: 'mod' , offset: '0xcdff0'
id: 2 , function 'UTIL_ScreenFadeAll', handler 'Void__Vector-ref_Float_Float_Int_Int', library: 'mod' , offset: '0xcde50'
id: 3 , function 'CLangMngr::MergeDefinitionFile', handler 'thiscall_Int__ptr_String', library: 'amxmodx_mm' , offset: '0x15640'

] rage modules

Modules:

module: 'ColorChat', version: '1.1b', author: 'ConnorMcLeod'
module: 'Hooking CBaseEntity::FireBullets3', version: '1.0', author: 'Arkshine'
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-02-2013 , 17:48   Re: [INC] ScreenFade Util [RAGE Supported]
Reply With Quote #56

Because you have left alpha on default value 0 ;)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 02-03-2013 , 07:22   Re: [INC] ScreenFade Util [RAGE Supported]
Reply With Quote #57

Quote:
Originally Posted by ConnorMcLeod View Post
Because you have left alpha on default value 0 ;)
Works all fine.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 03-04-2013 , 13:09   Re: [INC] ScreenFade Util [RAGE Supported]
Reply With Quote #58

Please update rage version for last hlds update.
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-04-2013 , 13:22   Re: [INC] ScreenFade Util [RAGE Supported]
Reply With Quote #59

rage/functions/mod/UTIL_ScreenFade : replace the linux symbol by :
Code:
_Z15UTIL_ScreenFadeP11CBaseEntityRK6Vectorffii
rage/functions/mod/UTIL_ScreenFadeAll : replace the linux symbol by :
Code:
_Z18UTIL_ScreenFadeAllRK6Vectorffii
__________________

Last edited by Arkshine; 03-04-2013 at 13:23.
Arkshine is offline
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 03-04-2013 , 13:36   Re: [INC] ScreenFade Util [RAGE Supported]
Reply With Quote #60

Thanks again Arkshine.

EDIT: Can you also update ScreenShake?
EDIT2: Don't need enymore. I tried myself and it is works

Last edited by bogdyuttzu; 03-05-2013 at 11:36.
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
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 20:31.


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