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 2009-07-11 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
July 11, 2009, 02:16:55 AM *
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] 2 3   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: [Oddity]Ironman [MRVL]  (Read 1588 times)
[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Online Online

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« on: August 06, 2008, 09:42:25 PM »

IRON MAN   DISCLAIMER: READ EVERYTHING !!! ~to the bottom of the post~
Anthony Edward "Tony" Stark, after suffering a severe heart injury while being kidnapped, was forced to build a devastating weapon. He instead created a suit of power armor to save his life and help protect the world as the superhero Iron Man. He is a wealthy industrialist and genius inventor who created military weapons and whose metal suit is laden with technological devices that enable him to fight crime.

Skills:
Life Support     -   Any time ironman takes 40 dmg or more in one hsot he heals a chunk of it back from life support
Armor             -    % Chance to have bullets bounce right off of you 50% chance knifers just miss
Pulse Bolts       -   Bind ability to fire straight rockets that do major dmg to enemies in their path
Flame thrower   -  Bind ability1 to burn off a fuel cell. some dmg and burn to you more dmg and burn to close enemies
Jet Boots         -  Fly with Jet boots !

This is a Tricky Install and will require you to read everything and follow my instructions carefully!Installation in 3 PARTS
1. Racefile
2. Ultimate
3. Skills

1. Racefile is normal add it to WCS/WCSraces/es_WCSraces_db.txt
Code:
"##"                                 
  {
    "name"              "Iron Man [MRVL]"         
    "author"            "[Oddity]TeacherCreature"         
    "shortdescription"  "wealthy industrialist and genius inventor"             
    "required_level"    "350"             
    "maximum_level"     "0"           
    "allow_only"        "0"
    "teamlimit"         "0"         
    "preloadcmd"        "0"               
    "player_spawn_cmd"  "es est_removeweapon event_var(userid) 1;es est_removeweapon event_var(userid) 2;es es_xkeysetvalue WCSuserdata event_var(userid) restricted <all>;es_delayed 0.3 est_restrictall event_var(userid);es es_xdelayed 0.5 est_unrestrict event_var(userid) weapon_knife;es es_xdelayed 0.7 est_unrestrict event_var(userid) weapon_c4;es es_xdelayed 0.9 est_unrestrict event_var(userid) item_defuser;es es_xdelayed 1.2 est_give event_var(userid) weapon_knife"             
    "round_start_cmd"   "0"             
    "round_end_cmd"     "0"             
    "numberofskills"    "5"           
    "numberoflevels"    "6"           
    "skillnames"        "Life Support|Armor|Pulse Bolts|Flame thrower|Jet Boots"   
    "skilldescr"        "His armor keeps him alive|Armor makes him hard to hurt|Fire a missile (ability)|Self damaging Flame thrower (ability1)|Fly but not too long"   
    "skillcfg"          "player_victim|player_victim|player_spawn|player_spawn|player_ultimate"     

    "skill1_setting"    "es_xsetinfo wcs_hpback 5|es_xsetinfo wcs_hpback 10|es_xsetinfo wcs_hpback 15|es_xsetinfo wcs_hpback 20|es_xsetinfo wcs_hpback 25|es_xsetinfo wcs_hpback 30"
    "skill1_cmd"        "if (event_var(dmg_health) >= 40) then es est_health event_var(userid) + server_var(wcs_hpback);es est_armoradd event_var(userid) server_var(wcs_hpback);racealias_irnm11"
    "racealias_irnm11"  "es es_xtell event_var(userid) #multi #lightgreenLife Support #default: #greenTaking heavy damage #lightgreen Life Support System #green returns #lightgreen server_var(wcs_hpback) #green HP back"
    "skill1_sfx"        "0"                         

    "skill2_setting"    "es_xsetinfo wcs_chance 5|es_xsetinfo wcs_chance 10|es_xsetinfo wcs_chance 15|es_xsetinfo wcs_chance 20|es_xsetinfo wcs_chance 25|es_xsetinfo wcs_chance 30"     
    "skill2_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_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then racealias_irnm21;es es_xif (server_var(wcs_dice) <= 50) then if (event_var(weapon) = knife) then racealias_irnm21"
    "racealias_irnm21"  "es es_xsetinfo wcs_dmg event_var(dmg_health);es est_health event_var(userid) + event_var(dmg_health);racealias_irnm22"
    "racealias_irnm22"  "es es_xtell event_var(userid) #multi #lightgreenIron Armor #default:#green event_var(es_attackername) attacks you with no results.;es es_xtell event_var(attacker) #multi #lightgreenIron Armor #default:#green event_var(es_username) has heavy armor."
    "skill2_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then est_effect 3 #a 0 sprites/yellowflare.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 5 5 255 255 255 255"   

    "skill3_setting"    "es_xset wcs_count 2;es_xsetinfo wcs_range 10;es_xsetinfo wcs_damage 25|es_xset wcs_count 4;es_xsetinfo wcs_range 20;es_xsetinfo wcs_damage 30|es_xset wcs_count 6;es_xsetinfo wcs_range 30;es_xsetinfo wcs_damage 35|es_xset wcs_count 8;es_xsetinfo wcs_range 40;es_xsetinfo wcs_damage 40|es_xset wcs_count 10;es_xsetinfo wcs_range 50;es_xsetinfo wcs_damage 45|es_xset wcs_count 12;es_xsetinfo wcs_range 50;es_xsetinfo wcs_damage 50"
    "skill3_cmd"        "es_keysetvalue WCSuserdata event_var(userid) ability pulsebolt;es_keysetvalue WCSuserdata event_var(userid) ability_count server_var(wcs_count);es_keysetvalue WCSuserdata event_var(userid) ability_range server_var(wcs_range);es_keysetvalue WCSuserdata event_var(userid) ability_damage server_var(wcs_damage);es_keysetvalue WCSuserdata event_var(userid) ability_cooldown 3"
    "skill3_sfx"        "0"

    "skill4_setting"    "es_xset wcs_xcount 1|es_xset wcs_xcount 1|es_xset wcs_xcount 2|es_xset wcs_xcount 2|es_xset wcs_xcount 3|es_xset wcs_xcount 3"
    "skill4_cmd"        "es est_health event_var(userid) + 50;es_tell event_var(userid) #multi #lightgreenFlame Thrower #default : #green Packing extra Fuel Cells (50 HP);es_keysetvalue WCSuserdata event_var(userid) ability1 flamethrower;es_keysetvalue WCSuserdata event_var(userid) ability_xcount server_var(wcs_xcount);es_keysetvalue WCSuserdata event_var(userid) ability_xrange server_var(wcs_xrange);es_keysetvalue WCSuserdata event_var(userid) ability_xdamage server_var(wcs_xdamage);es_keysetvalue WCSuserdata event_var(userid) ability_cooldown 3"
    "skill4_sfx"        "0"

    "skill5_setting"    "es_xsetinfo wcs_timer 5|es_xsetinfo wcs_timer 6|es_xsetinfo wcs_timer 7|es_xsetinfo wcs_timer 8|es_xsetinfo wcs_timer 9|es_xsetinfo wcs_timer 10"
    "skill5_cmd"        "es_xsetinfo wcs_jetpack 0;es es_xkeygetvalue wcs_jetpack WCSuserdata server_var(wcs_userid) jetpack;es es_xif (server_var(wcs_jetpack) = 1) then racealias_irnm51;es es_xif (server_var(wcs_jetpack) = 0) then racealias_irnm53"
    "racealias_irnm51"  "es est_Jetpack server_var(wcs_userid) 0;es es_xkeysetvalue WCSuserdata server_var(wcs_userid) jetpack 0;racealias_irnm52"
    "racealias_irnm52"  "es es_xtell server_var(wcs_userid) #multi #lightgreenJet Boots #default: #greenDeactivated."
    "racealias_irnm53"  "es est_Jetpack server_var(wcs_userid) 1;es es_xkeysetvalue WCSuserdata server_var(wcs_userid) jetpack 1;racealias_irnm54"
    "racealias_irnm54"  "es es_xtell server_var(wcs_userid) #multi #lightgreenJet Boots #default: #greenActivated. Press your ultimate button again to deactivate."
    "skill5_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 50 1 60 100 0.8 0 255 255 255 1"
    "ultimate_cooldown" "6|5|4|3|2|1"                       
  }

2. Ultimates- This has two parts in the WCS/WCSultimates/es_WCSultimates.txt

Up top where the commands are all registered add this: (you will see where it fits)
Code:
  es_xexists wcs_exists command wcs_pulsebolt
  es es_xif (server_var(wcs_exists) = 0) then es_xregcmd wcs_pulsebolt wcs/WCSultimates/wcs_pulsebolt "wcs_pulsebolt - wcs_pulsebolt <userid> <damage> <radius> - Impact Missile"

Down below with the rest of the blocks just add both of these blocks:
Code:
block wcs_pulsebolt
{
es es_xif (server_var(wcs_debug) = "1") then echo wcs_pulsebolt start

  es_xsetinfo wcs_uid 0
  es_xsetinfo wcs_radius 0
  es_xsetinfo wcs_damage 0

  es_xsetinfo wcs_tmpx 0
  es_xsetinfo wcs_tmpy 0
  es_xsetinfo wcs_tmpz 0
  es_xsetinfo wcs_tmpx1 0
  es_xsetinfo wcs_tmpy1 0
  es_xsetinfo wcs_tmpz1 0
  es_xsetinfo wcs_tmpx2 0
  es_xsetinfo wcs_tmpy2 0
  es_xsetinfo wcs_tmpz2 0
  es_xsetinfo wcs_tmpx3 0
  es_xsetinfo wcs_tmpy3 0
  es_xsetinfo wcs_tmpz3 0
  es_xsetinfo wcs_tmpx4 0
  es_xsetinfo wcs_tmpy4 0
  es_xsetinfo wcs_tmpz4 0
  es_xsetinfo wcs_tmpx5 0
  es_xsetinfo wcs_tmpy5 0
  es_xsetinfo wcs_tmpz5 0
  es_xsetinfo wcs_tmpx6 0
  es_xsetinfo wcs_tmpy6 0
  es_xsetinfo wcs_tmpz6 0
  es_xsetinfo wcs_tmpx7 0
  es_xsetinfo wcs_tmpy7 0
  es_xsetinfo wcs_tmpz7 0

  es_xgetargv wcs_uid 1
  es_xgetargv wcs_damage 2
  es_xgetargv wcs_radius 3

es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_uid)
es est_getviewcoord server_var(wcs_uid) wcs_x2 wcs_y2 wcs_z2

es_xsetinfo wcs_tmpx wcs_x2
es_xsetinfo wcs_tmpy wcs_y2
es_xsetinfo wcs_tmpz wcs_z2

es_math wcs_tmpx + server_var(wcs_x1)
es_math wcs_tmpy + server_var(wcs_y1)
es_math wcs_tmpz + server_var(wcs_z1)


es_xsetinfo wcs_tmpx1 wcs_tmpx
es_xsetinfo wcs_tmpy1 wcs_tmpy
es_xsetinfo wcs_tmpz1 wcs_tmpz
es_math wcs_tmpx1 / 8
es_math wcs_tmpy1 / 8
es_math wcs_tmpz1 / 8

es_xsetinfo wcs_tmpx2 wcs_tmpx
es_xsetinfo wcs_tmpy2 wcs_tmpy
es_xsetinfo wcs_tmpz2 wcs_tmpz
es_math wcs_tmpx2 / 4
es_math wcs_tmpy2 / 4
es_math wcs_tmpz2 / 4
es_xsetinfo wcs_tmpx4 wcs_tmpx
es_xsetinfo wcs_tmpy4 wcs_tmpy
es_xsetinfo wcs_tmpz4 wcs_tmpz
es_math wcs_tmpx4 / 2
es_math wcs_tmpy4 / 2
es_math wcs_tmpz4 / 2

es_xsetinfo wcs_tmpx3 wcs_tmpx2
es_xsetinfo wcs_tmpy3 wcs_tmpy2
es_xsetinfo wcs_tmpz3 wcs_tmpz2
es_math wcs_tmpx3 + server_var(wcs_tmpx4)
es_math wcs_tmpy3 + server_var(wcs_tmpy4)
es_math wcs_tmpz3 + server_var(wcs_tmpz4)
es_math wcs_tmpx3 / 2
es_math wcs_tmpy3 / 2
es_math wcs_tmpz3 / 2

es_xsetinfo wcs_tmpx6 wcs_tmpx2
es_xsetinfo wcs_tmpy6 wcs_tmpy2
es_xsetinfo wcs_tmpz6 wcs_tmpz2
es_math wcs_tmpx6 + server_var(wcs_x2)
es_math wcs_tmpy6 + server_var(wcs_y2)
es_math wcs_tmpz6 + server_var(wcs_z2)
es_math wcs_tmpx6 / 2
es_math wcs_tmpy6 / 2
es_math wcs_tmpz6 / 2


es_xsetinfo wcs_tmpx5 wcs_tmpx2
es_xsetinfo wcs_tmpy5 wcs_tmpy2
es_xsetinfo wcs_tmpz5 wcs_tmpz2
es_math wcs_tmpx5 + server_var(wcs_tmpx6)
es_math wcs_tmpy5 + server_var(wcs_tmpy6)
es_math wcs_tmpz5 + server_var(wcs_tmpz6)
es_math wcs_tmpx5 / 2
es_math wcs_tmpy5 / 2
es_math wcs_tmpz5 / 2

es_xsetinfo wcs_tmpx7 wcs_tmpx6
es_xsetinfo wcs_tmpy7 wcs_tmpy6
es_xsetinfo wcs_tmpz7 wcs_tmpz6
es_math wcs_tmpx7 + server_var(wcs_x2)
es_math wcs_tmpy7 + server_var(wcs_y2)
es_math wcs_tmpz7 + server_var(wcs_z2)
es_math wcs_tmpx7 / 2
es_math wcs_tmpy7 / 2
es_math wcs_tmpz7 / 2

  es_xsetinfo wcs_team_target 0
  es es_xgetplayerteam wcs_team server_var(wcs_userid)
  // check teams (T=2, CT=3)
  es es_xif (server_var(wcs_team) = 2) do
  {
    es_xsetinfo wcs_team_target 3
    es_xsetinfo wcs_team_targetn "#c!d"
  }
  es es_xif (server_var(wcs_team) = 3) do
  {
    es_xsetinfo wcs_team_target 2
    es_xsetinfo wcs_team_targetn "#t!d"
  }
  es es_xif (server_var(wcs_team_target) != "0") do
  {
    es est_Fade server_var(wcs_uid) 0.1 1 1 200 200 240 40
alias wcs_run_pulsebolt1 "es wcs_explode server_var(wcs_uid) server_var(wcs_targetid) server_var(wcs_damage) server_var(wcs_radius);es est_playplayer server_var(wcs_uid) weapons/mortar/mortar_explode2.wav;es est_playplayer server_var(wcs_targetid) weapons/mortar/mortar_explode2.wav;wcs_run_pulsebolt2;wcs_run_pulsebolt3"
alias wcs_run_pulsebolt2 "es_tell server_var(wcs_targetid) #multi #lightgreenPulse Bolt #default : #green You were rocked by a #lightgreen Missile #green Bitch!"
alias wcs_run_pulsebolt3 "es_tell server_var(wcs_uid) #multi #lightgreenPulse Bolt #default : #green You rocked the enemy with a #lightgreen Missile #green Pwned!"

es est_NearCoord wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_tmpx1) server_var(wcs_tmpy1) server_var(wcs_tmpz1) "es es_xexists wcs_exists userid server_var(wcs_targetid);es es_xif (server_var(wcs_exists) = 1) then wcs_run_pulsebolt1"
es est_NearCoord wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_tmpx2) server_var(wcs_tmpy2) server_var(wcs_tmpz2) "es es_xexists wcs_exists userid server_var(wcs_targetid);es es_xif (server_var(wcs_exists) = 1) then wcs_run_pulsebolt1"
es est_NearCoord wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_tmpx3) server_var(wcs_tmpy3) server_var(wcs_tmpz3) "es es_xexists wcs_exists userid server_var(wcs_targetid);es es_xif (server_var(wcs_exists) = 1) then wcs_run_pulsebolt1"
es est_NearCoord wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_tmpx4) server_var(wcs_tmpy4) server_var(wcs_tmpz4) "es es_xexists wcs_exists userid server_var(wcs_targetid);es es_xif (server_var(wcs_exists) = 1) then wcs_run_pulsebolt1"
es est_NearCoord wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_tmpx5) server_var(wcs_tmpy5) server_var(wcs_tmpz5) "es es_xexists wcs_exists userid server_var(wcs_targetid);es es_xif (server_var(wcs_exists) = 1) then wcs_run_pulsebolt1"
es est_NearCoord wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_tmpx6) server_var(wcs_tmpy6) server_var(wcs_tmpz6) "es es_xexists wcs_exists userid server_var(wcs_targetid);es es_xif (server_var(wcs_exists) = 1) then wcs_run_pulsebolt1"
es est_NearCoord wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_tmpx7) server_var(wcs_tmpy7) server_var(wcs_tmpz7) "es es_xexists wcs_exists userid server_var(wcs_targetid);es es_xif (server_var(wcs_exists) = 1) then wcs_run_pulsebolt1"
es est_NearCoord wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) "es es_xexists wcs_exists userid server_var(wcs_targetid);es es_xif (server_var(wcs_exists) = 1) then wcs_run_pulsebolt1"
  }
