AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   r_fullbright (https://forums.alliedmods.net/showthread.php?t=55080)

Bad_Bud 05-12-2007 19:55

r_fullbright
 
How would I use AMXX to enable/disable fullbright on specific clients?

MPNumB 05-13-2007 09:19

Re: r_fullbright
 
This cmd works only on software grafic, ~90% players use OpenGL.

Bad_Bud 05-13-2007 13:32

Re: r_fullbright
 
Ah. Is there any other way to achieve approximately the same effect on a single player?

regalis 05-13-2007 17:53

Re: r_fullbright
 
Quote:

Originally Posted by Bad_Bud (Post 476212)
Ah. Is there any other way to achieve approximately the same effect on a single player?

I searched with google to get the behaviour of r_fullbright.
I found out that this enable/disable the shadows..!?
Are these information correct?

Why would you like to enable/disable shadows?

greetz regalis

pRED* 05-13-2007 18:09

Re: r_fullbright
 
http://www.amxmodx.org/funcwiki.php?go=func&id=371

Not sure if that will have the same effect as I don't really know what fullbright is but it's prob worth a try

Drak 05-13-2007 21:15

Re: r_fullbright
 
Fullbright disables all light visablity and makes it... "fullbright". "set_lights" should give the same effect, but lights still will show colors and such.

Bad_Bud 05-14-2007 00:43

Re: r_fullbright
 
Shame, set_lights seems to be for the entire server instead of just one person...

pRED* 05-14-2007 16:16

Re: r_fullbright
 
Clutching at straws maybe and I really don't know what to do with it but..

In the fakemeta_const file...

Code:
enum UserCmd { ....     // Light level at spot where we are standing     UC_LightLevel,        // byte .... };

Code:
// These functions are used with the usercmd data structure (FM_CmdStart) // Get: 0 extra params - Return integer; 1 extra param - by ref float or vector // Set: Use anything // Use 0 for uc_handle to specify the global usercmd handle native get_uc(uc_handle, UserCmd:member, {Float,_}:...); native set_uc(uc_handle, UserCmd:member, {Float,_}:...);

So you have to register the forward FM_Cmdstart and in the function that is called by that forward you can use get_uc and set_uc to change stuff.
Try using that to change the light level...

regalis 05-14-2007 17:24

Re: r_fullbright
 
1 Attachment(s)
Or maybe emit a big huge monster flashlight....
Here is the code from avalanche's customflashlight...
Maybe you can give the desired player a monster flashlight...that would brighten the map..0o

Bad_Bud 05-15-2007 00:42

Re: r_fullbright
 
No, actually I was looking to make a single person have night vision, so anything that brightens the world for other people is kind of... meh.


All times are GMT -4. The time now is 10:41.

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