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:27:15 PM *
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]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: will this make poison work correctly?  (Read 277 times)
tintinibar
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 107



« on: May 26, 2008, 05:15:32 AM »

 Can you call out for a racealias in the same alias to make a loop? If so, do you need to do a isalive check to stop the loop or will playerdeath do the trick? Here is my half-assed code explaining what I am asking to do.

 poison.txt (0.82 KB - downloaded 18 times.)
Logged
mobsi
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 207



« Reply #1 on: May 26, 2008, 12:23:25 PM »

Code
GeSHi (eventscripts):
 "skill3_setting"    "es_xsetinfo wcs_poison 2|es_xsetinfo wcs_poison 3|es_xsetinfo wcs_poison 3|es_xsetinfo wcs_poison 4|es_xsetinfo wcs_poison 4"
   "racealias_ugp" "es es_xtell event_var(userid) #multi #lightgreenYou got hit by#green event_var(es_attackername) 's Poison ";es es_xdelayed 0.2 wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_poison);es es_xif (server_var(wcs_dice) <= 100)racealias plp"
   "racealias_plp"     "es es_xdelayed 3 wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_poison);es es_xif (server_var(wcs_dice) <= 100)racealias plp"
   "skill3_cmd"        "es es_xif (server_var(wcs_dice) <= 33) then racealias_ugp;es es_xif (server_var(wcs_dice) <= 33) then es_xtell event_var(attacker) #multi #lightgreenYou have #greenpoisoned event_var(es_username) #lightgreen !!"

well thats what stinkyfax created wcs_dalias for

you cant use an delay direktly if you want to make a loop
somehow (i dunno why i just accepted it) the values arent saved if you repeat the racealias or so
->for an detailed expanation ask kryptonite or stinkyfax
anyhow if you want to use a delay use stinkyfax wcs_dalias command
but you have to use the wcs_tmp wcs_tmp2 and so on vars!!

here as example the aura skill
Code
GeSHi (eventscripts):
"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"
Logged

better the devil you know than the devil you don't
Serenkiy Vol4onok
Level 6 Experienced
*****
Offline Offline

Russian Federation

Posts: 137


Never Surrender!!!


« Reply #2 on: May 26, 2008, 02:08:05 PM »

Ok - can someone that way me with Aura that will make Smoke around you when you are walking? I don't know  how
Logged

  ~ Just a Nightfall God
  :
  Steel a soul for a second chance
  But you'll never become a man
[Oddity]TeacherCreature
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 866




bonggged

myServer 208.167.243.228:27015
(Warning: click connects through Steam)
« Reply #3 on: May 26, 2008, 03:34:21 PM »

Um I made that smoke skill about 6 months ago. It is a player_spawn skill.

Code:
    "skill1_setting"    "es_xsetinfo wcs_tmp4 5|es_xsetinfo wcs_tmp4 4|es_xsetinfo wcs_tmp4 3|es_xsetinfo wcs_tmp4 2|es_xsetinfo wcs_tmp4 1"
    "racealias_smk11"   "es_keygetvalue wcs_round WCSuserdata server_var(wcs_tmp2) aura_round;if (server_var(wcs_roundcounter) = server_var(wcs_round)) then es_xdelayed server_var(wcs_tmp4) wcs_dalias racealias_smk12 server_var(wcs_tmp2) 600 5"
    "racealias_smk12"   "es_getplayerprop wcs_dead server_var(wcs_tmp2) CCSPlayer.baseclass.pl.deadflag;if (server_var(wcs_dead) = 0) then racealias_smk13"
    "racealias_smk13"   "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_tmp2);es_xmath wcs_z1 + 15;es est_effect 7 #a 0 sprites/smoke.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 100 10;es_delayed 0.5 es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_tmp2);es_xmath wcs_z1 + 15;es est_effect 7 #a 0 sprites/smoke.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 100 10;es_delayed 0.6 es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_tmp2);es_xmath wcs_z1 + 15;es est_effect 7 #a 0 sprites/smoke.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 100 10;es_delayed 0.7 es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_tmp2);es_xmath wcs_z1 + 15;es est_effect 7 #a 0 sprites/smoke.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 100 10;racealias_smk11"
    "skill1_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_smk11"
    "skill1_sfx"        "0"