es es_xif (server_var(wcs_debug) = "1") then echo wcs_pulsebolt end
}
and
Code:
block wcs_flamer
{
es es_xif (server_var(wcs_debug) = "1") then echo wcs_flamer start
  es_xsetinfo wcs_team_target 0
  es es_xgetplayerteam wcs_team server_var(wcs_userid)
  // check teams (T=2, CT=3)
  es es_xif (server_var(wcs_team) = 2) do
  {
    es_xsetinfo wcs_team_target 3
    es_xsetinfo wcs_team_targetn "#c!d"
  }
  es es_xif (server_var(wcs_team) = 3) do
  {
    es_xsetinfo wcs_team_target 2
    es_xsetinfo wcs_team_targetn "#t!d"
  }
  es es_xif (server_var(wcs_team_target) != "0") do
  {
    es_xsetinfo wcs_pcount 0
    es es_xgetlivingplayercount wcs_pcount server_var(wcs_team_target)
    es es_xif (server_var(wcs_pcount) > 0) do
    {
    es est_Fade server_var(wcs_userid) 0 1 1 80 10 10 200
    es_xsetinfo wcs_wall "1"
      alias wcs_run_flamer1 "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_targetid);es est_getwallbetween wcs_wall server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2);es es_xif (server_var(wcs_wall) = 0) then wcs_run_flamer2"
      alias wcs_run_flamer2 "wcs_run_flamer3;wcs_run_flamer4"
      alias wcs_run_flamer4 "es est_effect 10 #a 2.5 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 500 2 100 300 1.8 255 150 150 255 1;es est_effect 10 #a 2.5 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 500 2 100 300 3.8 255 50 50 255 5;es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_targetid);es est_effect 10 #a 2.5 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 30 50 3 50 100 2 255 75 25 255 2"
      alias wcs_run_flamer3 "es_xmath wcs_counter + 1;es es_xif (server_var(wcs_graphicfx) = 1) then es est_effect 3 #a 2.5 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) 2 13 16 255 75 25 255;es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);wcs_run_flamer5;es wcs_dealdamage server_var(wcs_userid) server_var(wcs_userid) 10"
      alias wcs_run_flamer5 "es wcs_dealdamage server_var(wcs_userid) server_var(wcs_targetid) 25;es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_targetid);es_xmath wcs_z2 + 45;es_xmath wcs_z1 + 45;es est_effect 10 #a 0 sprites/smoke.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 2 16 1.3 100 200 0 255 25 25 255 0;es_delayed 1.3 est_effect 10 #a 0 sprites/smoke.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 2 5009 .3 100 200 2 255 25 25 255 0;es est_burn server_var(wcs_targetid) 5;es est_burn server_var(wcs_userid) 1.5"
      es_xsetinfo wcs_counter 0
      es est_Near wcs_targetid server_var(wcs_team_targetn) 450 server_var(wcs_userid) "es es_xexists wcs_exists userid server_var(wcs_targetid);es es_xif (server_var(wcs_exists) = 1) then wcs_run_flamer1"
      es es_xif (server_var(wcs_counter) > 0) do
      {
        es es_xtell server_var(wcs_userid) #multi #lightgreenFlame Thrower #default: #greenYou FREEZE#lightgreen server_var(wcs_counter) #greenplayers.
      }
      es_xelse do
      {
        es_xsetinfo wcs_ultinotexec 1
      }
    }
    es_xelse do
    {
      es_xsetinfo wcs_ultinotexec 1
    }
  }
  es es_xif (server_var(wcs_ultinotexec) = 1) then es_xtell server_var(wcs_userid) #multi #lightgreenFlame Thrower #default: #greenThere are no players in range to burn.
es es_xif (server_var(wcs_debug) = "1") then echo wcs_flamer end
}

