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

Solved CS:GO Player glow function


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ivenuss
Junior Member
Join Date: Nov 2019
Location: Czech Republic
Old 05-31-2020 , 15:45   CS:GO Player glow function
Reply With Quote #1

Hello I am trying to make player glow function with glows. Function is not mine but I found it on forums. So question is what is wrong here because it is not working. Thanks for help

PHP Code:
SetGlow(int clientint rint gint bint aint style)
{
    
char szModel[PLATFORM_MAX_PATH];
    
GetClientModel(clientszModelsizeof(szModel));
    
    
int skin CPS_SetSkin(clientszModelCPS_RENDER);
    
    if (
skin != -1)
    {   
    if (
SDKHookEx(skinSDKHook_SetTransmitOnSetTransmit_GlowSkin))
    {
        
int offset GetEntSendPropOffs(skin"m_clrGlow")
        
        
SetEntProp(skinProp_Send"m_bShouldGlow"truetrue);
        
SetEntProp(skinProp_Send"m_nGlowStyle"style);
        
SetEntPropFloat(skinProp_Send"m_flGlowMaxDist"100.0);
        
        
SetEntData(skinoffsetr_true);
        
SetEntData(skinoffset 1g_true);
        
SetEntData(skinoffset 2b_true);
        
SetEntData(skinoffset 3a_true);
        
        
SetEntityRenderMode(skinRENDER_GLOW);
        
SetEntityRenderColor(skin255255255a);
        
        
SetEntityRenderMode(clientRENDER_GLOW);
        
SetEntityRenderColor(client255255255a);
    }
    }
}

public 
Action OnSetTransmit_GlowSkin(int skinint client)
{
    for (
int i 1<= MaxClientsi++)
    {
        if (
IsClientInGame(i))
        {
            if (!
CPS_HasSkin(i))
            {
                continue;
            }
            
            if (
EntRefToEntIndex(CPS_GetSkin(i)) != skin)
            {
                continue;
            }
            
            return 
Plugin_Continue;
        }
    }
    
    return 
Plugin_Handled;


Last edited by ivenuss; 06-04-2020 at 14:27.
ivenuss is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 06-01-2020 , 04:27   Re: CS:GO Player glow function
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=311043
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 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 02:09.


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