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-15 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
January 15, 2010, 08:27:53 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: [Race] Soldier  (Read 235 times)
Kill Me
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 36



WWW

myServer 69.50.209.67:27015
(Warning: click connects through Steam)
« on: August 19, 2009, 03:27:31 PM »

To be honest, I didn't know which of my custom races I should put up. I decided to choose Soldier since the ultimate was very interesting and quite balanced.

Code type: Race
Name: Soldier (From TF2)
Compatible: WCS 0.77, ES 2.0, EST Tools
Dependency: Nothing Really
Description: Basically trying to do my best imitation of TF2 Soldier, I created a successful ultimate, Rocket Jump. I thought it was pretty interesting so I put this one up.
What is Custom:: Ultimate is 90% Custom (I did look at some Warcraft-Source Posts for a few references) but nearly everything was customized by me.

Code:
"8"
{
"name"              "Soldier"
"author"            "Kill Me"
"shortdescription"  "Maggots!"
"required_level"    "0"
"maximum_level"     "0"
"allow_only"        "0"
"teamlimit"         "0"
"preloadcmd"        "0"
"player_spawn_cmd"  "es est_Speed event_var(userid) 0.94;es est_SetHealth event_var(userid) 200;es es_xdelayed 0.5 es est_give event_var(userid) weapon_scout;es es_xdelayed 0.7 es est_give event_var(userid) weapon_deagle"
"round_start_cmd"   "0"
"round_end_cmd"     "0
"numberofskills"    "2"
"numberoflevels"    "8"
"skillnames"        "Rocket Launcher|Rocket Jump"
"skilldescr"        "Do some major damage to the enemy with your Rocket Launcher (Scout Only)|Blast into the air, doing damage to you and enemies close by!"
"skillcfg"          "player_attacker|player_ultimate"

"skill1_setting"    "es_xsetinfo wcs_explosion 25|es_xsetinfo wcs_explosion 28|es_xsetinfo wcs_explosion 31|es_xsetinfo wcs_explosion 34|es_xsetinfo wcs_explosion 37|es_xsetinfo wcs_explosion 40|es_xsetinfo wcs_explosion 45|es_xsetinfo wcs_explosion 50"
"skill1_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_isalive wcs_alive event_var(userid);es es_xif (server_var(wcs_alive) = 1) then es_xif (event_var(weapon) = scout) then racealias_kmsold2"
"racealias_kmsold2" "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es_xmath wcs_z1 + 10;es es_delayed .1 est_pushto event_var(userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) -5;es es_xtell event_var(attacker) #multi #lightgreenRocket Launcher #defaultblows up your enemy and does some damage!;es es_xtell event_var(userid) #multi #lightgreenRocket Launcher #defaulthas blown you back and done some damage!;es est_playplayer server_var(wcs_userid) weapons/hegrenade/explode3.wav;es wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_explosion);racealias_kmsold3"
"racealias_kmsold3""es est_getviewcoord event_var(attacker) wcs_x2 wcs_y2 wcs_z2;es est_getviewcoord event_var(attacker) wcs_x1 wcs_y1 wcs_z1;es_xmath wcs_z1 + 80;es est_effect 11 #a 0 sprites/glow1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 3 1 255;es est_effect 3 #a 0 sprites/bluelight1.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) 3 4 4 175 175 255 255;es est_effect 10 #a 0 glow07.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 40 180 0.3 30 100 0.8 175 175 255 255 1"
"skill1_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);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 es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);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 es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);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 es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);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 es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);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"

"skill2_setting"    "es_xsetinfo wcs_strength 75;es_xsetinfo wcs_blast 25;es_xsetinfo wcs_radius 50|es_xsetinfo wcs_strength 85;es_xsetinfo wcs_blast 24;es_xsetinfo wcs_radius 60|es_xsetinfo wcs_strength 100;es_xsetinfo wcs_blast 24;es_xsetinfo wcs_radius 70|es_xsetinfo wcs_strength 120;es_xsetinfo wcs_blast 23;es_xsetinfo wcs_radius 80|es_xsetinfo wcs_strength 140;es_xsetinfo wcs_blast 23;es_xsetinfo wcs_radius 90|es_xsetinfo wcs_strength 160;es_xsetinfo wcs_blast 22;es_xsetinfo wcs_radius 100|es_xsetinfo wcs_strength 180;es_xsetinfo wcs_blast 21;es_xsetinfo wcs_radius 110|es_xsetinfo wcs_strength 200;es_xsetinfo wcs_blast 20;es_xsetinfo wcs_radius 125"
"skill2_cmd"        "es es_xdoblock wcs/WCSultimates/wcs_ulti_rocketjump;es est_isalive wcs_alive server_var(wcs_userid);es es_xif (server_var(wcs_alive) = 1) then racealias_kmsold"
"racealias_kmsold" "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es es_xmath wcs_z1 - server_var(wcs_strength);es es_xmath wcs_y1 + 1;es es_xdelayed 0.1 es est_pushto server_var(wcs_userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) -5;es es_xtell server_var(wcs_userid) #multi #defaultYou have #greenRocket Jumped #defaultinto the air, losing #greensome health!;es est_playplayer server_var(wcs_userid) weapons/hegrenade/explode3.wav;es wcs_dealdamage server_var(wcs_userid) server_var(wcs_userid) server_var(wcs_blast)"
"skill2_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);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 es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);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 es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);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 es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);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 es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);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"
"ultimate_cooldown" "10|9|8|7|6|5|4|3"
}

