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 2010-01-16 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
January 16, 2010, 03:05:12 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Please obey the rules, to achieve a pleasent order in our community.
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: [REQ] Radiation Invisibility  (Read 742 times)
Frodo
Level 7 Expert
*****
Offline Offline

Posts: 853


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« on: December 26, 2007, 09:46:00 PM »

Instalation is very simple. This skill is ready to put into race but I DID NOT test it. However, it should work perfectly... I really doubt there are any errors.

Code:
Put this into es_WCSskills.txt - where? Refer to Stinkyfax's HOWTO.

[code]          if (server_var(wcs_tmp) = "warden") do
          {
            es_xsetinfo wcs_params 0
            es_keygetvalue wcs_params WCSuserdata server_var(wcs_userid) "ability_parameter"
          if (server_var(wcs_params) != "0") do
          {
          es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid)
          es_xsetinfo wcs_duration 0
es_token wcs_duration server_var(wcs_params) 1 "_"
          if (server_var(wcs_graphicfx) = 1) do
          {
          es_xcopy wcs_x2 wcs_x1
es_xcopy wcs_y2 wcs_y1
es_xcopy wcs_z2 wcs_z1
es_xmath wcs_z1 + 120
    es est_Effect 11 #a 0 "sprites/purpleglow1.vmt" server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_duration) 2 50
    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) server_var(wcs_duration) 20 20 10 0 255 70
es_xmath wcs_z1 - 120
}
es_token wcs_alpha server_var(wcs_params) 2 "_"
        es_token wcs_radius server_var(wcs_params) 3 "_"
          es wcs_rinvi server_var(wcs_duration) server_var(wcs_alpha) server_var(wcs_radius) server_var(wcs_team_target) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_roundcounter)
          wcs_getlanguage "wcs_lng" "wcs_lng_wardencreated"
          es_tell server_var(wcs_userid) #multi server_var(wcs_lng)
          }
          }
          es_xmath wcs_ability_count - 1
          es_keysetvalue WCSuserdata server_var(wcs_userid) ability_count server_var(wcs_ability_count)
        }
        es_xelse do
        {
        wcs_getlanguage "wcs_lng" "wcs_lng_noability"
        es_tell server_var(wcs_userid) #multi server_var(wcs_lng)
        }
      }
     
Put this into "block load" of es_WCSultimates.txt:


Code:
  es_xexists wcs_exists command wcs_rinvi
  if (server_var(wcs_exists) = 0) then es_xregcmd wcs_rinvi wcs/WCSultimates/wcs_rinvi "Radiation invisibility or smth"

Put this normally somewhere at the end in es_WCSultimates.txt:
     
Code:
block wcs_rinvi
{
if (server_var(wcs_debug) = "1") then echo wcs_rinvi start
es_xsetinfo wcs_duration 0
es_xsetinfo wcs_alpha 0
es_xsetinfo wcs_radius 0
es_xsetinfo wcs_team_target 0
es_xsetinfo wcs_wardenround 0
es_xgetargv wcs_duration 1
es_xgetargv wcs_alpha 2
es_xgetargv wcs_radius 3
es_xgetargv wcs_team_target 4
es_xgetargv wcs_x1 5
es_xgetargv wcs_y1 6
es_xgetargv wcs_z1 7
es_xgetargv wcs_wardenround 8
    es_exists wcs_exists userid server_var(wcs_uid)
    es_getlivingplayercount wcs_alive server_var(wcs_team_target)
    if (server_var(wcs_alive) < 1) then es_xsetinfo wcs_exists 0
    if (server_var(wcs_wardenround) != server_var(wcs_roundcounter)) then es_xsetinfo wcs_duration 0
if (server_var(wcs_exists) = 1) do
{
if (server_var(wcs_duration) > 0) do
{
if (server_var(wcs_radius) != "0") do
{
if (server_var(wcs_team_targetn) != "0") do
{
  es est_Effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 server_var(wcs_radius) 1 20 100 1 255 150 70 100 12
  es_xsetinfo wcs_wall "1"
  alias wcs_run_rinvi "es est_SetPlayerColor server_var(wcs_targetid) 255 255 255 server_var(wcs_alpha)"
  es nearcoord wcs_targetid server_var(wcs_team_targetn) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_radius) server_var(wcs_radius) server_var(wcs_radius) "es_getplayerprop wcs_dead server_var(wcs_targetid) CCSPlayer.baseclass.pl.deadflag;if (server_var(wcs_dead) = 0) then wcs_run_rinvi"
  es_xmath wcs_duration - 3
  es_delayed 3 wcs_rinvi server_var(wcs_duration) server_var(wcs_alpha) server_var(wcs_radius) server_var(wcs_team_target) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_roundcounter)
  }
}
}
}
if (server_var(wcs_debug) = "1") then echo wcs_rinvi end
}

