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-30 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
April 30, 2009, 03:47:10 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Hall of Fame
Must Visit it
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 302 times)
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 #45 on: April 21, 2009, 07:55:18 PM »

well we will start fixing the bugs or whatever once Berettonawak gets on.
OK boss  Cheesy
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 #46 on: April 22, 2009, 12:29:04 PM »

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..
Yes sorry Stinky, i thought of this but had to go, we had guests... and a pizza to eat Wink
That's why i said i would make it... i'll be working on it in the next 10 minutes (well let's say between 5 and 20?) Tongue
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 #47 on: April 22, 2009, 12:42:06 PM »

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_delayed 5 es_xset wcs_userid server_var(wcs_userid)
    es_xsoon es_xdoblock wcs/WCSultimates/wcs_blink_check
    es_createvectorstring wcs_tmp server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1)
    es_keysetvalue WCSuserdata server_var(wcs_userid) "tel_origine" server_var(wcs_tmp)
    es_createvectorstring wcs_tmp server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2)
    es_keysetvalue WCSuserdata server_var(wcs_userid) "tel_destination" server_var(wcs_tmp)
  }
}

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_tmp WCSuserdata server_var(wcs_userid) "tel_destination"
  es_splitvectorstring wcs_x2 wcs_y2 wcs_z2 server_var(wcs_tmp)
  ifx parse("wcs_x1 == wcs_x2 and wcs_y1 == wcs_y2 and wcs_z1 == wcs_z2") do
  {
     es_keygetvalue wcs_tmp WCSuserdata server_var(wcs_userid) "tel_origine"
     es_splitvectorstring wcs_x1 wcs_y1 wcs_z1 server_var(wcs_tmp)
     es playerset location server_var(wcs_userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1)
  }
}
Okay, made it so it will go back to original location.
Also added a line to reset wcs_userid in case someone else uses an ultimate between the teleport and the check (which would have changed value of wcs_userid).
Then you are free to add any es_tell to make it like you want it to be.

Here's the skill for WCS 0.77:
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"
And here's the skill for WCS 0.78:
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"

PS : If you want to add a sfx to the skill, you'll need to put somewhere in the block:
Code:
ifx true(wcs_graphicfx) do
{
  // HERE PUT YOUR SFX CODE
}

RE PS : I actually remember something i forgot to say... you will be able to teleport a bit longer than wcs_distance... Actually you'll be able to teleport in a square (of which you are the center) of a 2*wcs_distance side.

RE RE PS : This means you actually can teleport on wcs_distance * root(2)
« Last Edit: April 22, 2009, 01:14:11 PM by WCA | Berettonawak [FR] » Logged

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

United States United States

Posts: 147



« Reply #48 on: April 22, 2009, 01:14:14 PM »

what about into ability Tongue
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 #49 on: April 22, 2009, 01:16:03 PM »

what about into ability Tongue
Oh shit, forgot once again Smiley
Gonna do that Tongue
Just tell me, have you added some other abilities?
Logged

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

United States United States

Posts: 147



« Reply #50 on: April 22, 2009, 01:18:31 PM »

no, no more for now but thank you for all your help Tongue

and maybe help a little more on the player_footstep because im still lost a little
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 #51 on: April 22, 2009, 01:20:38 PM »

Are you sure you don't wanna make it an ability?

Well maybe we'll make that once 0.80 comes out, which means as soon as the new ability system is done Smiley
Logged

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

United States United States

Posts: 147



« Reply #52 on: April 22, 2009, 01:23:45 PM »

oh no i still want the ability Tongue but oh i didn't know there's a new ability system, Cool Tongue
(wont be on for an hour Sad )
Logged
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 #53 on: April 22, 2009, 01:43:57 PM »

Quote
Today at 01:12:15 PM
Bob & Stinky click here
Isn't it just same as "anti stuck" i used for rikimaru race?
P.S.
I will advice you checking twice, coz i faced some conditions when made it for riki.
Even if person is stuck he can change his coords by ducking, but if u check twice it makes a guarantee he didn't get stuck even if ducked.
« Last Edit: April 22, 2009, 01:45:56 PM by Stinkyfax » 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 #54 on: April 22, 2009, 02:52:40 PM »

