AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   player invisibility (https://forums.alliedmods.net/showthread.php?t=325222)

jugule 06-12-2020 18:15

player invisibility
 
Hi, I'm trying to use a function to make a player invisible, this function worked, but now it suddenly doesn't work. How do you think I could make an invisible player?
The function at the moment is:
SetEntityRenderMode (client, RENDER_TRANSCOLOR);
SetEntityRenderColor (client, 255, 255, 255, 0);

I also tried sv_disable_immunity_alpha "1".

Ilusion9 06-13-2020 04:30

Re: player invisibility
 
PHP Code:

SetEntityRenderMode(clientRENDER_NONE); 


jugule 06-13-2020 07:03

Re: player invisibility
 
Quote:

Originally Posted by Ilusion9 (Post 2705414)
PHP Code:

SetEntityRenderMode(clientRENDER_NONE); 


not working

Kellan123 06-13-2020 07:10

Re: player invisibility
 
sv_disable_immunity_alpha 1 (sm_cvar sv_disable_immunity_alpha) check if you test the code
PHP Code:

SetEntityRenderMode(clientRENDER_TRANSCOLOR);
SetEntityRenderColor(client2552552550); 


jugule 06-13-2020 07:34

Re: player invisibility
 
Quote:

Originally Posted by Kellan123 (Post 2705434)
sv_disable_immunity_alpha 1 (sm_cvar sv_disable_immunity_alpha) check if you test the code
PHP Code:

SetEntityRenderMode(clientRENDER_TRANSCOLOR);
SetEntityRenderColor(client2552552550); 


I also tried sv_disable_immunity_alpha 1.

ImACow 09-24-2020 06:37

Re: player invisibility
 
I think this is related to the new player models, unsure

I tried all the render modes and none of them work ( sv_disable_immunity_alpha = 1 )

PHP Code:

enum RenderMode
{
    
RENDER_NORMAL,              /**< src */
    
RENDER_TRANSCOLOR,          /**< c*a+dest*(1-a) */
    
RENDER_TRANSTEXTURE,        /**< src*a+dest*(1-a) */
    
RENDER_GLOW,                /**< src*a+dest -- No Z buffer checks -- Fixed size in screen space */
    
RENDER_TRANSALPHA,          /**< src*srca+dest*(1-srca) */
    
RENDER_TRANSADD,            /**< src*a+dest */
    
RENDER_ENVIRONMENTAL,       /**< not drawn, used for environmental effects */
    
RENDER_TRANSADDFRAMEBLEND,  /**< use a fractional frame value to blend between animation frames */
    
RENDER_TRANSALPHAADD,       /**< src + dest*(1-a) */
    
RENDER_WORLDGLOW,           /**< Same as kRenderGlow but not fixed size in screen space */
    
RENDER_NONE                 /**< Don't render. */
}; 


andi67 09-25-2020 08:18

Re: player invisibility
 
Quote:

sv_disable_immunity_alpha "1"
add it to the commandline.....


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

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