3. SKills - This goes in the WCS/WCSfunctions/WCSskills/es_WCSskills.txt

Part 1 up top This is to register the ability1
Code:
  es_xexists wcs_exists command ability1
  es es_xif (server_var(wcs_exists) = 0) then es_xregsaycmd ability1 wcs/WCSfunctions/WCSskills/wcs_ability1 "Command for special abilities"
  es_xregclientcmd ability wcs/WCSfunctions/WCSskills/wcs_ability1 "Command for special abilities"

This part goes in the middle of the ability block:

Find this string of words: "wcs_ability_count WCSuserdata server_var(wcs_userid) ability_count"
Right below that your gonna add this code:
Code:
        es es_xif (server_var(wcs_ability_count) > 0) do
        {
          es es_xif (server_var(wcs_tmp) = "pulsebolt") do
          {
            es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid)
            es es_xif (server_var(wcs_graphicfx) = 1) do
          {
                            es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid)
                            es est_getviewcoord server_var(wcs_userid) wcs_x2 wcs_y2 wcs_z2
                            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) 2 15 19 54 66 120 150
}
                    es_xsetinfo wcs_ability_damage 0
                    es es_xkeygetvalue wcs_ability_damage WCSuserdata server_var(wcs_userid) ability_damage
                    es_xsetinfo wcs_ability_range 0
                    es es_xkeygetvalue wcs_ability_range WCSuserdata server_var(wcs_userid) ability_range
                    es wcs_pulsebolt server_var(wcs_userid) server_var(wcs_ability_damage) server_var(wcs_ability_range)
          }
          es_xmath wcs_ability_count - 1
          es es_xkeysetvalue WCSuserdata server_var(wcs_userid) ability_count server_var(wcs_ability_count)
  es es_xtell server_var(wcs_userid) #multi #lightgreenPulse Bolt #default: #green Missile Fired! #lightgreen you have #green server_var(wcs_ability_count) #lightgreen missles left!
        }
        es_xelse do
        {
  es es_xtell server_var(wcs_userid) #multi #lightgreenPulse Bolt #default: #green You have no more missiles!
        }
      }