Quote
Today at 01:12:15 PM
Bob & Stinky click here
Isn't it just same as "anti stuck" i used for rikimaru race?
P.S.
I will advice you checking twice, coz i faced some conditions when made it for riki.
Even if person is stuck he can change his coords by ducking, but if u check twice it makes a guarantee he didn't get stuck even if ducked.
Actually i didn't even know this race... let me check it Smiley

Yes i see, that's the same concept, and even almost the same code, actually.

(click to show/hide)
I will actually do as you said, and check twice Tongue
Logged

Dark Phoenix
Level 4 Intermediate
****
Offline Offline

Canada Canada

Posts: 94




shadephoenix
« Reply #55 on: April 25, 2009, 02:29:53 PM »

i havent been on in a long time but can't you use est_GetWallBetween or something for it? like

Code:
"skill4_setting"    "es_xsetinfo wcs_chance 99|es_xsetinfo wcs_chance 99|es_xsetinfo wcs_chance 99|es_xsetinfo wcs_chance 99|es_xsetinfo wcs_chance 99" 
"skill4_cmd"        "es est_getviewcoord server_var(wcs_userid) wcs_x1 wcs_y1;es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_userid); es est_GetWallBetween wall_between server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1);es_xif (server_var(wall_between) = 1) then racealias_stop;es_xif (server_var(wall_between) = 0) then racealias_go"
"racealias_stop"   "es_xtell event_var(attacker) #green there is #lightgreen a wall#green between you and destination"
"racealias_go"      "es est_teleport server_var(wcs_userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1)" 
"skill4_sfx"        "0" 
"ultimate_cooldown" "9|7|5|3|1"
« Last Edit: April 25, 2009, 02:48:20 PM by Dark Phoenix » Logged

Three days grace is the best band ever and if you disagree u got a screw loose in your head.So put that screw back in and listen to some three days grace!

___________________________________________________

95% of teens would cry if they saw the Jonas Brothers at the top of a skyscraper about to jump. Copy and paste this EVERYWHERE if you are in the 5% that would shout 'Jump' .
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 #56 on: April 25, 2009, 04:41:11 PM »

est_getwallbetween is bugged. it does often return false even if there is wall between. You can see this as an example with serpent ward ability hitting through walls with first few ticks eventhough there is wall check.
Logged

Dark Phoenix
Level 4 Intermediate
****
Offline Offline

Canada Canada

Posts: 94




shadephoenix
« Reply #57 on: April 25, 2009, 04:53:04 PM »

who knows maybe it will work
Logged

Three days grace is the best band ever and if you disagree u got a screw loose in your head.So put that screw back in and listen to some three days grace!

___________________________________________________

95% of teens would cry if they saw the Jonas Brothers at the top of a skyscraper about to jump. Copy and paste this EVERYWHERE if you are in the 5% that would shout 'Jump' .
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 #58 on: April 25, 2009, 05:53:41 PM »

nobody wants to make their code and hoping the extentions they are using will work but probably not.
Logged

Pages: 1 2 3 [4]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 12:32:04 AM
I'm 21 and i work for chuck so yeah..... i'm here to solve the problem that chuck shouldn't be ban but admin ban him because someone told him to... 5 out of 3k members want him to be ban...hmm
Today at 12:28:54 AM
This kindergarden should be stopped. He said, I said, we Said, He didnt say. U remind me 5 years old kids which used phrase "my dad said that i'm cool". Just let it go.
Today at 12:26:37 AM
and chucks says he did say jerth
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....
Recent
by Bob
[Today at 03:31:59 AM]

[Today at 03:01:27 AM]

[Today at 02:28:34 AM]

[Today at 02:26:33 AM]

[Today at 02:07:41 AM]

[Today at 01:27:35 AM]

[Today at 01:26:08 AM]

[Today at 01:14:29 AM]

[Today at 01:03:32 AM]

[Today at 12:59:58 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.057 seconds with 23 queries.