Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2008-05-18 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
May 18, 2008, 10:06:44 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: WCS Tournament being opened for applications!

Post here for signups!
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: invis setup  (Read 60 times)
mobsi
Level 5 Trained Intermediate
*****
Offline Offline

Germany Germany

Posts: 103



« on: May 09, 2008, 05:45:52 PM »

well i thought as noone sets the invisp value we could include it at the roundstart event or player_spawn event in the mod itself. i would do it myself but i dunno where to put it

the following is the mathematik way to get the % out of the alpha value
es_xmath wcs_tmp float;es_xmath wcs_tmp / -2.55;es_xmath wcs_tmp + 100;es est_rounddecimal wcs_tmp server_var(wcs_tmp) 0;es es_xkeysetvalue WCSuserdata event_var(userid) invisp server_var(wcs_tmp)

now comes the problem -> is there any command to get the alpha value of the color a player has?

if not could we create one that stores just the alpha value of a player into a var ?

greez mobsi
Logged
Jeff
WCS ESP Dev Team
Level 7 Expert

Offline Offline

United States United States

Posts: 369



WWW
beastrace91
« Reply #1 on: May 10, 2008, 03:21:53 AM »

In WCSP just use
Code
GeSHi (eventscripts):
es_xset myvar 0
es wcs returndict myvar <userid> alpha
or in python:
Code
GeSHi (python):
myvar = wcs.Command(<userid>).ReturnDict('alpha')

~J3ff
Logged

mobsi
Level 5 Trained Intermediate
*****
Offline Offline

Germany Germany

Posts: 103



« Reply #2 on: May 10, 2008, 10:00:43 AM »

so that means it just works for wcsp?
or may i use the upper code also in wcs
Logged
Jeff
WCS ESP Dev Team
Level 7 Expert

Offline Offline

United States United States

Posts: 369



WWW
beastrace91
« Reply #3 on: May 11, 2008, 06:06:43 PM »

I am assuming by wcs u mean 0.7x (as WCSPython is still wcs...) I am not sure how 0.7x stores the alpha value information.

~J3ff
Logged

mobsi
Level 5 Trained Intermediate
*****
Offline Offline

Germany Germany

Posts: 103



« Reply #4 on: May 12, 2008, 11:10:00 AM »

so what xD
i m kind a confused now
may i use this wcs returindict thing or not in wcs 0.7x?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
May 15, 2008, 05:42:44 PM
I know but the beta is so buggy
May 15, 2008, 12:25:09 AM
lol don't hold your breath on ES 2.0 no being beta... ES1.5 was 'beta' for months after what is now the final build was posted.

~J3ff
May 14, 2008, 02:31:45 PM
TY I will add more than..I am slowly rewriting them all for 0.77 and when es2.0 becomes non beta i will prolly switch to python
May 12, 2008, 09:29:06 PM
@TeacherCreature: Downloads approved
May 12, 2008, 02:54:38 PM
ty
May 12, 2008, 02:32:44 PM
Congratz
May 12, 2008, 02:01:38 AM
I got a FAST DL server  - YAY
Recent
[Today at 09:54:00 PM]

[Today at 08:30:41 PM]

[Today at 07:50:55 PM]

[Today at 07:42:07 PM]

[Today at 07:12:37 PM]

[Today at 06:58:50 PM]

[Today at 06:27:44 PM]

[Today at 05:48:27 PM]

[Today at 04:19:49 PM]

[Today at 03:05:31 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.051 seconds with 26 queries.