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-08-30 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
August 30, 2009, 02:31:50 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as... HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Current Topic Rating: **** You have not rated this topic. Select a rating:
Author Topic: Boss  (Read 264 times)
Hyper009
Level 0 Beginner

Offline Offline

United States United States

Posts: 14



« on: May 19, 2009, 12:37:11 AM »

This is my first race, please tell me if there are any errors, thanks.

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.
« Last Edit: June 07, 2009, 04:32:37 AM by Hyper009 » Logged
Hyper009
Level 0 Beginner

Offline Offline

United States United States

Posts: 14



« Reply #1 on: May 20, 2009, 11:48:24 PM »

Fixed some typo's and a mistakei found. Edited new code into the first post.
Logged
WCA | Hiro [DK]
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 156




6500
chipsnsparx
« Reply #2 on: May 21, 2009, 12:25:31 PM »

i like the idea Smiley
I've seen that video, though I like "jizz in my pants" more.
you got some double "es" at the "es_getplayerlocation" and the "es_math"
you don't need more than one "es" and you don't need the "x" either. Smiley
Logged
Hyper009
Level 0 Beginner

Offline Offline

United States United States

Posts: 14



« Reply #3 on: May 21, 2009, 09:59:32 PM »

i like the idea Smiley
I've seen that video, though I like "jizz in my pants" more.
you got some double "es" at the "es_getplayerlocation" and the "es_math"
you don't need more than one "es" and you don't need the "x" either. Smiley

Thanks for your reply.

I fixed it and edited it into the first post.
Logged
Piloten
Level 6 Experienced
*****
Offline Offline

United States United States

Posts: 136




Darin880

myServer 75.102.38.8:29444
(Warning: click connects through Steam)
« Reply #4 on: May 23, 2009, 03:41:38 AM »

invisibility is fine, it uses a different method to make him invisible. the way its set up is to literally put the percent you want in the setting instead of putting 0-255.

"es wcs_setfx invisp event_var(userid) = server_var(wcs_invis) 0" is for setting the exact percent when using wcs_setfx

"es wcs_setfx invis event_var(userid) = server_var(wcs_invis) 0" is for setting the alpha value when using wcs_setfx
« Last Edit: May 23, 2009, 03:45:54 AM by Piloten » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Dutch Hosting

Last 7 Shouts:
Today at 12:27:40 AM
you can respawn with this addon useng the command gg_spawn
 http://forums.gungame5.com/download/file.php?id=144&sid=5c52fb7afaf2db812f7fd4a0744e96d9
August 29, 2009, 10:52:35 PM
teambalance.
August 29, 2009, 09:57:17 PM
Anyone knows how to get addon or set something up so the server swaps teams, ct = t, and t = ct after a team wins 15 rounds?
August 29, 2009, 07:53:39 PM
SRCDS has 28th update also?
August 29, 2009, 12:00:42 PM
Say yes to time the error
August 29, 2009, 09:56:58 AM
Until then, no respawn will work on recently-updated servers.
August 29, 2009, 09:56:40 AM
The respawn code has changed since last SRCDS update.
Since EST won't be updated, i'll post some code (using SPE module) to rewrite the est_spawn command.
Recent
[Today at 01:37:01 PM]

[Today at 01:06:38 PM]

[Today at 10:45:01 AM]

[Today at 10:43:08 AM]

[Today at 09:17:31 AM]

[Today at 08:53:13 AM]

[Today at 06:41:56 AM]

[Today at 06:39:40 AM]

by Ron
[Today at 03:02:28 AM]

[Today at 12:19:47 AM]
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.414 seconds with 25 queries.