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 2009-08-13 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
August 13, 2009, 08:15:49 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as... HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
Google  
  Home   Forum   Help 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: I need help with the 1st Skill  (Read 36 times)
Psych0T!k [WoRM]
Level 0 Beginner

Offline Offline

United States United States

Posts: 3



WWW
Skinny_Budda
« on: August 09, 2009, 10:22:24 PM »

It is supposed to be from 20-80% invisible based on chance. I'm not very comfortable with the wcs_invis way to make it invisible, so i figured I would use rgba, But it is not working. I'm not sure if I did it right. Here is the code for the skill.

Code
GeSHi (eventscripts):
"skill1_setting" "es_xsetinfo wcs_chance 15|es_xsetinfo wcs_chance 25|es_xsetinfo wcs_chance 35|es_xsetinfo wcs_chance 45|es_xsetinfo wcs_chance 55|es_xsetinfo wcs_chance 65|es_xsetinfo wcs_chance 85"
"racealias_i1" "es_xif server_var(wcs_chance >20) then racealias_i2;else es est_setplayercolor server_var(wcs_userid) 255 255 255 204 1"
"racealias_i2" "es_xif server_var(wcs_chance >30) then racealias_i3;else es est_setplayercolor server_Var(wcs_userid) 255 255 255 175 1"
"racealias_i3" "es_xif server_var(wcs_chance >40) then racealias_i4;else es est_setplayercolor server_var(wcs_userid) 255 255 255 153 1"
"racealias_i4" "es_xif server_var(wcs_chance >50) then racealias_i5;else es est_setplayercolor server_var(wcs_userid) 255 255 255 125 1"
"racealias_i5" "es_xif server_var(wcs_chance >60) then racealias_i6;else es est_setplayercolor server_var(wcs_userid) 255 255 255 102 1"
"racealias_i6" "es_xif server_var(wcs_chance >70) then racealias_i7;else es est_setplayercolor server_var(wcs_userid) 255 255 255 75 1"
"racealias_i7" "es est_setplayercolor server_var(wcs_userid) 255 255 255 51 1"
"skill1_cmd" "racealias_i1"
"skill1_sfx" "0"
Logged
CA.Berettonawak
Le renommé méconnu...
Level 7 Expert
*****
Offline Offline

France France

Posts: 2473


Big Berettonawak is watching you...


WWW
Bifkids
« Reply #1 on: August 10, 2009, 02:34:35 PM »

Well, i would more do it this way:
Code:
"skill1_setting" "es_xsetinfo wcs_chance racealias_i1|es_xsetinfo wcs_chance racealias_i2|es_xsetinfo wcs_chance racealias_i3|es_xsetinfo wcs_chance racealias_i4|es_xsetinfo wcs_chance racealias_i5|es_xsetinfo wcs_chance racealias_i6|es_xsetinfo wcs_chance racealias_i7"
"skill_cmd" "es server_var(wcs_chance)"
Then in your racealiases only the code for invisibility :p
Logged

Quote from: N0life
Beret, keep yourself focusing on 1 project. Be sure to memorize that down since it sounds good.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
August 12, 2009, 09:41:24 PM
Wow cool website its helps for wcs server
August 12, 2009, 08:48:39 PM
s-low has pretty cool stuff Cheesy
August 12, 2009, 08:32:01 PM
fpsb is useful only not with wcs
August 12, 2009, 08:28:52 PM
how fpsb suck...
August 12, 2009, 08:17:44 PM
btw fpsb sucks Tongue
August 12, 2009, 08:17:35 PM
we do any kind of things we find good Tongue
August 12, 2009, 08:09:20 PM
Uhhh skins for server side can be found on FPSbanana just not many...

Also so if you don't just do WCS anymore what else do you do...
Recent
[Today at 06:59:38 AM]

[Today at 04:14:59 AM]

[Today at 12:11:54 AM]

[August 12, 2009, 11:36:15 PM]

[August 12, 2009, 11:24:28 PM]

[August 12, 2009, 09:03:38 PM]

[August 12, 2009, 08:38:01 PM]

[August 12, 2009, 08:20:59 PM]

[August 12, 2009, 08:13:42 PM]

[August 12, 2009, 08:12:31 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.162 seconds with 23 queries.