Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2018-12-10 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog

Author Topic: [TF2] Set player invisible weapon  (Read 1231 times)

alex0310

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • http://forum.cmepiii.ru/
[TF2] Set player invisible weapon
« on: November 30, 2016, 07:33:52 AM »
Hi. If someone does not know is the way to set player visibility alpha in tf2.
It works for coloring weapons, but my problem is how to change visibility of player active weapon. I tried to do this like that:
Code: [Select]
SetWeaponsIvisible(client)
{
   new weapon = GetEntPropEnt(client, Prop_Send, "m_hActiveWeapon");
   SetEntityRenderMode(weapon, RENDER_TRANSCOLOR);
   SetEntityRenderColor(weapon, 255, 255, 255, 0);
     
}
and
Code: [Select]
SetWeaponsInvisible(client)
{
   new weapon = GetEntPropEnt(client, Prop_Send, "m_hActiveWeapon");
   SetEntityRenderMode(weapon, RENDER_NONE);
} 
but it does not work.

maybe war3source blocking this function???

Somasito

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [TF2] Set player invisible weapon
« Reply #1 on: July 24, 2018, 01:21:52 AM »
We are very interested in what you are talking about.