AlliedModders

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

DayuDayu 02-22-2024 08:47

Rendering Invisible
 
Hey, I wanted to set in my roulette for case 10 the option to draw less visibility of the model for the player, is such a function enough?

PHP Code:

set_user_rendering(idkRenderFxNone000kRenderTransAlpha0.5); 


Bugsy 02-24-2024 22:14

Re: Rendering Invisible
 
That should work. I used the same in my aimbot detection plugin to make a bot invisible. Though, I had the last parameter at 0.

Jhob94 02-25-2024 05:22

Re: Rendering Invisible
 
You can either use transadd or transalpha, but they are different. I would recommend you to test to see what’s the one you are looking for exactly.

mlibre 02-25-2024 19:58

Re: Rendering Invisible
 
engine method:

Rant:
invisible


PHP Code:

    entity_set_int(entEV_INT_rendermodekRenderTransAlpha)
    
entity_set_float(entEV_FL_renderamt0.0

Rant:
visible


PHP Code:

    entity_set_int(entEV_INT_rendermodekRenderNormal)
    
entity_set_float(entEV_FL_renderamt255.0



All times are GMT -4. The time now is 00:32.

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