The setting of tmp4 is how long of a delay between puffs of smoke.


I also just tried making this for poison. This is a player_attacker skill.
Code:
    "skill3_setting"    "es_setinfo wcs_tmp1 5|es_setinfo wcs_tmp1 6|es_setinfo wcs_tmp1 7|es_setinfo wcs_tmp1 8|es_setinfo wcs_tmp1 10"
    "racealias_psn31"   "es_setinfo wcs_tmp2 0;es_setinfo wcs_tmp3 event_var(attacker);es_setinfo wcs_tmp4 event_var(userid);racealias_psn32"
    "racealias_psn32"   "es_getplayerprop wcs_dead server_var(wcs_tmp4) CCSPlayer.baseclass.pl.deadflag;if (server_var(wcs_dead) = 0) then es_delayed 1 wcs_dalias racealias_psn33"
    "racealias_psn33"   "es_math wcs_tmp2 + 1;if (server_var(wcs_tmp2) < server_var(wcs_tmp1) then racealias_psn34;if (server_var(wcs_tmp2) < server_var(wcs_tmp1) then racealias_psn35"
    "racealias_psn34"   "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_tmp3);es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_tmp4);es est_effect 3 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 1 3 6 0 255 0 255;es est_effect 11 #a 0 sprites/plasma1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 1 1 255"
    "racealias_psn35"   "es_tell server_var(wcs_tmp4) #multi #green Poisoned;es_delayed 0.2 wcs_dealdamage server_var(wcs_tmp3) server_var(wcs_tmp4) 1;racealias_psn32"
    "skill3_cmd"        "if (server_var(wcs_dice) <= 33) then racealias_psn31;if (server_var(wcs_dice) <= 33) then es_tell event_var(attacker) #multi #lightgreen You have #greenpoisoned event_var(es_username)"
    "skill3_sfx"        "0"

I made the skill drop 1 health per second like est_Burn and I added a green flame instead of a red one.
wcs_tmp1 = length of poison in seconds
« Last Edit: May 26, 2008, 05:18:39 PM by [Oddity]TeacherCreature » Logged

Serenkiy Vol4onok
Level 6 Experienced
*****
Offline Offline

Russian Federation

Posts: 137


Never Surrender!!!


« Reply #4 on: May 26, 2008, 07:19:08 PM »

thanks alot=)
Logged

  ~ Just a Nightfall God
  :
  Steel a soul for a second chance
  But you'll never become a man
[Oddity]TeacherCreature
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 866




bonggged

myServer 208.167.243.228:27015
(Warning: click connects through Steam)
« Reply #5 on: May 30, 2008, 01:17:06 PM »

Thats ok just install Dalias and it will work
Logged

tintinibar
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 107



« Reply #6 on: May 31, 2008, 04:47:35 AM »

it isn't working man.
Logged
tintinibar
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 107



« Reply #7 on: June 14, 2008, 06:13:19 AM »

I looked again at my races and don't even know if my dalias works for my dod:s server. Is there a simple way to test dalias?
Logged
[Oddity]TeacherCreature
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 866




bonggged

myServer 208.167.243.228:27015
(Warning: click connects through Steam)
« Reply #8 on: June 14, 2008, 08:46:41 PM »

yea instal my ninja race and see if the speed skill works
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 #9 on: June 15, 2008, 11:34:10 AM »

dalias will support any mod as long as it's installed correctly. There are no specific things which require any mod.
Logged

tintinibar
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 107



« Reply #10 on: June 17, 2008, 04:05:12 AM »

the ninja sped up and slowed down but the poison didn't do anything. It says you poison the guy per the correct dice roll, but the damage never occurs.
« Last Edit: June 17, 2008, 04:12:13 AM by tintinibar » 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 #11 on: August 02, 2008, 09:00:56 PM »

hmm wierd everything should work fine if you did what oddity and everyone else said
Logged

May The Dragons Be With Us
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.15 seconds with 25 queries.