AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved Outline entity in CSGO (https://forums.alliedmods.net/showthread.php?t=301909)

condolent 10-09-2017 03:34

Outline entity in CSGO
 
Hi,
I was looking around on how to make an entity have an outline/xray and found the m_bGlowEnabled Entprop. But after some more reading, it seems like it does not support CSGO.

Does anyone know how I can make an entity outline in CSGO, alternatively give it an sort of XRAY function?

8guawong 10-09-2017 04:08

Re: Outline entity in CSGO
 
maybe show us what you have tried?

condolent 10-09-2017 04:24

Re: Outline entity in CSGO
 
Quote:

Originally Posted by 8guawong (Post 2553409)
maybe show us what you have tried?

Haven't tried anything yet because I haven't found any information that's supported by CSGO, thus my question

8guawong 10-09-2017 08:55

Re: Outline entity in CSGO
 
maybe the following will help ?

https://forums.alliedmods.net/showthread.php?t=286728

8guawong 10-09-2017 08:57

Re: Outline entity in CSGO
 
maybe this will help with what you are doing? xd

https://forums.alliedmods.net/showthread.php?p=2517102

condolent 10-09-2017 09:23

Re: Outline entity in CSGO
 
I'll check em out and see if I can get it working tonight! Thanks

condolent 10-09-2017 11:59

Re: Outline entity in CSGO
 
Quote:

Originally Posted by 8guawong (Post 2553445)

That didn't work. Got this in console:
Code:

!! ERROR: bad input/output link:
!! prop_dynamic_glow(prop_dynamic_glow,SetGlowColor) doesn't match type from <null>(<null>)

I was trying to set the glow on a pistol

Quote:

Originally Posted by 8guawong (Post 2553447)
maybe this will help with what you are doing? xd

https://forums.alliedmods.net/showthread.php?p=2517102

Couldn't find anything in there on making a weapon entity glow :/

Bobakanoosh 10-09-2017 12:29

Re: Outline entity in CSGO
 
https://forums.alliedmods.net/showthread.php?t=211117

This works for players, maybe for weapons.

condolent 10-09-2017 12:39

Re: Outline entity in CSGO
 
Quote:

Originally Posted by Bobakanoosh (Post 2553499)
https://forums.alliedmods.net/showthread.php?t=211117

This works for players, maybe for weapons.

Doesn't seem like it. This is what I got:
Code:

Unable to find property offset: "m_clrGlow"!
This fired it:
PHP Code:

// Get sendprop offset for prop_dynamic_override
    
if (!offset && (offset GetEntSendPropOffs(entity"m_clrGlow")) == -1)
    {
        
LogError("Unable to find property offset: \"m_clrGlow\"!");
        return;
    } 

Whole stock:
PHP Code:

stock void SetupGlow(int entityint rint gint bint a) {
    static 
int offset;

    
// Get sendprop offset for prop_dynamic_override
    
if (!offset && (offset GetEntSendPropOffs(entity"m_clrGlow")) == -1)
    {
        
LogError("Unable to find property offset: \"m_clrGlow\"!");
        return;
    }

    
// Enable glow for custom skin
    
SetEntProp(entityProp_Send"m_bShouldGlow"truetrue);

    
// So now setup given glow colors for the skin
    
SetEntData(entityoffsetr_true);    // Red
    
SetEntData(entityoffset 1g_true); // Green
    
SetEntData(entityoffset 2b_true); // Blue
    
SetEntData(entityoffset 3a_true); // Alpha



8guawong 10-09-2017 14:02

Re: Outline entity in CSGO
 
ok since you said you are trying to make weapon glow
you can parent a prop to the weapon and make the prop glow instead

google got me this

https://pastebin.com/2R4kDWSn


All times are GMT -4. The time now is 21:11.

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