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:17:50 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Remember to check on the FAQ before start posting.
It may save you time and effort.
Also here is the WCS Wiki!
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: AOE(area of effect) slow skill  (Read 214 times)
seconds
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 83



« on: June 09, 2008, 10:08:47 AM »

ok iv heard lots of people say ... thats alredy been made... yet iv never seen it and dont bieleve its on this forum anywere so ima try and desifer how to use est_near so i can make it... this is where im gona need

to quote oddity's sniper race
Code:
"skill3_setting"    "es_xsetinfo wcs_tmp4 0.2;es_xsetinfo wcs_tmp3 500|es_xsetinfo wcs_tmp4 0.3;es_xsetinfo wcs_tmp3 600|es_xsetinfo wcs_tmp4 0.4;es_xsetinfo wcs_tmp3 700|es_xsetinfo wcs_tmp4 0.5;es_xsetinfo wcs_tmp3 800|es_xsetinfo wcs_tmp4 0.6;es_xsetinfo wcs_tmp3 900"
    "racealias_snp31"   "es_keygetvalue wcs_round WCSuserdata server_var(wcs_tmp2) aura_round;if (server_var(wcs_roundcounter) = server_var(wcs_round)) then es_xdelayed 1 wcs_dalias racealias_snp32 server_var(wcs_tmp2) server_var(wcs_tmp3) server_var(wcs_tmp4)"
    "racealias_snp32"   "es_getplayerprop wcs_dead server_var(wcs_tmp2) CCSPlayer.baseclass.pl.deadflag;if (server_var(wcs_dead) = 0) then racealias_snp33"
    "racealias_snp33"   "es_getplayerteam wcs_team server_var(wcs_tmp2);if (server_var(wcs_team) = 2) then es_xsetinfo wcs_team #c!d;if (server_var(wcs_team) = 3) then es_xsetinfo wcs_team #t!d;es est_Near wcs_targetid server_var(wcs_team) server_var(wcs_tmp3) server_var(wcs_tmp2) racealias_snp34;racealias_snp31"
    "racealias_snp34"   "es es_xgetplayername wcs_name server_var(wcs_targetid);es ma_beacon server_var(wcs_name) 1;es es_xdelayed server_var(wcs_tmp4) ma_beacon server_var(wcs_name) 0;es_tell server_var(wcs_tmp2) Spotted server_var(wcs_name);es_tell server_var(wcs_name) Sniper spotted you"
    "skill3_cmd"        "es_xsetinfo wcs_round 0;es_keysetvalue WCSUserdata event_var(userid) aura_round server_var(wcs_roundcounter);es_setinfo wcs_tmp2 event_var(userid);racealias_snp31"
    "skill3_sfx"        "0"

ok so my understanding is that this is the flag needed "CCSPlayer.baseclass.pl.deadflag" and this is how its applyed? "es_getplayerprop wcs_dead server_var(wcs_tmp2)" the flag is all im realy not shur about so if someone could go into how its done in some detail id appriciate it

after i get the est_near to work its a simple matter of making aliases that do slow... and if i get that working ill make some AOE burn or banish and even a shake set of skills


SIDE NOTE!!!

im going to be making a race pack for element based races and was wondering if any one would be interested in hosting the full pack??? it will start out rather small... only maybe 30 races but after i get better at the way im coding these(and have more time to spare) ill be adding very different things to the whole set... fist off tho ill be releasing a race called "Uber Leet HaXx" who will prdy much be the poster boy so to speak for the packs consept... the race will be realy fun and it will talk shit to anyone whome it touches or touches it (completion is expected to be around 1 Week if i cant get it tested right away...)
« Last Edit: June 09, 2008, 10:14:25 AM by seconds » Logged
Stinkyfax
Watchdogs
Level 7 Expert
*****
Offline Offline

Lithuania Lithuania

Posts: 1382



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #1 on: June 09, 2008, 11:03:44 AM »

