// The Flame Predator
// for WCS v0.75+
// copy&paste this lines in es_WCSraces_db.txt
// check the following syntax:
//
//    "10"
//    {
//      <code>
//    }
//    "11"
//    {
//      "name" "Flame Predator"
//      <and so on...predator code>...
//    }
//  }
//
// The last "}" is very important !!
// Start copy&paste after this line:

  "11"
  {
    "name"              "wcs_lng_r_predator"
    "author"            "Kryptonite/Fast.Food"
    "shortdescription"  "wcs_lng_r_predator_descr"
    "required_level"    "80"
    "maximum_level"     "0"
    "allow_only"        "0"
    "teamlimit"         "2"
    "preloadcmd"        "0"
    "player_spawn_cmd"  "es es_xkeysetvalue WCSuserdata event_var(userid) restricted <all>;es es_xdelayed 0.5 est_removeweapon event_var(userid) 1;es es_xdelayed 0.6 est_removeweapon event_var(userid) 2;es es_xdelayed 1.1 est_RestrictAll event_var(userid);es es_xif (server_var(wcs_game) = server_var(wcs_game_css)) then racealias_fp_css;es es_xif (server_var(wcs_game) = server_var(wcs_game_dods)) then racealias_fp_dods;es wcs_givexp event_var(userid) 10 0 0"
    "racealias_fp_css"  "es es_xdelayed 1.4 est_unrestrict event_var(userid) weapon_knife;es es_xdelayed 1.5 est_unrestrict event_var(userid) weapon_c4;es es_xdelayed 1.6 est_unrestrict event_var(userid) weapon_hegrenade;es es_xdelayed 1.7 est_unrestrict event_var(userid) weapon_smokegrenade;es es_xdelayed 1.8 est_unrestrict event_var(userid) weapon_flashbang;es es_xdelayed 1.9 es_give event_var(userid) weapon_knife"
    "racealias_fp_dods" "es es_xdelayed 0.7 est_removeweapon event_var(userid) 3;es es_xdelayed 0.8 est_removeweapon event_var(userid) 4;es es_xdelayed 1.4 est_unrestrict event_var(userid) weapon_spade"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "6"
    "numberoflevels"    "4"
    "skillnames"        "wcs_lng_r_predator_skilln"
    "skilldescr"        "wcs_lng_r_predator_skilld"
    "skillcfg"          "player_spawn|player_spawn|player_spawn|player_attacker|player_attacker|player_death"

    "skill1_setting"    "es_xsetinfo wcs_speed 1.45;es_xsetinfo wcs_hp 25|es_xsetinfo wcs_speed 1.5;es_xsetinfo wcs_hp 30|es_xsetinfo wcs_speed 1.55;es_xsetinfo wcs_hp 35|es_xsetinfo wcs_speed 1.6;es_xsetinfo wcs_hp 40"
    "skill1_cmd"        "es es_xkeygetvalue wcs_tmp WCSuserdata event_var(userid) speed;es es_xif (server_var(wcs_tmp) > server_var(wcs_speed)) then es_xsetinfo wcs_speed server_var(wcs_tmp);es es_xkeysetvalue WCSuserdata event_var(userid) speed server_var(wcs_speed);es est_Speed event_var(userid) server_var(wcs_speed);es est_gethealth wcs_health event_var(userid);es es_xmath wcs_health + server_var(wcs_hp);es est_sethealth event_var(userid) server_var(wcs_health);wcs_getlanguage wcs_lng wcs_lng_r_berserk;es es_xformat wcs_lng server_var(wcs_lng) server_var(wcs_hp) server_var(wcs_speed);es es_xtell event_var(userid) #multi server_var(wcs_lng)"
    "skill1_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 20;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 50 3 10 0 0 0 20 250 255 0"
    
    "skill2_setting"    "es_xsetinfo wcs_invis 80|es_xsetinfo wcs_invis 70|es_xsetinfo wcs_invis 60|es_xsetinfo wcs_invis 50"
    "skill2_cmd"        "es est_setplayercolor event_var(userid) 255 255 255 server_var(wcs_invis) 1;wcs_getlanguage wcs_lng wcs_lng_r_cloakinvis;es es_xtell event_var(userid) #multi server_var(wcs_lng);es_xmath wcs_invis float;es_xmath wcs_invis / -2.55;es_xmath wcs_invis + 100;es est_rounddecimal wcs_invis server_var(wcs_invis) 0;es es_xkeysetvalue WCSuserdata event_var(userid) invisp server_var(wcs_invis)"
    "skill2_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 50;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 50 3 10 0 0 0 20 25 255 0"

    "skill3_setting"    "es_xsetinfo wcs_gravity 0.7|es_xsetinfo wcs_gravity 0.6|es_xsetinfo wcs_gravity 0.5|es_xsetinfo wcs_gravity 0.4"
    "skill3_cmd"        "es es_xdelayed 2 est_SetGravity event_var(userid) server_var(wcs_gravity);es es_xkeysetvalue WCSuserdata event_var(userid) gravity server_var(wcs_gravity);wcs_getlanguage wcs_lng wcs_lng_r_levitation;es es_xtell event_var(userid) #multi server_var(wcs_lng)"
    "skill3_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 50;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 50 3 10 0 0 0 200 25 255 0"
    
    "skill4_setting"    "es_xsetinfo wcs_chance 30|es_xsetinfo wcs_chance 33|es_xsetinfo wcs_chance 36|es_xsetinfo wcs_chance 40"
    "racealias_fp4"     "es est_DropWeapon event_var(userid) 1;wcs_getlanguage wcs_lng wcs_lng_r_dropweapon;es es_xformat wcs_lng server_var(wcs_lng) event_var(es_attackername) event_var(es_username);es es_xtell event_var(userid) #multi server_var(wcs_lng);es es_xtell event_var(attacker) #multi server_var(wcs_lng)"
    "skill4_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_fp4"
    "skill4_sfx"        "0"
    
    "skill5_setting"    "es_xsetinfo wcs_chance 20;es_xsetinfo wcs_time 2|es_xsetinfo wcs_chance 25;es_xsetinfo wcs_time 2.5|es_xsetinfo wcs_chance 30;es_xsetinfo wcs_time 3|es_xsetinfo wcs_chance 35;es_xsetinfo wcs_time 3.5"
    "racealias_fp5"     "es est_gethealth wcs_health event_var(userid);es es_xsetinfo wcs_damage server_var(wcs_time);es_xmath wcs_damage * 5;es es_xif (server_var(wcs_health) <= server_var(wcs_damage)) then es_xif (server_var(wcs_damage) > 0) then wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_damage);es es_xif (server_var(wcs_health) <= server_var(wcs_damage)) then est_burn event_var(userid) server_var(wcs_time);wcs_getlanguage wcs_lng wcs_lng_r_burningblade;es es_xformat wcs_lng server_var(wcs_lng) event_var(es_attackername) event_var(es_username);es es_xtell event_var(userid) #multi server_var(wcs_lng);es es_xtell event_var(attacker) #multi server_var(wcs_lng)"
    "skill5_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es 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_fp5"
    "skill5_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 50;es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_effect 11 #a 0 sprites/purpleglow1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 2 4 255"

    "skill6_setting"    "es_xsetinfo wcs_chance 20;es_xsetinfo wcs_magnitude 110;es_xsetinfo wcs_radius 170|es_xsetinfo wcs_chance 27;es_xsetinfo wcs_magnitude 120;es_xsetinfo wcs_radius 180|es_xsetinfo wcs_chance 33;es_xsetinfo wcs_magnitude 120;es_xsetinfo wcs_radius 190|es_xsetinfo wcs_chance 40;es_xsetinfo wcs_magnitude 130;es_xsetinfo wcs_radius 200"
    "skill6_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xdoblock wcs/WCSultimates/wcs_ulti_suicide"
    "skill6_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 500 2 60 100 0.8 255 0 0 255 1"
    "ultimate_cooldown" "0"
  }
