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-04-29 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
April 30, 2009, 12:24:00 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 2 [3] 4   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Instant teleport skill (like blink in WoW)  (Read 299 times)
WCA | Berettonawak [FR]
Watchdogs
Level 7 Master
*****
Offline Offline

France France

Posts: 2015


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #30 on: April 20, 2009, 06:22:04 PM »

Code:
//For WCS 0.78 compatibility
"skillX_block" "wcs/WCSultimates/wcs_ulti_blink"
"skillX_sfx" "0"

And put this in your ultimate file:
Code:
block wcs_ulti_blink
{
  es playerget location server_var(wcs_userid) wcs_x1 wcs_y1 wcs_z1
  es playerget viewcoord server_var(wcs_userid) wcs_x2 wcs_y2 wcs_z2
  es inrange wcs_x server_var(wcs_x1) server_var(wcs_distance) server_var(wcs_x2)
  es inrange wcs_y server_var(wcs_y1) server_var(wcs_distance) server_var(wcs_y2)
  es inrange wcs_z server_var(wcs_z1) server_var(wcs_distance) server_var(wcs_z2)
  ifx parse("wcs_x == 1 and wcs_y == 1 and wcs_z == 1") do
  {
    es playerset location server_var(wcs_userid) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2)
    es_xdelayed 5 es_xdoblock wcs/WCSultimates/wcs_blink_check
    es_keysetvalue WCSuserdata server_var(wcs_userid) "temp_x" server_var(wcs_x2)
    es_keysetvalue WCSuserdata server_var(wcs_userid) "temp_y" server_var(wcs_y2)
    es_keysetvalue WCSuserdata server_var(wcs_userid) "temp_z" server_var(wcs_z2)
  }
}

block wcs_blink_check
{
  es playerget location server_var(wcs_userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1)
  es_keygetvalue wcs_x2 WCSuserdata server_var(wcs_userid) "temp_x"
  es_keygetvalue wcs_y2 WCSuserdata server_var(wcs_userid) "temp_y"
  es_keygetvalue wcs_z2 WCSuserdata server_var(wcs_userid) "temp_z"
  ifx parse("wcs_x1 == wcs_x2 and wcs_y1 == wcs_y2 and wcs_z1 == wcs_z2") do
  {
     es est_gethealth wcs_tmp server_var(wcs_userid)
     es est_spawn server_var(wcs_userid) 1
     es est_sethealth server_var(wcs_userid) server_var(wcs_tmp)
  }
}
Sorry took longer was makin' a pizza Grin
Well will make an alternative way for the end tomorrow
Logged

Bob
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 146



« Reply #31 on: April 20, 2009, 06:56:41 PM »

OMFG I love you THANKYOU!
Logged
WCA | Berettonawak [FR]
Watchdogs
Level 7 Master
*****
Offline Offline

France France

Posts: 2015


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #32 on: April 20, 2009, 06:58:03 PM »

OMFG I love you THANKYOU!
no problem
as i said before, i'll improve it tomorrow
Logged

Bob
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 146



« Reply #33 on: April 20, 2009, 06:59:50 PM »

mmk, ty.

I also have a question on how do I or you put that into an ability because im going to have a seperate ultimate Tongue
that would be awesome if you could do that Cheesy

EDIT* also for the server_var(wcs_distance) I would need to make the skill like this?:
Code:
"skill1_setting"    "es_xsetinfo wcs_distance 5|es_xsetinfo wcs_distance 10|es_xsetinfo wcs_distance 15|es_xsetinfo wcs_distance 20|es_xsetinfo wcs_distance 25"
"skill1_cmd"        "wcs/WCSultimates/wcs_ulti_blink"
"skill1_sfx"        "0"
"ultimate_cooldown" "5"
« Last Edit: April 20, 2009, 07:09:16 PM by Bob » Logged
WCA | Berettonawak [FR]
Watchdogs
Level 7 Master
*****
Offline Offline

France France

Posts: 2015


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #34 on: April 20, 2009, 07:10:35 PM »

Oh this was to be an ability?
Sorry thought it was an ultimate :p
will make that tomorrow
and no sry didn't look at what i was doing
skill will look like:
Code:
"skill1_setting"   "es_xsetinfo wcs_distance 5|es_xsetinfo wcs_distance 10|es_xsetinfo wcs_distance 15|es_xsetinfo wcs_distance 20|es_xsetinfo wcs_distance 25"
"skill1_cmd"       "es_xdoblock wcs/WCSultimates/wcs_ulti_blink"
"skill1_sfx"        "0"
But in WCS .78, it will be :
Code:
"skill1_setting"   "es_xsetinfo wcs_distance 5|es_xsetinfo wcs_distance 10|es_xsetinfo wcs_distance 15|es_xsetinfo wcs_distance 20|es_xsetinfo wcs_distance 25"
"skill1_block"       "wcs/WCSultimates/wcs_ulti_blink"
Logged

Bob
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 146



« Reply #35 on: April 20, 2009, 07:13:08 PM »

oh ok cool
 and np on the ultimate at least its somthing Tongue
« Last Edit: April 20, 2009, 07:15:08 PM by Bob » Logged
Bob
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 146



« Reply #36 on: April 20, 2009, 07:32:48 PM »

another thing. where do i get .78?
Logged
WCA | Berettonawak [FR]
Watchdogs
Level 7 Master
*****
Offline Offline

France France

Posts: 2015


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #37 on: April 20, 2009, 09:01:36 PM »

another thing. where do i get .78?
on this site, as soon as it comes out (which should be before summer holidays hopefully).
Logged

Bob
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 146



