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-02-02 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
February 02, 2010, 09:29:25 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: WCS Tournament being opened for applications!

Post here for signups!
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Author Topic: Cast time on ultimates and color change?  (Read 141 times)
Nekrage
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 42




Nekrage
« on: December 02, 2009, 11:09:36 PM »

Hey guys, this is probably a really far shot but is there a way to make lets say the Chain Lightning ultimate castable...like you hit you ultimate button and you then turn blue and 5 seconds after chain lightning goes off.

This may sound stupid but its for a boss event....boss that walks insanely slow but has 20k hp. 5 players vs him. I want something like that for a sorta strategy element in the fight. "OMG RUN OUT RUN OUT" if they fail to do so inflicts 1000 dmg so.......run. ]

Idk just a thought...let me know if anyone heard of this.
Logged
Frequency
Level 3 Trained Apprentice
***
Offline Offline

United States United States

Posts: 65


Of all things lost, I miss my mind the most.


« Reply #1 on: December 02, 2009, 11:15:57 PM »

Delay the function using es_xdelayed 5 es_xdoblock ...file path...
Logged



Out with the old and in with the new, there is a fine explanation for starting fresh in a world that holds no dreams.
Nekrage
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 42




Nekrage
« Reply #2 on: December 02, 2009, 11:29:32 PM »

GENIUS! Ok awesome....could anyone possibly take the normal Chain Lightning ultimate and add a color that lasts for 5 seconds? Anyway to do that?
Logged
Frequency
Level 3 Trained Apprentice
***
Offline Offline

United States United States

Posts: 65


Of all things lost, I miss my mind the most.


« Reply #3 on: December 02, 2009, 11:35:20 PM »

Here is the color code:

Code
GeSHi (eventscripts):
es est_setplayercolor server_var(wcs_userid) 0 0 255 255;es es_xdelayed 5 est_setplayercolor server_var(wcs_userid) 255 255 255 255
Logged



Out with the old and in with the new, there is a fine explanation for starting fresh in a world that holds no dreams.
Nekrage
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 42




Nekrage
« Reply #4 on: December 02, 2009, 11:56:20 PM »

Thx alot man gunna test in later today : ). Ohh and maybe you will know why this invis skill requires someone to get shot by the opposing player for the invis to activate

Code:
 "skill1_setting"    "es_xsetinfo wcs_invis 160;es_xsetinfo wcs_alpha 50|es_xsetinfo wcs_invis 145;es_xsetinfo wcs_alpha 60|es_xsetinfo wcs_invis 130;es_xsetinfo wcs_alpha 70|es_xsetinfo wcs_invis 115;es_xsetinfo wcs_alpha 80"
    "skill1_cmd"        "es_xcopy wcs_tmp wcs_invis;es_xmath wcs_tmp float;es_xmath wcs_tmp / -2.55;es_xmath wcs_tmp + 100;es est_rounddecimal wcs_tmp server_var(wcs_tmp) 0;es_keysetvalue WCSuserdata event_var(userid) invisp server_var(wcs_tmp);es est_setplayercolor event_var(userid) 255 255 255 server_var(wcs_invis) 1;es es_xtell event_var(userid) : Invisibility set."
    "skill1_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 20;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1)server_var(wcs_z1) 90 60 2 10 0 0 0 255 140 128 10"

Thx sooo much for all the help!

Edit: Umm how and where do i put this...ohh and how exactly should the delay code be...and where as well. Lol im sorry man i know its a pain.
« Last Edit: December 03, 2009, 12:06:40 AM by Nekrage » Logged
Frequency
Level 3 Trained Apprentice
***
Offline Offline

United States United States

Posts: 65


Of all things lost, I miss my mind the most.


« Reply #5 on: December 03, 2009, 01:13:51 AM »

