AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [solved] Self transparency (https://forums.alliedmods.net/showthread.php?t=319856)

davidkoh007 11-23-2019 11:20

[solved] Self transparency
 
Hi, can I somehow make one's player's model transparent but only to himself - so other players will still see his player model as solid? Like in engine's "set_view(id, CAMERA_3RDPERSON)".

Thanks.

georgik57 11-23-2019 12:11

Re: Self transparency
 
Check Team Semiclip's code.

Natsheh 11-23-2019 15:21

Re: Self transparency
 
can you tell whats the point of it?

davidkoh007 11-23-2019 15:50

Re: Self transparency
 
Quote:

Originally Posted by Natsheh (Post 2674186)
can you tell whats the point of it?

So players can see through their own model when using client side "thirdperson"

CrazY. 11-26-2019 13:13

Re: Self transparency
 
You can do that with FM_AddToFullPack.

Natsheh 11-27-2019 09:21

Re: Self transparency
 
Here you go https://forums.alliedmods.net/showthread.php?p=121912

davidkoh007 12-01-2019 15:36

Re: Self transparency
 
Quote:

Originally Posted by CrazY. (Post 2674600)
You can do that with FM_AddToFullPack.

thanks all for help, did this in the end, works for me

Code:

public addToFullPack(es, e, ent, host, hostflags, player, pSet)
{
        if (player && ent == host && get_orig_retval())
    {
                set_es(es, ES_Solid, SOLID_SLIDEBOX)
                set_es(es, ES_RenderMode, kRenderTransAlpha)
                set_es(es, ES_RenderAmt, 80)
    }
}



All times are GMT -4. The time now is 02:43.

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