This race was inspired by the video 'Like a boss' by The Lonely Island
Demand a refund LIKE-A-BOSS -- Steal money.
Promote Synergy LIKE-A-BOSS -- Partially invisible.
Get a gun LIKE-A-BOSS -- Spawn with a Deagle and M4.
Eat a bagel LIKE-A-BOSS -- Regain health.
Code
GeSHi (eventscripts):"number"
{
"name" "BOSS"
"author" "Hyper"
"shortdescription" "Does things LIKE-A-BOSS"
"required_level" "200"
"maximum_level" "0"
"allow_only" "0"
"teamlimit" "0"
"preloadcmd" "0"
"player_spawn_cmd" "0"
"round_start_cmd" "0"
"round_end_cmd" "0"
"numberofskills" "4"
"numberoflevels" "4"
"skillnames" "Demand a refund LIKE-A-BOSS|Promote Synergy LIKE-A-BOSS|Get a gun LIKE-A-BOSS|Eat a bagel LIKE-A-BOSS"
"skilldescr" "Steal money.|Partially invisible.|Spawn with a Deagle and M4.|Regain health."
"skillcfg" "player_attacker|player_spawn|player_spawn|player_ultimate"
"skill1_setting" "es_xsetinfo wcs_money 50|es_xsetinfo wcs_money 100|es_xsetinfo wcs_money 200|es_xsetinfo wcs_money 400"
"racealias_dp3" "es es_xgetmoney wcs_cash event_var(userid);wcs_getlanguage wcs_lng wcs_lng_r_stolemoney;es es_xformat wcs_lng server_var(wcs_lng) event_var(es_attackername) server_var(wcs_money) event_var(es_username);es es_xif (server_var(wcs_cash) >= server_var(wcs_money)) then es_xtell event_var(attacker) #multi server_var(wcs_lng);es es_xif (server_var(wcs_cash) >= server_var(wcs_money)) then es_xtell event_var(userid) #multi server_var(wcs_lng);es es_xif (server_var(wcs_cash) >= server_var(wcs_money)) then est_Cash event_var(attacker) + server_var(wcs_money);es es_xif (server_var(wcs_cash) >= server_var(wcs_money)) then est_Cash event_var(userid) - server_var(wcs_money)"
"skill1_cmd" "es es_xif (server_var(wcs_dice) <= 40) then racealias_dp3"
"skill1_sfx" "0"
"skill2_setting" "es_xset wcs_invis 10|es_xset wcs_invis 20|es_xset wcs_invis 40|es_xset wcs_invis 60"
"skill2_cmd" "es wcs_setfx invisp event_var(userid) = server_var(wcs_invis) 0"
"skill2_sfx" "0"
"skill3_setting" "es_xset wcs_chance 20;es_xset wcs_weapon weapon_deagle|es_xset wcs_chance 80;es_xset wcs_weapon weapon_deagle|es_xset wcs_chance 20;es_xset wcs_weapon weapon_M4a1|es_xset wcs_chance 80;es_xset wcs_weapon weapon_m4a1"
"racealias_arw1" "if (server_var(wcs_weapon) = weapon_deagle) then es_xdelayed 1 est_DropWeapon event_var(userid) 2;if (server_var(wcs_weapon) != weapon_deagle) then es_xdelayed 1 est_DropWeapon event_var(userid) 1;es_delayed 1 est_Give event_var(userid) server_var(wcs_weapon);wcs_getlanguage wcs_lng wcs_lng_r_weaponsummoned;es_tell event_var(userid) #multi server_var(wcs_lng)"
"racealias_arw2" "if (server_var(wcs_weapon) = weapon_colt) then es_xdelayed 1 est_DropWeapon event_var(userid) 2;if (server_var(wcs_weapon) = weapon_bazooka) then es_xdelayed 1 est_DropWeapon event_var(userid) 1;es_delayed 1 est_Give event_var(userid) server_var(wcs_weapon);if (server_var(wcs_weapon) = weapon_colt) then est_SetAmmo event_var(userid) 2 50;if (server_var(wcs_weapon) = weapon_bazooka) then est_SetAmmo event_var(userid) 1 10;wcs_getlanguage wcs_lng wcs_lng_r_weaponsummoned;es_tell event_var(userid) #multi server_var(wcs_lng)"
"skill3_cmd" "if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_game) = server_var(wcs_game_dods)) then es_xif (server_var(wcs_weapon) = weapon_deagle) then es_xset wcs_weapon weapon_colt;if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_game) = server_var(wcs_game_dods)) then es_xif (server_var(wcs_weapon) != weapon_deagle) then es_xset wcs_weapon weapon_bazooka;if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_game) = server_var(wcs_game_css)) then racealias_arw1;if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_game) = server_var(wcs_game_dods)) then racealias_arw2"
"skill3_sfx" "if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);if (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) 40 60 2 20 10 1 10 255 0 255 1"
"skill4_setting" "es_xsetinfo wcs_hpmana 16|es_xsetinfo wcs_hpmana 19|es_xsetinfo wcs_hpmana 22|es_xsetinfo wcs_hpmana 50"
"skill4_cmd" "es_xsetinfo wcs_health 0;es est_gethealth wcs_health server_var(wcs_userid);es es_xmath wcs_health + server_var(wcs_hpmana);es est_RoundDecimal wcs_health server_var(wcs_health) 0;es es_xif (server_var(wcs_health) < 251) then est_sethealth server_var(wcs_userid) server_var(wcs_health);es es_xtell server_var(wcs_userid) : You ate a bagel to heal yourself LIKE A BOSS."
"skill4_sfx" "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_math wcs_z1 + 50;es est_effect 11 #a 0 sprites/purpleglow1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 4 2 255"
"ultimate_cooldown" "60|40|30|20"
}
Feel free to use it in your server if you would like. Thanks again.






United States
Logged

Denmark