If you look in the coding, you will see the skill cfg (Has things like player_attacker or player_spawn or player_death, etc).  Depending on what skill number it is, count that many player commands to match which skill the player_whatever belongs to.  If I am correct, for that skill the command is set as a player_victim, if you want it on spawn, make it player_spawn.

For the ultimate, just replace the stuff in the skill cmd with this:

Code
GeSHi (eventscripts):
es es_xdelayed 5 es_xdoblock wcs/WCSultimates/wcs_ulti_chain;es est_setplayercolor server_var(wcs_userid) 0 0 255 255;es es_xdelayed 5 est_setplayercolor server_var(wcs_userid) 255 255 255 255

** Forgot to copy the es in front of es_xdelayed 5 es_xdoblock when I pasted it... **
« Last Edit: December 03, 2009, 02:14:10 AM by Frequency » Logged



Out with the old and in with the new, there is a fine explanation for starting fresh in a world that holds no dreams.
AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 774




doug_tiozao
« Reply #6 on: December 03, 2009, 01:53:01 AM »

@Frequency
You're actually wrong.
If you're using x you have to use double es, and  you also had an unnecessary expand.The setplayercolor is wrong too. Syntax is <target> <red> <green> <blue> <alpha> <weapon color>
Use:
Code:
es_delayed 5 es_xdoblock wcs/WCSultimates/wcs_ulti_chain;es est_setplayercolor server_var(wcs_userid) 0 0 255 255 0;es_delayed 5 est_setplayercolor server_var(wcs_userid) 255 255 255 255 255

For the invisibility skill just use:

Code:
    "skillX_setting"    "es_xset invis 30"
    "skillX_cmd"        "es est_setplayercolor event_var(userid) 255 255 255 server_var(invis) 1"
    "skillX_sfx"        "0"

You just have to change the cfg according to the skill. Example: if you made a skill that gives you weapon, use player_spawn, if you made a respawn skill, use player_death, if you made an attack skill, use player_attacker, if you want to make something happen to the person who shoots you use player_victim, if you want to make a skill that when you type something use player_say.
Player_spawn : Activates when the player spawns
Player_death : Activates when the player dies
Player_victim : Something happens to the person who is attacking you
Player_say : Activates when you type somethin
Player_ultimate : Activates when you press your ultimate button!
Logged

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

United States United States

Posts: 65


Of all things lost, I miss my mind the most.


« Reply #7 on: December 03, 2009, 02:07:09 AM »

@Frequency
You're actually wrong.
If you're using x you have to use double es, and  you also had an unnecessary expand.The setplayercolor is wrong too. Syntax is <target> <red> <green> <blue> <alpha> <weapon color>
Use:
Code:
es_delayed 5 es_xdoblock wcs/WCSultimates/wcs_ulti_chain;es est_setplayercolor server_var(wcs_userid) 0 0 255 255 0;es_delayed 5 est_setplayercolor server_var(wcs_userid) 255 255 255 255 255

For the invisibility skill just use:

Code:
    "skillX_setting"    "es_xset invis 30"
    "skillX_cmd"        "es est_setplayercolor event_var(userid) 255 255 255 server_var(invis) 1"
    "skillX_sfx"        "0"

You just have to change the cfg according to the skill. Example: if you made a skill that gives you weapon, use player_spawn, if you made a respawn skill, use player_death, if you made an attack skill, use player_attacker, if you want to make something happen to the person who shoots you use player_victim, if you want to make a skill that when you type something use player_say.
Player_spawn : Activates when the player spawns
Player_death : Activates when the player dies
Player_victim : Something happens to the person who is attacking you
Player_say : Activates when you type somethin
Player_ultimate : Activates when you press your ultimate button!

Actually, my skill is quite right:

1.) He did not say he wanted the weapon choice to be blue as well, he wanted the player to become blue.
2.) Your setcolor code is incorrect, check the ending and you will see that you set the weapon (1/0) yes or no to 255 (wtf?)
3.) I already mentioned the problem with the cfg.
4.) He did not ask for the invisibility code to be changed, he asked the reason why it would activate when he was attacked.

