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 2010-01-16 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
January 16, 2010, 03:03:14 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Please obey the rules, to achieve a pleasent order in our community.
Google  
  Home   Forum   Help Search Login Register   *
Pages: 1 [2]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Re: [DotA] Spectre, Mercurial  (Read 1763 times)
Frodo
Level 7 Expert
*****
Offline Offline

Posts: 853


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #15 on: October 12, 2007, 02:09:59 PM »

For 50% you are wrong. Tests I did:


es_xsetinfo test 0
es_exists test key WCSuserdata 424 speed
es echo server_var(test)
0

es_xsetinfo wcs_test 0
es_exists wcs_test key WCSuserdata omg speed
es echo server_var(wcs_test)
0

Both for name and ID. And my race checks with ID... As usual in ES, some people have to test it too and give me here results...
Logged


Actually I found it as best Bux ever. Everything's automated!
Stinkyfax
I <3 WCS
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 1903



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #16 on: October 14, 2007, 08:30:09 AM »

wow. U're right.
The most funny that when i type same in console now i get result "0"!  :shock:
Logged



Stinkyfax
I <3 WCS
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 1903



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #17 on: October 14, 2007, 08:49:57 AM »

wcs_beep is set in any case, what's the idea to make "if always do"?
you check if exists speed from userid but don't check existation from attacker.
you give attacker his old speed + speed from user (it's not 30%), now i explain:
what's the point to check userid's speed in variables if u do not operate with it?
u used wcs_rar in previous operations, for example here:   es est_Speed event_var(userid) server_var(wcs_rar)
It was the last one, and wcs_rar contained 70% of speed victim had, no operations since this.
So you add 70% instead of 30%.

          if (server_var(wcs_beep) = 1) do
          {
            es_exists wcs_speed2 key WCSuserdata event_var(userid) speed
            if (server_var(wcs_speed2) = 1) then es_xkeygetvalue wcs_speed WCSuserdata event_var(attacker) speed
            es_math wcs_speed + server_var(wcs_rar)
            es est_Speed event_var(attacker) server_var(wcs_speed)
            if (server_var(wcs_speed2) = 0) do
            {
              es_xsetinfo wcs_speed 1
              es_math wcs_speed + server_var(wcs_rar)
              es est_Speed event_var(attacker) server_var(wcs_speed)
            }
Logged



Frodo
Level 7 Expert
*****
Offline Offline

Posts: 853


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #18 on: October 17, 2007, 08:29:31 PM »

I think fixed, i'm a bit tired now so it may still has bugs
Code:
      es_keygetvalue wcs_sdm WCSuserdata event_var(attacker) sdm
      if (server_var(wcs_sdm) = 1) do
      {
      alias wcs_spectre_sfx "es est_effect 4 #a 0 sprites/lgtning.vmt event_var(userid) 1 30 7 6 1 1 1 255"
      if (server_var(wcs_dice) <= server_var(wcs_chancez)) do
      {
        es_xsetinfo wcs_rar 1
        es_xsetinfo wcs_speed2 0
        es_xsetinfo wcs_speed 0
        es_xsetinfo wcs_tmp50 0
        do
        {
          es_exists wcs_speed2 key WCSuserdata event_var(userid) speed
          if (server_var(wcs_speed2) = 1) do
          {
            es es_xkeygetvalue wcs_rar WCSuserdata event_var(userid) speed
            es_math wcs_rar * server_var(wcs_speedv)
            es es_xkeygetvalue wcs_tmp50 WCSuserdata event_var(userid) speed
            es_math wcs_tmp50 - server_var(wcs_rar)
            es est_Speed event_var(userid) server_var(wcs_tmp50)
          }
          es_xelse do
          {
            es es_xmath 1 - server_var(wcs_speedv)
            es est_Speed event_var(userid) server_var(wcs_rar)
            es_math wcs_rar * server_var(wcs_speedv)
          }
          es_exists wcs_speed2 key WCSuserdata event_var(attacker) speed
          if (server_var(wcs_speed2) = 1) then es_xkeygetvalue wcs_speed WCSuserdata event_var(attacker) speed
          es_math wcs_speed + server_var(wcs_rar)
          es est_Speed event_var(attacker) server_var(wcs_speed)
          if (server_var(wcs_speed2) = 0) do
          {
              es_xsetinfo wcs_speed 1
              es_math wcs_speed + server_var(wcs_rar)
              es est_Speed event_var(attacker) server_var(wcs_speed)
          }
        }
        es_delayed 3 es wcs_removefx speed event_var(userid)
        es_delayed 3 es wcs_removefx speed event_var(attacker)
        es_tell event_var(attacker) #green You have stolen server_var(wcs_mydad)% of enemy's speed for 3 seconds.
        es_tell event_var(userid) #lightgreen Enemy has stolen server_var(wcs_mydad)% of your speed!
      }
      if (server_var(wcs_dice) <= server_var(wcs_chancez)) then wcs_spectre_sfx
      }

Logged


Actually I found it as best Bux ever. Everything's automated!
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
January 14, 2010, 06:18:58 PM
here is the topic i created... please put the skills in there: http://warcraft-source.com/board/index.php/topic,9315.0.html
January 14, 2010, 06:15:26 PM
O.K. I started now the project for a new RaceCreator... I will programm it and upload it then.... would be nice if you could make a topic with all skills texno and all others (sepretated in "player_attacker" etc. )
January 14, 2010, 05:30:29 PM
yeah..
January 14, 2010, 04:11:46 PM
Oh i see... not very much skills / ultimates... and just maximum 4 lvl for the skills lol....
January 14, 2010, 04:08:57 PM
thanks, are there any bugs ?? I can't fix it because first : don't have the programm code and second : don't know if he wrote it in C#...^^
January 14, 2010, 11:37:50 AM
Here's the link... maby you can update it Termi ? "http://warcraft-source.com/board/index.php/topic,6199.0.html"

http://warcraft-source.com/board/index.php/topic,6199.0.html
January 13, 2010, 07:26:02 PM
No prob dude
Recent
[Today at 12:56:34 PM]

[Today at 12:12:58 PM]

[Today at 02:12:10 AM]

[Today at 12:02:45 AM]

[January 15, 2010, 11:58:57 PM]

[January 15, 2010, 11:25:21 PM]

[January 15, 2010, 11:04:53 PM]

[January 15, 2010, 10:44:43 PM]

by NeSo
[January 15, 2010, 07:20:35 PM]

[January 15, 2010, 06:07:34 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.113 seconds with 24 queries.