Raised This Month: $12 Target: $400
 3% 

player invisibility


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 06-12-2020 , 18:15   player invisibility
Reply With Quote #1

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".

Last edited by jugule; 06-12-2020 at 18:17.
jugule is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 06-13-2020 , 04:30   Re: player invisibility
Reply With Quote #2

PHP Code:
SetEntityRenderMode(clientRENDER_NONE); 
__________________
Ilusion9 is offline
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 06-13-2020 , 07:03   Re: player invisibility
Reply With Quote #3

Quote:
Originally Posted by Ilusion9 View Post
PHP Code:
SetEntityRenderMode(clientRENDER_NONE); 
not working
jugule is offline
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 06-13-2020 , 07:10   Re: player invisibility
Reply With Quote #4

sv_disable_immunity_alpha 1 (sm_cvar sv_disable_immunity_alpha) check if you test the code
PHP Code:
SetEntityRenderMode(clientRENDER_TRANSCOLOR);
SetEntityRenderColor(client2552552550); 
Kellan123 is offline
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 06-13-2020 , 07:34   Re: player invisibility
Reply With Quote #5

Quote:
Originally Posted by Kellan123 View Post
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.
jugule is offline
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 09-24-2020 , 06:37   Re: player invisibility
Reply With Quote #6

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. */
}; 
__________________
ImACow is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 09-25-2020 , 08:18   Re: player invisibility
Reply With Quote #7

Quote:
sv_disable_immunity_alpha "1"
add it to the commandline.....
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
Reply


Thread Tools
Display Modes

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 19:00.


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