what exactly u're not sure in?
here is skill of race coded ages before:
Quote
"skill3_setting"    "es_xsetinfo wcs_tmp4 2;es_xsetinfo wcs_tmp3 300|es_xsetinfo wcs_tmp4 3;es_xsetinfo wcs_tmp3 340|es_xsetinfo wcs_tmp4 4;;es_xsetinfo wcs_tmp3 380|es_xsetinfo wcs_tmp4 5;es_xsetinfo wcs_tmp3 410|es_xsetinfo wcs_tmp4 6;es_xsetinfo wcs_tmp3 435"
    "racealias_1p32"    "es_getplayerprop wcs_dead server_var(wcs_tmp2) CCSPlayer.baseclass.pl.deadflag;if (server_var(wcs_dead) = 0) then racealias_1p33"
    "racealias_1p33"    "es_getplayerteam wcs_team server_var(wcs_tmp2);if (server_var(wcs_team) = 2) then es_xsetinfo wcs_team #c!d;if (server_var(wcs_team) = 3) then es_xsetinfo wcs_team #t!d;es est_Near wcs_targetid server_var(wcs_team) server_var(wcs_tmp3) server_var(wcs_tmp2) racealias_1p34;racealias_1p31"
    "racealias_1p34"    "es_playsound server_var(wcs_targetid) npc/combine_gunship/ping_search.wav 0.6;es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_targetid);es_xmath wcs_z1 + 50;es est_effect 11 #a 0 effects/ar2_altfire1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 0.7 0.5 255;es est_effect 11 #a 0 sprites/physring1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 0.7 0.8 255;es_getplayername wcs_name server_var(wcs_targetid);es_getplayername wcs_name2 server_var(wcs_tmp2);es wcs_dealdamage server_var(wcs_tmp2) server_var(wcs_targetid) server_var(wcs_tmp4);es_tell server_var(wcs_tmp2) Your Aura damaged server_var(wcs_name) for server_var(wcs_tmp4);es_tell server_var(wcs_targetid) Aura from server_var(wcs_name2) damaged you for server_var(wcs_tmp4), run away if you don't want get aura damage."
    "racealias_1p31"    "es_keygetvalue wcs_round WCSuserdata server_var(wcs_tmp2) aura_round;if (server_var(wcs_roundcounter) = server_var(wcs_round)) then es_xdelayed 1.7 wcs_dalias racealias_1p32 server_var(wcs_tmp2) server_var(wcs_tmp3) server_var(wcs_tmp4)"
    "skill3_cmd"        "es_xsetinfo wcs_name2 0;es_xsetinfo wcs_round 0;es_keysetvalue WCSUserdata event_var(userid) aura_round server_var(wcs_roundcounter);es_setinfo wcs_tmp2 event_var(userid);racealias_1p31"
    "skill3_sfx"        "0"
Just modify
Quote
wcs_dealdamage server_var(wcs_tmp2) server_var(wcs_targetid) server_var(wcs_tmp4)
to slow down and es_delayed remove slow... that's all u need...
wcs_tmp2 is some kind of "attacker", owner of aura.
wcs_targetid is targets who are close to aura.
Logged

seconds
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 83



« Reply #2 on: June 09, 2008, 10:26:57 PM »

what im unshur of is if im looking at it right

Code:
"es_getplayerprop wcs_dead server_var(wcs_tmp2) CCSPlayer.baseclass.pl.deadflag;if (server_var(wcs_dead) = 0) then racealias_1p33"

this flags them to check if they are dead then uses the same flag later on to use near?
Logged
Stinkyfax
Watchdogs
Level 7 Expert
*****
Offline Offline

Lithuania Lithuania

Posts: 1382



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #3 on: June 09, 2008, 11:32:43 PM »

es_getplayerprop wcs_dead server_var(wcs_tmp2) CCSPlayer.baseclass.pl.deadflag
returns 1 if wcs_tmp2 is dead, 0 if alive
if (server_var(wcs_dead) = 0) then racealias_1p33"
executes 1p33 if wcs_dead  (meaning out - alive wcs_tmp2)
Logged

Wizey
Level 3 Trained Apprentice
***
Offline Offline

United Kingdom

Posts: 66




eden_112
None

myServer 89.145.117.136:27015
(Warning: click connects through Steam)
« Reply #4 on: August 02, 2008, 09:07:35 PM »

it works
Logged

May The Dragons Be With Us
Fechin
Level 0 Beginner

Offline Offline

United States United States

Posts: 19



« Reply #5 on: October 13, 2008, 02:48:00 PM »

I was looking through this and really like the idea but had a question since I'm new to the coding thing. How exactly would I set up the delay to get rid of the slow effect? I tried using a freeze on a different race but kinda screwed up and made it freeze permanently XD I forgot to do any kind of delay and remove feature cause I don't quite know the code for that yet. Any would be grand.
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.047 seconds with 27 queries.