February 19, 2019, 11:17:00 PM

Author Topic: Invisible weapons  (Read 2328 times)

Offline dk1992

  • Level 2 Apprentice
  • **
  • Posts: 42
  • <3 WCS :)
Invisible weapons
« on: April 10, 2011, 03:16:13 PM »
How do the invisible player and his weapon? if I have this one

[[skill1]]
setting            = "es_xset wcs_invis 15"
cmd                = "es playerset color event_var(userid) 255 255 255 server_var(wcs_invis)"
sfx                = ""


Muse

  • Guest
Re: Invisible weapons
« Reply #1 on: April 10, 2011, 04:32:53 PM »
It's need very advanced coding abilities.

Because change weapon/defuser/bomb/nade color (which are currently equipped at the player's model) is impossible.

But someone can change color of weapon which player holds.
Let's find him :D

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 888
  • Country: de
  • Pokemon Master!
Re: Invisible weapons
« Reply #2 on: April 10, 2011, 04:52:45 PM »
just use wcs_color addon by MiB

Code: [Select]
wcs_color <r> <g> <b> <alpha> <weapon invis 0/1>

Offline dk1992

  • Level 2 Apprentice
  • **
  • Posts: 42
  • <3 WCS :)
Re: Invisible weapons
« Reply #3 on: April 10, 2011, 07:59:54 PM »
just use wcs_color addon by MiB

Code: [Select]
wcs_color <r> <g> <b> <alpha> <weapon invis 0/1>

es wcs_color event_var(userid) 255 255 255 0 1   something like this? but it is 100% invisible, how do for example 90%?

Offline Kamiqawa

  • Watchdog
  • Level 7 Expert
  • *****
  • Posts: 784
  • Country: fi
Re: Invisible weapons
« Reply #4 on: April 10, 2011, 08:48:16 PM »
As Kami said, the syntax is wcs_color <r> <g> <b> <alpha> <weapon invis 0/1>. There you see alpha is 0 on your skill es wcs_color event_var(userid) 255 255 255 0 1. And means how transparent you are, so just increase it's value and you become visible.
The alpha goes from 0 to 255, but if you want to set it like 90% you can use MiB's Wcs tools to convert those values: http://warcraft-source.com/wcstools/
For example, for 90% invis, use invis to alpha converter and set the Percent section to the percent of how invisible you want to be: for example 90. Then in upper box you see what's the same value in alpha, and 90% invis seems to be 26 alpha.
And on your skill it would look like this es wcs_color event_var(userid) 255 255 255 26 1. Now you and your weapon (if skillcfg is like player_spawn) should be 90% invisible.

Kamiqawa edit: Also make sure that you set the invisible AFTER you give any weapons. For example you could add es_delayed 1 to the front of es wcs_color command so it will be set after 1 second from spawning (if player_spawn skill/spawncfg).
Want your own custom color for your forum username? No worries! La Muerte is here ready to fulfill your every rainbow-colored wish!

As a special offer of the day you can go talk with Tha Pwned first, and come ahead of the line!

I AM PINK!


Offline dk1992

  • Level 2 Apprentice
  • **
  • Posts: 42
  • <3 WCS :)
Re: Invisible weapons
« Reply #5 on: April 10, 2011, 08:54:58 PM »
As Kami said, the syntax is wcs_color <r> <g> <b> <alpha> <weapon invis 0/1>. There you see alpha is 0 on your skill es wcs_color event_var(userid) 255 255 255 0 1. And means how transparent you are, so just increase it's value and you become visible.
The alpha goes from 0 to 255, but if you want to set it like 90% you can use MiB's Wcs tools to convert those values: http://warcraft-source.com/wcstools/
For example, for 90% invis, use invis to alpha converter and set the Percent section to the percent of how invisible you want to be: for example 90. Then in upper box you see what's the same value in alpha, and 90% invis seems to be 26 alpha.
And on your skill it would look like this es wcs_color event_var(userid) 255 255 255 26 1. Now you and your weapon (if skillcfg is like player_spawn) should be 90% invisible.


Nice :) thx :))

Kamiqawa edit: Also make sure that you set the invisible AFTER you give any weapons. For example you could add es_delayed 1 to the front of es wcs_color command so it will be set after 1 second from spawning (if player_spawn skill/spawncfg).