Put this into race - this is when you have 3-level race, please correct settings:

Code:
skillcfg "player_spawn"
//duration.alpha.radius-howmany
skill1_settings "es_xsetinfo wcs_count 1;es_xsetinfo wcs_params 15_100_500|es_xsetinfo wcs_count 1;es_xsetinfo wcs_params 20_75_690|es_xsetinfo wcs_count 1;es_xsetinfo wcs_params 25_50_1000"
skill1_cmd "es_keysetvalue WCSuserdata event_var(userid) ability warden;es_keysetvalue WCSuserdata event_var(userid) ability_count server_var(wcs_count);es_keysetvalue WCSuserdata event_var(userid) ability_parameter server_var(wcs_params)"
[/code]
« Last Edit: December 28, 2007, 06:12:36 PM by Frodo » Logged


Actually I found it as best Bux ever. Everything's automated!
c6464
Guest
« Reply #1 on: December 27, 2007, 10:40:20 AM »

tis does what?
Logged
Crann
Level 1 Trained Beginner
*
Offline Offline

Belgium Belgium

Posts: 36



« Reply #2 on: December 28, 2007, 08:38:09 PM »

Ty,Frodo Cheesy
Logged
Frodo
Level 7 Expert
*****
Offline Offline

Posts: 853


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #3 on: December 28, 2007, 09:57:08 PM »

Yeah, np... Don't forget its not tested  :|

But i don't see any reason it wouldn't work Wink have fun
Logged


Actually I found it as best Bux ever. Everything's automated!
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
January 14, 2010, 06:18:58 PM
here is the topic i created... please put the skills in there: http://warcraft-source.com/board/index.php/topic,9315.0.html
January 14, 2010, 06:15:26 PM
O.K. I started now the project for a new RaceCreator... I will programm it and upload it then.... would be nice if you could make a topic with all skills texno and all others (sepretated in "player_attacker" etc. )
January 14, 2010, 05:30:29 PM
yeah..
January 14, 2010, 04:11:46 PM
Oh i see... not very much skills / ultimates... and just maximum 4 lvl for the skills lol....
January 14, 2010, 04:08:57 PM
thanks, are there any bugs ?? I can't fix it because first : don't have the programm code and second : don't know if he wrote it in C#...^^
January 14, 2010, 11:37:50 AM
Here's the link... maby you can update it Termi ? "http://warcraft-source.com/board/index.php/topic,6199.0.html"

http://warcraft-source.com/board/index.php/topic,6199.0.html
January 13, 2010, 07:26:02 PM
No prob dude
Recent
[Today at 12:56:34 PM]

[Today at 12:12:58 PM]

[Today at 02:12:10 AM]

[Today at 12:02:45 AM]

[January 15, 2010, 11:58:57 PM]

[January 15, 2010, 11:25:21 PM]

[January 15, 2010, 11:04:53 PM]

[January 15, 2010, 10:44:43 PM]

by NeSo
[January 15, 2010, 07:20:35 PM]

[January 15, 2010, 06:07:34 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.087 seconds with 25 queries.