The Ultimate Block:

Code:
block wcs_ulti_rocketjump
{
wcs_debuglog wcs_ulti_rocketjump start
  es_xset wcs_team_target 0
  es_getplayerteam wcs_team server_var(wcs_userid)
  // check teams (T=2, CT=3)
  if (server_var(wcs_team) = 2) do
  {
    es_xset wcs_team_target 3
    es_xset wcs_team_targetn "#c!d"
  }
  if (server_var(wcs_team) = 3) do
  {
    es_xset wcs_team_target 2
    es_xset wcs_team_targetn "#t!d"
  }
  if (server_var(wcs_team_target) != "0") do
  {
    es_xset wcs_pcount 0
    es_getlivingplayercount wcs_pcount server_var(wcs_team_target)
    if (server_var(wcs_pcount) > 0) do
    {
      alias wcs_run_ulti_rocket1 "es_xset wcs_immunity 0;es_keygetvalue wcs_immunity WCSuserdata server_var(wcs_targetid) ulti_immunity;if (server_var(wcs_immunity) = 0) then wcs_run_ulti_rocket2;if (server_var(wcs_immunity) != 0) then es_xtell server_var(wcs_userid) #multi server_var(wcs_lng_ulti_immunity_a);if (server_var(wcs_immunity) != 0) then es_xtell server_var(wcs_targetid) #multi server_var(wcs_lng_ulti_immunity_v)"
      alias wcs_run_ulti_rocket2 "es_xmath wcs_counter + 1;es wcs_explode server_var(wcs_userid) server_var(wcs_targetid) server_var(wcs_blast) server_var(wcs_radius)"
      es_xset wcs_counter 0
      es est_Near wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_userid) "es_exists ex userid server_var(wcs_targetid);if (server_var(ex) = 1) then wcs_run_ulti_rocket1"
      // no more needed
      //if (server_var(wcs_counter) > 0) then wcs_explode server_var(wcs_userid) server_var(wcs_userid) server_var(wcs_blast) server_var(wcs_radius)
    }
  }
wcs_debuglog wcs_ulti_rocketjump end
}

So yeah, I'm not completely sure if this race has enough skills but if not, I might remake a race with combined skills of this and another custom race of mines.
« Last Edit: August 19, 2009, 11:44:55 PM by Kill Me » Logged

-|KM|- Kill Me
http://www.killmeservers.com/forums



Periods suck! C
F.o.R
Level 0 Beginner

Offline Offline

Denmark Denmark

Posts: 16


I'm a newb - I do my best - live with it


WWW
furyofrevenge

myServer 77.66.39.20:27050
(Warning: click connects through Steam)
« Reply #1 on: October 26, 2009, 10:20:01 AM »

cool race, i belive it wil be pretty hard to compete with alle the other races, but this race sounds interresting, just GOTTA try it!
Logged

Wating for a new better working version of WCS:Python
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 08:04:25 PM]

[Today at 07:28:23 PM]

by NeSo
[Today at 07:20:35 PM]

[Today at 06:07:34 PM]

[Today at 05:01:54 PM]

[Today at 04:18:29 AM]

[Today at 03:10:50 AM]

[Today at 02:51:49 AM]

[January 14, 2010, 06:58:10 PM]

[January 14, 2010, 03:48:10 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.11 seconds with 25 queries.