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-10-24 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
October 24, 2008, 04:45:49 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Hall of Fame-Designer
Must Visit it
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Author Topic: New race ultimate help :(  (Read 226 times)
nomx
Level 0 Beginner

Offline Offline

Posts: 3


« on: January 26, 2007, 10:01:12 AM »

Code:
block wcs_ulti_infiltrate
{
es es_xif (server_var(wcs_debug) = 1) then echo wcs_ulti_infiltrate start
  es_xsetinfo wcs_team_target 0
  es es_xgetplayerteam wcs_team server_var(wcs_userid)
  es_xif (server_var(wcs_team) = 2) do
  {
   est_SetModel server_var(wcs_userid) player/ct_gign
   es_xtell server_var(wcs_userid) You have infiltrated!
   es_xdelayed server_var(wcs_hginft) est_SetModel server_var(wcs_userid) player/t_leet
   es_xdelayed server_var(wcs_hginft) es es_xtell server_var(wcs_userid) Infiltration expired!
  }
  es_xif (server_var(wcs_team) = 3) do
  {
   est_SetModel server_var(wcs_userid) player/t_leet
   es_xtell server_var(wcs_userid) You have infiltrated!
   es_xdelayed server_var(wcs_hginft) es est_SetModel server_var(wcs_userid) player/ct_gign
   es_xdelayed server_var(wcs_hginft) es es_xtell server_var(wcs_userid) Infiltration expired!
  }
}


Okay, so I write that up, put that in the es_wcs.txt file, and when I try to use the ultimate, nothing happens. I have rewritten it 4 different ways and so far, none do the desired effect. Only once did it even show anything on the screen (in es_xtells) that it was even doing the event block. Oh, here's the cmd string.

Code:
"es_xdoblock wcs/wcs_ulti_infiltrate"


The wcs_hginft is the variable that tells it how long you are the other model, and is set by the skill setting. What exactly am I doing wrong?
Logged
Kal-El
WCS Supporter
Level 7 Expert
*****
Offline Offline

Posts: 229



« Reply #1 on: January 26, 2007, 12:57:47 PM »

wait your basicly making it like a disguser right? Hmm.... try this instead of making a block


"skill1_setting"    "es_xrand wcs_rand 1 50|es_xrand wcs_rand 1 45|es_xrand wcs_rand 1 40|es_xrand wcs_rand 1 35|es_xrand wcs_rand 1 30|es_xrand wcs_rand 1 25|es_xrand wcs_rand 1 20|es_xrand wcs_rand 1 12"
    "skill1_cmd"        "es es_xif (server_var(wcs_rand) <= 10) then es_xif (event_var(es_userteam) = 3) then est_SetModel event_var(userid) player/t_phoenix;es es_xif (server_var(wcs_rand) <= 10) then es_xif (event_var(es_userteam) = 2) then est_SetModel event_var(userid) player/ct_urban;es es_xif (server_var(wcs_rand) <= 10) then es_xtell event_var(userid) Hologram Activated "
    "skill1_sfx"        ""


Thats part of my cyber ninja race O_o. But its coded for a full round of it, toss in some delays and reverse the code and i guess it would work the same as what your aiming for? I suck at making blocks, im too used to the normal CMD coding.

"skill1_setting"    "es_xrand wcs_rand 1 50|es_xrand wcs_rand 1 45|es_xrand wcs_rand 1 40|es_xrand wcs_rand 1 35|es_xrand wcs_rand 1 30|es_xrand wcs_rand 1 25|es_xrand wcs_rand 1 20|es_xrand wcs_rand 1 12"
    "skill1_cmd"        "es es_xif (server_var(wcs_rand) <= 10) then es_xif (event_var(es_userteam) = 3) then est_SetModel event_var(userid) player/t_phoenix;es es_xif (server_var(wcs_rand) <= 10) then es_xif (event_var(es_userteam) = 2) then est_SetModel event_var(userid) player/ct_urban;es es_xif (server_var(wcs_rand) <= 10) then es_xif (event_var(es_userteam) = 2) then es_xdelayed 30.0 est_SetModel event_var(userid) player/t_phoenix;es es_xif (server_var(wcs_rand) <= 10) then es_xif (event_var(es_userteam) = 3) then  es_xdelayed 30.0 est_SetModel event_var(userid) player/ct_urban "
    "skill1_sfx"        ""


Im not saying the reverse el work as i havent tried it, but logically it should due to being delayed
Logged

<--- [Panda] : OHHHHHHHHH YEAAAAAAH!
Kal-El
WCS Supporter
Level 7 Expert
*****
Offline Offline

Posts: 229



« Reply #2 on: January 26, 2007, 01:01:42 PM »

Note also you could still code the time into the settings...im just lazy and throwing up a quikc example to use in the meantime while you figure out your ulti ^_^ just an alternative of sorts since i cant much with blocking
Logged

<--- [Panda] : OHHHHHHHHH YEAAAAAAH!
kryptonite
<WCS coder>
Administrator
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 1119



WWW
sp0nk

myServer 85.190.38.232:27015
(Warning: click connects through Steam)
« Reply #3 on: January 26, 2007, 01:14:53 PM »

you've messed up some ES stuff...

Quote
block wcs_ulti_infiltrate
{
es es_xif (server_var(wcs_debug) = 1) then echo wcs_ulti_infiltrate start
  es_xsetinfo wcs_team_target 0
  es es_xgetplayerteam wcs_team server_var(wcs_userid)
  es_xif (server_var(wcs_team) = 2) do
  {
   est_SetModel server_var(wcs_userid) player/ct_gign
   es_xtell server_var(wcs_userid) You have infiltrated!
   es_xdelayed server_var(wcs_hginft) est_SetModel server_var(wcs_userid) player/t_leet
   es_xdelayed server_var(wcs_hginft) es es_xtell server_var(wcs_userid) Infiltration expired!
  }
  es_xif (server_var(wcs_team) = 3) do
  {
   est_SetModel server_var(wcs_userid) player/t_leet
   es_xtell server_var(wcs_userid) You have infiltrated!
   es_xdelayed server_var(wcs_hginft) es est_SetModel server_var(wcs_userid) player/ct_gign
   es_xdelayed server_var(wcs_hginft) es es_xtell server_var(wcs_userid) Infiltration expired!
  }
}


-> es_xif (server_var(wcs_team) = 2) do
theres an "es" missing, so this will NEVER trigger....
use -> es es_xif (server_var(wcs_team) = 2) do
also the same on the other if.
-> est_SetModel server_var(wcs_userid) player/ct_gign
forgot an "es" again
-> es_xtell server_var(wcs_userid) You have infiltrated!
again....

remember, if you're not sure, use always just "if (...)" or es_delayed ...., es es_xif is the same and supposed to be a bit faster, but if you forget the "es", nothing will work....
Logged

(click to show/hide)
nomx
Level 0 Beginner

Offline Offline

Posts: 3


« Reply #4 on: January 26, 2007, 05:49:52 PM »

Thanks for the replies, I think I tried all es es_xif and the non es es_xif happened to be the last one I tried (and albeit, the one I posted).

I kind of gave up on it last night, the players on the server were getting a bit antsy because I kept changing the map after reloading the addon. I'll give it a go again.

Edit: Ugh, still not working. It acts like it's not even being called. I even put in a thing to where to should say in green text to everyone that it's being called, and it doesn't show up. When I push my ultimate key for the 2nd time, it just shows me the cooldown time, so it's not that...

Quote
  "skill4_setting"   "es_xsetinfo wcs_hginft 10|es_xsetinfo wcs_hginft 15|es_xsetinfo wcs_hginft 20|es_xsetinfo wcs_hginft 26|es_xsetinfo wcs_hginft 34|es_xsetinfo wcs_hginft 42|es_xsetinfo wcs_hginft 50|es_xsetinfo wcs_hginft 60"
   "skill4_cmd"      "es_xdoblock wcs/wcs_ulti_infiltrate"
   "skill4_sfx"      "0"
   "ultimate_cooldown"   "10"


Anything wrong with that?
Logged
nomx
Level 0 Beginner

Offline Offline

Posts: 3


« Reply #5 on: January 26, 2007, 10:44:33 PM »

Nevermind I think I fixed it! Thanks for the though..
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 03:10:26 PM
Plz check my post, in CS:S Support.
October 23, 2008, 11:00:44 PM
hey everyone check out my work in the gallery!!
and make sure you give me some feedback!!
October 23, 2008, 07:08:32 PM
Look my post: Weird problem with my private race! Please really need !!!
October 23, 2008, 04:12:07 PM
HUGE CRASH BUGS FIXED for more info: http://warcraft-source.com/board/index.php/topic,4529.0.html   WEEEEEEEEEE IM SO HAPPY
October 22, 2008, 11:33:18 PM
Please check my post and me.
October 22, 2008, 11:27:58 PM
hey everyone check out my work in the gallery!!
and make sure you give me some feedback!!
Recent
[Today at 02:34:14 PM]

[Today at 02:28:52 PM]

[Today at 02:23:01 PM]

[Today at 01:40:26 PM]

[Today at 01:35:32 PM]

[Today at 12:50:00 PM]

[Today at 11:43:25 AM]

[Today at 11:34:40 AM]

[Today at 09:24:08 AM]

[Today at 02:07:22 AM]
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.046 seconds with 27 queries.