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-05-30 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
May 30, 2009, 06:38:45 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Join the new Facebook Warcraft-Source.com Group! It has been currently opened!
Join!
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: es playervar help =3  (Read 13 times)
Yiyas
Level 0 Beginner

Offline Offline

United Kingdom

Posts: 17




no1yiyas
no1yiyas
« on: May 28, 2009, 06:46:12 PM »

Hey guys I've made a couple of races which were a little bit out of my skill level and use stuff thats been badly documented on the ES wiki so I come asking for help! Note that this does work offline on a listen server, but fails to pull it off on a dedicated:

Code
GeSHi (eventscripts):
   "skill4_setting"    "es_xsetinfo wcs_paInvis 50;es_xsetinfo wcs_paSpeed 0.40|es_xsetinfo wcs_paInvis 40;es_xsetinfo wcs_paSpeed 0.40|es_xsetinfo wcs_paInvis 30;es_xsetinfo wcs_paSpeed 0.40|es_xsetinfo wcs_paInvis 30;es_xsetinfo wcs_paSpeed 0.50|es_xsetinfo wcs_paInvis 20;es_xsetinfo wcs_paSpeed 0.40|es_xsetinfo wcs_paInvis 20;es_xsetinfo wcs_paSpeed 0.50|es_xsetinfo wcs_paInvis 10;es_xsetinfo wcs_paSpeed 0.40|es_xsetinfo wcs_paInvis 10;es_xsetinfo wcs_paSpeed 0.50"
   "racealias_paSon"   "es playervar set server_var(wcs_userid) wcs_paSneak 1;es est_setplayercolor server_var(wcs_userid) 255 255 255 server_var(wcs_paInvis) 1;es est_Speed server_var(wcs_userid) server_var(wcs_paSpeed)"
   "racealias_paSoff"  "es playervar set server_var(wcs_userid) wcs_paSneak 0;es est_setplayercolor server_var(wcs_userid) 255 255 255 255 1;es est_Speed server_var(wcs_userid) 1"
   "skill4_cmd"        "es playervar get Sneak server_var(wcs_userid) wcs_paSneak;if (server_var(Sneak) = 0) then racealias_SNKon;if (server_var(Sneak) = 1) then racealias_SNKoff"
   "skill4_sfx"        "0"
   "ultimate_cooldown" "5"

It's a toggleable "sneak" type of skill, where the player gains invisibility at the loss of speed while it's active. I did have it working with the keysetvalue/keygetvalue commands but i read that "playervar" was much better for storing single values

Help is much appreciated, thanks.

~Yiyas
« Last Edit: May 28, 2009, 06:50:03 PM by Yiyas » Logged
WCA | Berettonawak [FR]
Le renommé méconnu...
Watchdogs
Level 7 Master
*****
Offline Offline

France France

Posts: 2237


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #1 on: May 28, 2009, 07:54:04 PM »

Use WCSuserdata instead Smiley
Logged

Bob
Level 6 Experienced
******
Offline Offline

United States United States

Posts: 200



« Reply #2 on: May 28, 2009, 08:10:42 PM »

yeah
Logged
Yiyas
Level 0 Beginner

Offline Offline

United Kingdom

Posts: 17




no1yiyas
no1yiyas
« Reply #3 on: May 28, 2009, 10:30:15 PM »

hehe no two ways about it then Tongue thanks guys
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
May 29, 2009, 11:24:41 PM
berret fix the database.. again
May 28, 2009, 08:33:50 AM
merry christmas rot Smiley
i missed santa XD
May 27, 2009, 10:55:38 PM
merry christmas
May 27, 2009, 10:42:41 PM
need some ideas xD
May 27, 2009, 10:11:07 PM
hi hi
May 27, 2009, 07:48:41 PM
Hello Smiley
Recent
[Today at 02:55:11 AM]

[Today at 12:52:12 AM]

[Today at 12:45:20 AM]

[Today at 12:22:42 AM]

[Today at 12:09:52 AM]

[May 29, 2009, 09:12:42 PM]

by D4RK
[May 29, 2009, 08:55:19 PM]

by Bob
[May 29, 2009, 08:26:55 PM]

[May 29, 2009, 06:21:05 PM]

[May 29, 2009, 05:33:39 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.094 seconds with 25 queries.