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

Glowshell for players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Desktop
AlliedModders Donor
Join Date: Sep 2009
Location: C:\Users\Default\
Old 09-02-2017 , 02:06   Glowshell for players
Reply With Quote #1

I've read long ago that exists a method to simulate a glowshell for players.
This method used CPS_SetSkin module from Mitchell to bonemerge the model and apply the effect to the model index.

Is this still viable?
How should i do it?

Already tried doing something like this but didn't work as expected
PHP Code:
public Action EventPostPlayerSpawn(Handle event, const char[] namebool dontBroadcast){
    
int client GetClientOfUserId(GetEventInt(event"userid"));
    
    
int skin CPS_SetSkin(client"mymodel.mdl"CPS_NOFLAGS);
    
SetGlow(skin);
}

stock void SetGlowColor(int entity, const char[] color)
{
    
char colorbuffers[3][4];
    
ExplodeString(color" "colorbufferssizeof(colorbuffers), sizeof(colorbuffers[]));
    
int colors[4];
    for (
int i 03i++)
        
colors[i] = StringToInt(colorbuffers[i]);
    
colors[3] = 255// Set alpha
    
SetVariantColor(colors);
    
AcceptEntityInput(entity"SetGlowColor");
}

SetGlow(int ent){    
    
DispatchKeyValue(ent"SetGlowEnabled""1");
    
    
//SetEntProp(ent, Prop_Send, "m_bShouldGlow", true, true);
    
SetEntPropFloat(entProp_Send"m_flGlowMaxDist"10000.0);
    
SetGlowColor(ent"255 255 255");

__________________
Massive Infection:: Piu-Games
Desktop is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 09-02-2017 , 02:09   Re: Glowshell for players
Reply With Quote #2

Doesn't use my CPS, however setups it's own glow props on the players like it would with CPS:
Advance Admin ESP: https://github.com/MitchDizzle/Advan...p.sp#L333-L350
Mitchell is offline
Desktop
AlliedModders Donor
Join Date: Sep 2009
Location: C:\Users\Default\
Old 09-03-2017 , 15:59   Re: Glowshell for players
Reply With Quote #3

I've not been able to reply earlier, thank you very much!
I see a little problem when spectating a player that has a model-changed prop, i can see the original skin with transparency.
How should i fix this to make even better the simulation?
__________________
Massive Infection:: Piu-Games
Desktop is offline
Reply



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 07:40.


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