AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Set Glow on Weapon entity (https://forums.alliedmods.net/showthread.php?t=299222)

Abhinash 07-07-2017 15:35

Set Glow on Weapon entity
 
How to set glow on weapon entity when it is on hands of the player ?
The glow is only visible to other players, not the weapon owner.
I knkw its possible and is already done .
I tried this but not working --

Code:
new weapon = get_user_weapon if (g_ct[id] && weapon == CSW_AWP) {    set_rendering(CSW_AWP, kRenderGlowShell, 100, 100, 0, kRenderNormal, 30) }

Please help.

bibu 07-07-2017 15:41

Re: Set Glow on Weapon entity
 
You can't render view models with by amxx.
You would need to edit the model.

Abhinash 07-08-2017 07:18

Re: Set Glow on Weapon entity
 
I know I cant render view model.
But as I said the glow is only visible to other players .
Which means P model, which is visible to other players.
How to do that ?

Abhinash 07-08-2017 16:28

Re: Set Glow on Weapon entity
 
Quote:

Originally Posted by Natsheh (Post 2534106)
new entity = find_entity_byowner(-1, "weapon_awp", ownerid)

You your code I can only find the entity, then how will set glow ?
Could you olease give me full code or tell me step by step on how to do it ?

bibu 07-09-2017 10:07

Re: Set Glow on Weapon entity
 
Same for p_* models. You can't render it.
The possible ones are w_* models.


All times are GMT -4. The time now is 22:47.

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