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-12-06 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
December 06, 2008, 12:33:19 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Need help with a slightly different teleport skill  (Read 77 times)
Fechin
Level 0 Beginner

Offline Offline

United States United States

Posts: 19



« on: October 14, 2008, 02:48:11 AM »

Okay, so I was looking at the "Defensive Lunge" skill for TeacherCreature's Shadow Flea race, and I like the idea. But I absolutely abhor the fact that when you do the tele towards someone it puts you right inside them. I was needing to know how I would offset this code to make it where it would move like right behind or beside them instead of directly to their coordinate. Here's the code:

Code:
    "skill3_setting"    "es_xsetinfo wcs_chance 10|es_xsetinfo wcs_chance 20|es_xsetinfo wcs_chance 30|es_xsetinfo wcs_chance 40|es_xsetinfo wcs_chance 50"
    "racealias_shfl31" "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es_delayed 0.3 est_teleport event_var(userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1);es es_delayed 0.6 est_setaim event_var(userid) event_var(attacker) 0;es est_freeze event_var(attacker) 1;es_delayed 1.1 est_freeze event_var(attacker) 0;racealias_shfl32;racealias_shfl33"
    "racealias_shfl32" "es wcs_dealdamage event_var(userid) event_var(attacker) 10;es_tell event_var(userid) : Defensive Lunge;es_tell event_var(attacker) : event_var(es_attackername) Lunged onto you for extra 10 damage, and is BEHIND YOU!"
    "skill3_cmd" "es est_isalive wcs_alive event_var(userid); if (server_var(wcs_alive) = 1) then es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_shfl31"
    "racealias_shfl33" "es est_effect 7 #a 0 sprites/smoke.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 100 10"
    "skill3_sfx"        "0"

I mean, I figure it would have something to do with getting the direction the player is facing (for behind them) and offsetting the tele just a bit, but I don't know if there is an applicable variable or if that's even possible in this mod. I would really appreciate some . I would like to add the offset tele to a couple races, like an assassin style knife class so I could have a slowed down, fully invis, knifer who can teleport behind someone. Of course in that instance it would be an ultimate instead of the whole wcs_chance defining it. But that's a story for another day. First gotta figure this out. Thanks in advance for any . You guys have been very helpful to me so far in my ventures.

P.S. - How do I work on ability cooldowns and tying a skill to a "press ability button" kinda thing that isn't an ultimate. Always wondered about that, cause my faceless void's Time Walk ability is broken and I need to know how to fix it (If it isn't just that whoever gave it to me forgot to include it in the skills database D:)
Logged
EvilGenuix
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 226




xF |:. Evil Genuix |A|
« Reply #1 on: October 14, 2008, 07:25:10 AM »

It might be worth looking at [DotA] Stealth Assassin, Rimiraku, (or I think thats its name) which has a teleport behind them already? Or does that not work for you as it works fine for me?

Thanks,

Evil Genuix
Logged
Fechin
Level 0 Beginner

Offline Offline

United States United States

Posts: 19



« Reply #2 on: October 14, 2008, 09:05:21 PM »

Didn't know there was one. Thanks dude. I'll check it out and see what it does for me.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
December 04, 2008, 09:57:56 PM
gg
December 04, 2008, 09:46:16 PM
hey guys, how are you?
gonna sleep, cya tomorrow
December 03, 2008, 12:45:48 PM
@ bombkill : all mods should be compatible with WCS... but we can't be sure
@retrokboy : css server? provider? other mods?
December 03, 2008, 01:49:25 AM
I NEED SERVER HELP MY FORUM IS IN BUG REPORT PLEASE REPLY I NEED HALP
December 02, 2008, 10:05:01 PM
does anyone know where all the wcs compatible mods are listed or a website i can find them
December 02, 2008, 08:24:47 PM
/agree
Recent
[Today at 09:15:37 AM]

[Today at 08:33:01 AM]

[Today at 12:26:04 AM]

[December 05, 2008, 10:26:03 PM]

[December 05, 2008, 08:10:32 PM]

[December 05, 2008, 07:51:01 PM]

[December 05, 2008, 07:33:12 PM]

[December 05, 2008, 07:11:25 PM]

[December 05, 2008, 06:44:09 PM]

[December 05, 2008, 12:14:07 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.036 seconds with 25 queries.