« Reply #38 on: April 20, 2009, 09:25:18 PM »

oh ok ty
Logged
Ðioguinhu :D
Level 6 Experienced
******
Online Online

Brazil Brazil

Posts: 204



WWW
doug_tiozao

myServer 200.219.246.21:27040 ZM +WCS;200.219.246.54:27047 SURF + WCS
(Warning: click connects through Steam)
« Reply #39 on: April 20, 2009, 11:05:47 PM »

Why dont you make an skill like teleporting to behind the enemy, its better and you get him by the back
Logged

Learning Eventscripts and WCS lover *-*
I love WCS Grin
Bob
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 146



« Reply #40 on: April 20, 2009, 11:35:34 PM »

thats nothing like what we are talking about.
Logged
Bob
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 146



« Reply #41 on: April 21, 2009, 07:16:21 PM »

Berettonawak once you get on you think you could work on the block? Tongue
Logged
Ðioguinhu :D
Level 6 Experienced
******
Online Online

Brazil Brazil

Posts: 204



WWW
doug_tiozao

myServer 200.219.246.21:27040 ZM +WCS;200.219.246.54:27047 SURF + WCS
(Warning: click connects through Steam)
« Reply #42 on: April 21, 2009, 07:45:49 PM »

berretonawak is complicating everything with those blocks things!!!
Logged

Learning Eventscripts and WCS lover *-*
I love WCS Grin
Stinkyfax
I <3 WCS
Watchdogs
Level 7 Master
*****
Offline Offline

Lithuania Lithuania

Posts: 1621



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #43 on: April 21, 2009, 07:49:56 PM »

Code:
//For WCS 0.78 compatibility
"skillX_block" "wcs/WCSultimates/wcs_ulti_blink"
"skillX_sfx" "0"

And put this in your ultimate file:
Code:
block wcs_ulti_blink
{
  es playerget location server_var(wcs_userid) wcs_x1 wcs_y1 wcs_z1
  es playerget viewcoord server_var(wcs_userid) wcs_x2 wcs_y2 wcs_z2
  es inrange wcs_x server_var(wcs_x1) server_var(wcs_distance) server_var(wcs_x2)
  es inrange wcs_y server_var(wcs_y1) server_var(wcs_distance) server_var(wcs_y2)
  es inrange wcs_z server_var(wcs_z1) server_var(wcs_distance) server_var(wcs_z2)
  ifx parse("wcs_x == 1 and wcs_y == 1 and wcs_z == 1") do
  {
    es playerset location server_var(wcs_userid) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2)
    es_xdelayed 5 es_xdoblock wcs/WCSultimates/wcs_blink_check
    es_keysetvalue WCSuserdata server_var(wcs_userid) "temp_x" server_var(wcs_x2)
    es_keysetvalue WCSuserdata server_var(wcs_userid) "temp_y" server_var(wcs_y2)
    es_keysetvalue WCSuserdata server_var(wcs_userid) "temp_z" server_var(wcs_z2)
  }
}

block wcs_blink_check
{
  es playerget location server_var(wcs_userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1)
  es_keygetvalue wcs_x2 WCSuserdata server_var(wcs_userid) "temp_x"
  es_keygetvalue wcs_y2 WCSuserdata server_var(wcs_userid) "temp_y"
  es_keygetvalue wcs_z2 WCSuserdata server_var(wcs_userid) "temp_z"
  ifx parse("wcs_x1 == wcs_x2 and wcs_y1 == wcs_y2 and wcs_z1 == wcs_z2") do
  {
     es est_gethealth wcs_tmp server_var(wcs_userid)
     es est_spawn server_var(wcs_userid) 1
     es est_sethealth server_var(wcs_userid) server_var(wcs_tmp)
  }
}
Sorry took longer was makin' a pizza Grin
Well will make an alternative way for the end tomorrow
I will suggest teleporting player back instead of to respawn + side effect of respawn.
Side effect will make some shopitems stop working i guess, also it will reload abilities, weapon, ammo, other things..
Logged

Bob
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 146



« Reply #44 on: April 21, 2009, 07:53:19 PM »

well we will start fixing the bugs or whatever once Berettonawak gets on.
Logged
Pages: 1 2 [3] 4   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 12:22:06 AM
chuck says he didnt say jereth is nazi... and he didnt say anything racist why would he say if even his dad is german.... and he didnt ignore admins if he did he would reply.....chuck got warning so he stop and than next thing he know got ban?? make no sense
April 29, 2009, 11:09:42 PM
he pushed it once again with racist jokes and ignoring admin/mods
April 29, 2009, 10:54:03 PM
Thank you WCA | Maxxi Smiley
April 29, 2009, 10:25:46 PM
why did chuck got ban without a reason.... he just got warning than got ban for no reason.... he told me his dad is german and his mom is ukrainian and chuck is....and he doesnt hate german......why cant we forgive what he wrote because thats wasnt what he had in mind like what we did....
April 29, 2009, 10:16:07 PM
nice color jar Smiley
April 29, 2009, 10:05:21 PM
Wink
April 29, 2009, 08:59:07 PM
wow das heisst"flashy" Wink
Recent
[Today at 12:23:59 AM]

[Today at 12:19:31 AM]

[April 29, 2009, 11:54:39 PM]

[April 29, 2009, 11:47:31 PM]

[April 29, 2009, 11:40:08 PM]

[April 29, 2009, 11:31:08 PM]

[April 29, 2009, 11:29:21 PM]

[April 29, 2009, 11:26:52 PM]

[April 29, 2009, 11:24:34 PM]

[April 29, 2009, 11:10:04 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.06 seconds with 22 queries.