Then at the bottom of the file add this block seperately:
Code:
block wcs_ability1
{
es es_xif (server_var(wcs_debug) = 1) then profile begin ability1
  // first, is it a custom command ?
  es_xsetinfo wcs_userid 0
  es_xgetargv wcs_userid 1
  es es_xexists wcs_exists userid server_var(wcs_userid)
  es es_xif (server_var(wcs_exists) = 0) do
  {
    // or a say command
    es_xgetcmduserid wcs_userid
    es es_xexists wcs_exists userid server_var(wcs_userid)
  }
  es es_xgetplayerprop wcs_dead server_var(wcs_userid) "CCSPlayer.baseclass.pl.deadflag"
  es es_xif (server_var(wcs_dead) = "1") then es_xsetinfo wcs_exists 0
  es_xcopy wcs_ulti_allow wcs_gamestarted
  //es es_xif (server_var(wcs_game) != server_var(wcs_game_css)) then es_xsetinfo wcs_ulti_allow 1
  es es_xif (server_var(wcs_ulti_allow) != "1") then es_xsetinfo wcs_exists 0
  es es_xif (server_var(wcs_exists) = 1) do
  {
    es es_xexists wcs_exists key WCSuserdata server_var(wcs_userid)
    es es_xif (server_var(wcs_exists) = 1) do
    {
      es es_xkeygetvalue wcs_tmp WCSuserdata server_var(wcs_userid) "ability1"
      es es_xif (server_var(wcs_tmp) in "flamethrower") do
      {
        es_xsetinfo wcs_ability_xcount 0
        es es_xkeygetvalue wcs_ability_xcount WCSuserdata server_var(wcs_userid) ability_xcount
        es es_xif (server_var(wcs_ability_xcount) > 0) do
        {
          es es_xif (server_var(wcs_tmp) = "flamethrower") do
          {
                  es es_xdoblock wcs/WCSultimates/wcs_flamer
          }
          es_xmath wcs_ability_xcount - 1
          es es_xkeysetvalue WCSuserdata server_var(wcs_userid) ability_xcount server_var(wcs_ability_xcount)
  es es_xtell server_var(wcs_userid) #multi #lightgreenFlame Thrower #default: #green You ignite fuel cell! #lightgreen you have #green server_var(wcs_ability_xcount) #lightgreen cells left!
        }
        es_xelse do
        {
  es es_xtell server_var(wcs_userid) #multi #lightgreenFlame Thrower #default: #green You are out of fuel cells!
        }
      }
    }
  }
es es_xif (server_var(wcs_debug) = 1) then profile end ability1
}

