AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CSGO] Add glow to dropped health shot? (https://forums.alliedmods.net/showthread.php?t=334342)

Austin 09-17-2021 03:21

[CSGO] Add glow to dropped health shot?
 
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? 


Marttt 09-17-2021 11:19

Re: [CSGO] Add glow to dropped health shot?
 
I don't play CSGO, but try:

glow_menu.sp

Austin 09-18-2021 02:17

Re: [CSGO] Add glow to dropped health shot?
 
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


All times are GMT -4. The time now is 08:18.

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