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-11-28 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
November 28, 2009, 02:34:51 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Remember to check on the FAQ before start posting.
It may save you time and effort.
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: est_get help =#  (Read 58 times)
iN0V4Ke
Level 6 Experienced
*****
Offline Offline

Portugal Portugal

Posts: 132



« on: November 24, 2009, 11:58:04 PM »

Hey every1.
i have 1 ultimate that gives me speed and gravity for xx time, and when after delayed time the race set my speed to 1 and gravity 2.
i want to use: es est_getspeed server_var(wcs_userid) server_var(wcs_speed1)
                      es est_delayed est_speed server_var(wcs_userid) server_var(wcs_speed1)


is it possible?
Logged

AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 527




doug_tiozao
« Reply #1 on: November 25, 2009, 02:25:59 AM »

Just use

es est_speed server_var(wcs_userid) server_var(wcs_speed)
and
es est_setgravity server_var(wcs_userid) server_var(wcs_gravity)

es_delayed es est_speed server_var(wcs_userid) 1
and

es_delayed es est_setgravity server_var(wcs_userid) 0
Logged

Lol?
Crazy
Level 3 Trained Apprentice
***
Offline Offline

United States United States

Posts: 72



« Reply #2 on: November 25, 2009, 02:37:11 PM »

Avast, I think what hes asking is if its possible to change a users speed, then set the speed back to what it was to begin with, such as 1.2. Same with gravity. Which your answer would be yes. You'd just have to find a way to get the players initial start value. Then you would designate a variable such like... es_xset origspeed 0. Then you would follow the format Avast gave but you would first store the original speed as origspeed, then you would set it to that server_var in the delay.
Logged
iN0V4Ke
Level 6 Experienced
*****
Offline Offline

Portugal Portugal

Posts: 132



« Reply #3 on: November 25, 2009, 05:30:43 PM »

Avast, I think what hes asking is if its possible to change a users speed, then set the speed back to what it was to begin with, such as 1.2. Same with gravity. Which your answer would be yes. You'd just have to find a way to get the players initial start value. Then you would designate a variable such like... es_xset origspeed 0. Then you would follow the format Avast gave but you would first store the original speed as origspeed, then you would set it to that server_var in the delay.

Thats right.
Sometimes i buy items from shopmenu, but it set the speed and gravity do 1. =#
Logged

AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 527




doug_tiozao
« Reply #4 on: November 25, 2009, 07:05:47 PM »

Ooh! Now i understand, you can set a keyvalue for the speed, then store it, after this change the speed and do the same with gravity, after it use a delay then get the keyvalue and set back Smiley
Logged

Lol?
CA.Berettonawak
Le renommé méconnu...
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 2726


Big Berettonawak is watching you...


WWW
Bifkids
« Reply #5 on: November 25, 2009, 08:32:17 PM »

est_delayed => es_delayed
es_delayed 1 est_speed event_var(userid) 3
Logged

Quote from: N0life
Beret, keep yourself focusing on 1 project. Be sure to memorize that down since it sounds good.
Quote from: myself
i love tuna juice Cheesy
Quote from: Pietro
=CA= Pietro: back
=CA= Pietro: sorry, was downstair sharing my chocolate with my cat
=CA= Pietro: you should see his face when he ate it xD
Quote from: myself
=CA= Berettonawak: just because you don't have hope doesn't mean we're doomed
Zawmbee
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 729


Watch Tower


« Reply #6 on: November 25, 2009, 08:48:32 PM »

Here, this will help you a lot more... use this function wcs_setfx:

es wcs_setfx speed server_var(wcs_userid) + amount time

Example:

es wcs_setfx speed server_var(wcs_userid) + 1.0 server_var(speed_time)

Speed is doubled for the time that I set the variable speed_time
Logged


(Anyone who C&P's my races, give credit, TY)
AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 527




doug_tiozao
« Reply #7 on: November 25, 2009, 08:55:41 PM »

xD
Logged

Lol?
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
November 26, 2009, 07:50:04 PM
Does anyone know how Immunity from Serpent Wards works? The player_spawn_cmd
November 26, 2009, 06:31:59 PM
Nevermind someone helped me out Cheesy
November 26, 2009, 06:30:09 PM
What?
November 26, 2009, 06:08:07 PM
V V Nvm!
November 26, 2009, 05:39:47 PM
Avast

November 26, 2009, 11:12:33 AM
yes
November 26, 2009, 10:23:22 AM
anyone on?
Recent
[Today at 02:19:21 AM]

[Today at 02:01:52 AM]

[Today at 02:00:54 AM]

[Today at 12:35:16 AM]

[November 27, 2009, 11:06:09 PM]

[November 27, 2009, 11:02:44 PM]

[November 27, 2009, 10:28:07 PM]

[November 27, 2009, 10:19:54 PM]

[November 27, 2009, 09:33:44 PM]

[November 27, 2009, 08:40:13 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.135 seconds with 25 queries.