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

[CSGO] Add glow to dropped health shot?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Austin
Senior Member
Join Date: Oct 2005
Old 09-17-2021 , 03:21   [CSGO] Add glow to dropped health shot?
Reply With Quote #1

I have a working on drop and know when a health shot is dropped
but how do I take the weapon passed in and add glow to it?

PHP Code:
public Hook_WeaponDropPost(clientweapon)
{
    if(
weapon >= 0)
    {
        new 
String:weaponName[128];
        
GetEdictClassname(weaponweaponNamesizeof(weaponName));
        if (
strcmp(weaponName"weapon_healthshot") == 0)
            
// Add glow to weapon how? 

Last edited by Austin; 09-17-2021 at 03:22.
Austin is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 09-17-2021 , 11:19   Re: [CSGO] Add glow to dropped health shot?
Reply With Quote #2

I don't play CSGO, but try:

glow_menu.sp
__________________

Last edited by Marttt; 09-17-2021 at 11:20.
Marttt is offline
Austin
Senior Member
Join Date: Oct 2005
Old 09-18-2021 , 02:17   Re: [CSGO] Add glow to dropped health shot?
Reply With Quote #3

Thanks, but this is for player/models not entities like healshot.

[SM] [0] SetEntProp
[SM] Exception reported: Property "m_iGlowType" not found (entity 441/weapon_healthshot)
[SM] Exception reported: Property "m_bShouldGlow" not found (entity 427/weapon_healthshot)

I have done all sorts of research but haven't found anything for csgo and entities like healshot or even weapons.

But weapon glow is definitely supported in csgo.
mp_weapons_glow_on_ground 1

If I only knew how to add glow like this pretty sure it would work with healthshot since it is also a weapon_item.

weapon_healthshot

Last edited by Austin; 09-20-2021 at 16:47.
Austin 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 07:06.


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