ENJOY
« Last Edit: September 29, 2008, 09:20:10 PM by [Oddity]TeacherCreature » Logged

Shaper
Level 5 Trained Intermediate
*****
Offline Offline

United Kingdom

Posts: 111




lfcliam
« Reply #1 on: August 06, 2008, 11:26:56 PM »

This race owns i helped test the rockets skill and it works perfectly, i suggest you try it
Logged
[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Online Online

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #2 on: August 07, 2008, 04:46:40 PM »

BTW the missile skill required so muc h math omg...

There was no way to create a skill that makes a straight line and does dmg along the way.... (maybe there is and I just don't know how to use vectors)

But this skill can be used and altered to make ray beams, rockets, any straight shooting skill that u want..

I basically took the direction the player was aiming and mathed the line between him and his view point into 8 seperate points along that line.
and then est_near each point - very useful

This way u dont only check viewplayer... u can do dmg to everyone along the way... u could also check anyone near a certain point along the way.. like a true rocket

« Last Edit: August 07, 2008, 04:48:25 PM by [Oddity]TeacherCreature » Logged

Stinkyfax
I <3 WCS
Watchdogs
Level 7 Master
*****
Offline Offline

United Kingdom

Posts: 1823



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #3 on: August 07, 2008, 07:26:00 PM »

The skill like "pulse bolt" was coded and used in few of my races already. Actually i did it check every ~300 points of distance with radious of 300 so that target in 70% staying on the route of skill takes 2x dmg (just divide the dmg in wcs_dmg info twice for removing imbaness) But nice to see smbody else did it also.
Logged



[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Online Online

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #4 on: August 07, 2008, 10:05:10 PM »

how did u do it every 300 ?

did u divide alot of coords like I did ?
Logged

ccoo10
Level 0 Beginner

Offline Offline

United Kingdom

Posts: 10


i love warcraft and always will :D



ccoo10

myServer 89.145.98.60:27015
(Warning: click connects through Steam)
« Reply #5 on: September 29, 2008, 10:44:20 AM »

where is es es_xkeygetvalue wcs_ability_count WCSuserdata server_var(wcs_userid) ability_count i cannot find it in my es_WCSskills.txt plz can u help :?:
 
-ccoo10  :lol:
Logged

"death comes for all, it always has"

-ccoo10 happy to reply to all! =D
[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Online Online

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #6 on: September 29, 2008, 04:23:41 PM »

I beleive it is in the ability block !
Logged

EvilGenuix
Level 6 Experienced
******
Offline Offline

United Kingdom

Posts: 224




xF |:. Evil Genuix |A|
« Reply #7 on: September 29, 2008, 04:29:50 PM »

I beleive it is in the ability block !

By default it is es_keygetvalue wcs_ability etc.. I think, it doesnt have the es_x part, just search for the ability_count and you will find only one instance of it in the skills file unless you have added other stuff,

Evil Genuix
Logged
[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Online Online

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #8 on: September 29, 2008, 09:19:17 PM »

ah thank you I will note that in the original !
Logged

EvilGenuix
Level 6 Experienced
******
Offline Offline

United Kingdom

Posts: 224




xF |:. Evil Genuix |A|
« Reply #9 on: September 29, 2008, 09:28:02 PM »

ah thank you I will note that in the original !

No problem, btw the ability cooldown you have doesnt do anything, I have coded one in myself I think, once I test it I can post it here if you want, (dont know if you meant to add a cooldown or not)?

Thanks,

Evil Genuix
Logged
ccoo10
Level 0 Beginner

Offline Offline

United Kingdom

Posts: 10


i love warcraft and always will :D



ccoo10

myServer 89.145.98.60:27015
(Warning: click connects through Steam)
« Reply #10 on: September 29, 2008, 09:50:44 PM »

ty both oddity and evilgenuix  :mrgreen:

 Cheesy love your ideas oddity keep up the good work!

-ccoo10
Logged

"death comes for all, it always has"

-ccoo10 happy to reply to all! =D
ccoo10
Level 0 Beginner

Offline Offline

United Kingdom

Posts: 10


i love warcraft and always will :D



ccoo10

myServer 89.145.98.60:27015
(Warning: click connects through Steam)
« Reply #11 on: September 29, 2008, 09:53:35 PM »

Also oddity i was just wonderign when your werewolf race will be finished Wink?
it looks like a really good 1 and i would love it on my server!  Cheesy

-ccoo10
Logged

"death comes for all, it always has"

-ccoo10 happy to reply to all! =D
necron
Level 0 Beginner

Offline Offline

Australia Australia

Posts: 3




defencejobs3
« Reply #12 on: November 16, 2008, 11:41:45 AM »

i keep getting the message " You have no additional ability point." when i try to fire the rockets, can someone help me pls?
Logged
RedRage
Level 4 Intermediate
****
Offline Offline

Canada Canada

Posts: 80



« Reply #13 on: November 16, 2008, 07:05:04 PM »

I get that too. Ahhh to bad, every other skill works fine.
Logged
[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Online Online

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #14 on: November 17, 2008, 02:06:09 AM »

That means  you installed it wrong !

Reinstall, becasue it works fine! if not add more.

wcs_count in the setting line is the quantity of rockets
Logged

Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
July 10, 2009, 02:22:30 PM
go in a forum; go into a topic; down below youll find a reply button
July 10, 2009, 02:15:52 PM
can anyone help me i dont know how to post posts.
July 10, 2009, 02:15:40 PM
sup fellas
July 10, 2009, 01:39:30 PM
dashi619 read pm i send you
July 10, 2009, 12:48:28 PM
help?
July 10, 2009, 10:22:56 AM
ME Tongue
July 10, 2009, 09:49:06 AM
SOMEONE HELP?HuhHuhHuh i need coding help BAD its an emergancy
 my steam name is
$$$$NJO$$$$ Dashi
add me
Recent
[Today at 05:47:29 AM]

[July 10, 2009, 11:23:43 PM]

[July 10, 2009, 09:53:21 PM]

[July 10, 2009, 08:14:56 PM]

[July 10, 2009, 06:37:15 PM]

[July 10, 2009, 06:26:05 PM]

by M.R.
[July 10, 2009, 05:46:53 PM]

[July 10, 2009, 05:21:07 PM]

by maze
[July 10, 2009, 03:47:19 PM]

[July 10, 2009, 01:38:27 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.122 seconds with 27 queries.