**What is the difference between my code and yours besides the improper use of setplayercolor on your end?**
- Also, the reason the es wasn't on there is because I just copied and pasted it from my notepad after typing it...

EDIT:

By the way, do you know what the hell you are talking about when it comes to coding, or is that just your foreign intellect?

Don't try and piss me off Avast, you have been giving me an attitude in the other sections as well.
« Last Edit: December 03, 2009, 02:13:35 AM by Frequency » Logged



Out with the old and in with the new, there is a fine explanation for starting fresh in a world that holds no dreams.
Zawmbee
Guest
« Reply #8 on: December 03, 2009, 02:16:52 AM »

Lol, woah that was brutal...  Anyways, Frequency calm down a bit no matter how wrong Avast may be Tongue and Avast play nice...
Logged
AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 774




doug_tiozao
« Reply #9 on: December 03, 2009, 02:17:23 AM »

Well i forgot its 1 or 0

Code:
By the way, do you know what the hell you are talking about when it comes to coding, or is that just your foreign intellect?

Of course i know.
 I just forgot that fucking 1/0
Logged

Lol?
AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 774




doug_tiozao
« Reply #10 on: December 03, 2009, 02:17:58 AM »

im just starting to get mad and he wont like.
Logged

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

United States United States

Posts: 65


Of all things lost, I miss my mind the most.


« Reply #11 on: December 03, 2009, 02:20:16 AM »

Lol, woah that was brutal...  Anyways, Frequency calm down a bit no matter how wrong Avast may be Tongue and Avast play nice...

Eh, I am not mad as of yet, just warning him not to piss me off.  Seems he has been giving me an attitude on the other sections...
Logged



Out with the old and in with the new, there is a fine explanation for starting fresh in a world that holds no dreams.
Nekrage
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 42




Nekrage
« Reply #12 on: December 03, 2009, 03:41:41 AM »

ugh guys thank you very very much....umm sorry if i caused an argument...wouldnt like to see that.

Thank you both.

Dont fight.
« Last Edit: December 03, 2009, 10:59:13 PM by Nekrage » Logged
Yiyas
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 261


The name's Bugger. De-Bugger.



no1yiyas
no1yiyas
« Reply #13 on: December 03, 2009, 10:46:20 AM »

Delaying a block like chainlightning is exactly like delaying a racealias. If you add a 5s delay to the block you must add a 5s delay to all the settings that come with it. Either by adding "es_delayed 5 es_xset wcs_radius server_var(wcs_radius)" in the cmd line before the delayed doblock or adding es_delayed 5 before each and every setting in the setting line. Failure to do so will no doubtedly result in a different damage, radius and user of the skill. So don't forget "es_delayed 5 es_xset wcs_userid server_var(wcs_userid)" before the doblock as well.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 10:43:30 AM
Yap, he mean eventscripter xD
Today at 01:03:48 AM
Eventscripter. lol
Today at 12:23:17 AM
A WCS scripter?
February 01, 2010, 06:12:18 PM
izh lookeh for 1 scripter to supp0t me
February 01, 2010, 05:14:04 PM
does anyone had a server problem that skin shows errors because people doesn't get .mdl file download....
February 01, 2010, 01:06:01 PM
Type any est_command in console and it will tell you it's syntax automatically Smiley
February 01, 2010, 12:40:20 AM
whats est_freeze syntax?

Recent
[Today at 07:24:36 PM]

[Today at 06:06:19 PM]

[Today at 06:02:56 PM]

[Today at 05:57:30 PM]

[Today at 05:54:01 PM]

[Today at 04:40:07 PM]

[Today at 03:29:43 PM]

[Today at 09:52:57 AM]

[Today at 06:59:11 AM]

[Today at 05:12:24 AM]
Theme switch

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