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-14 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
July 14, 2009, 01:35:16 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Join the new Facebook Warcraft-Source.com Group! It has been currently opened!
Join!
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: Bounty Hunter (First Race)  (Read 273 times)
WCA | Hiro [DK]
Level 6 Experienced
******
Offline Offline

Denmark Denmark

Posts: 158




6500
chipsnsparx
« on: April 20, 2009, 07:02:32 PM »

Ok, this race is one my first races and officialy my first on this website. Cheesy
I hope you guys like it and I realy tried not to copy anything from anyother race.
Btw. It's meant for a zombieserver, but can easily be balanced to a normal wcs server.

Bounty Hunter

Quick Feet: Run 35% faster

Marksman: Headshots do more damage

Bounty(Ulitmate): You get extra exp and Money from each kill

Code:
{
    "name"              "Bounty Hunter"
    "author"            "Hiro"
    "required_level"    "350"
    "maximum_level"     "0"
    "allow_only"        "0"
    "teamlimit"         "0"
    "preloadcmd"        "0"   
    "player_spawn_cmd"  "0"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "3"
    "numberoflevels"    "6"
    "skillnames"        "Seach for the wanted|Headhunter|Collect the Bounty"
    "skilldescr"        "You move faster than others|Headshots do more damage|You get extra exp and Money from each kill"
"skillcfg"          "player_spawn|player_attacker|player_attacker"

    "skill1_setting"    "es_xsetinfo wcs_speed 1.10|es_xsetinfo wcs_speed 1.15|es_xsetinfo wcs_speed 1.20|es_xsetinfo wcs_speed 1.25|es_xsetinfo wcs_speed 1.30|es_xsetinfo wcs_speed 1.35"
    "skill1_cmd"        "es es_xkeygetvalue wcs_tmp WCSuserdata event_var(userid) speed;es es_xif (server_var(wcs_speed) > server_var(wcs_tmp)) then es est_Speed event_var(userid) server_var(wcs_speed);es es_xif (server_var(wcs_speed) > server_var(wcs_tmp)) then es_xkeysetvalue WCSuserdata event_var(userid) speed server_var(wcs_speed) es_tell event_var(userid) #multi #lightgreenLet the #greenHunt #lightgreenBegin!"
    "skill1_sfx"        "0"

    "skill2_setting"    "es_xset wcs_chance 15;es_xsetinfo wcs_multiplier 1.2|es_xset wcs_chance 20;es_xsetinfo wcs_multiplier 1.5|es_xset wcs_chance 25;es_xsetinfo wcs_multiplier 1.8|es_xset wcs_chance 30;es_xsetinfo wcs_multiplier 2|es_xset wcs_chance 40;es_xsetinfo wcs_multiplier 2.2|es_xset wcs_chance 50;es_xsetinfo wcs_multiplier 2.5"
    "skill2_cmd"        "es_xdoblock wcs/WCSultimates/headshot_dmg"
    "skill2_sfx"        "es est_effect 4 #a 0 sprites/lgtning.vmt event_var(userid) 2 2 4 10 115 0 255 205"


"skill3_setting"    "es_xset wcs_chance 90;es_xrand wcs_sucxp 0 50;es_xsetinfo wcs_money 500|es_xset wcs_chance 80;es_xrand wcs_sucxp 10 60;es_xsetinfo wcs_money 1000|es_xset wcs_chance 70;es_xrand wcs_sucxp 20 70;es_xsetinfo wcs_money 2000|es_xset wcs_chance 60;es_xrand wcs_sucxp 30 80;es_xsetinfo wcs_money 3000|es_xset wcs_chance 50;es_xrand wcs_sucxp 40 90;es_xsetinfo wcs_money 4000|es_xset wcs_chance 40;es_xrand wcs_sucxp 50 100;es_xsetinfo wcs_money 5000"
"skill3_cmd"        "es_xdoblock wcs/WCSultimates/collect_bounty"
"skill3_sfx"        "if (server_var(wcs_dice) <= 30) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);if (server_var(wcs_dice) <= 30) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);if (server_var(wcs_dice) <= 30) then 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) 0.5 40 40 255 200 0 255"


}
Then add this to the es_WCSultimates
at the buttom
Code:
block headshot_dmg
{
  if (event_var(hitgroup) = 1) do
  {
    es_set wcs_dmg event_var(dmg_health)
    es_xmath wcs_dmg float
    es_math wcs_dmg * server_var(wcs_multiplier)
    es est_RoundDecimal wcs_dmg server_var(wcs_dmg) 0
    es_tell event_var(attacker) #multi #lightgreen You #greenWounded #lightgreenyour target!
    es_tell event_var(userid) #multi #lightgreenThere is a #greenBounty Hunter #lightgreenafter you!
  }
}

block collect_bounty
{
  es est_gethealth wcs_tmp event_var(userid)
  es wcs_givexp event_var(attacker) server_var(wcs_sucxp)
  ifx false(wcs_tmp) do
  {
    if (server_var(wcs_dice) <= server_var(wcs_chance)) do
    {
      es wcs_givexp event_var(attacker) server_var(wcs_sucxp)
      es_tell event_var(attacker) #multi #lightgreenYou collected the #greenBounty Exp
      es est_playplayer event_var(attacker) ambient/machines/teleport3.wav
      es playerset cash event_var(userid) server_var(wcs_money)
      es_tell event_var(attacker) #multi #lightgreenYou collected the #greenBounty Money
    }
  }
}
« Last Edit: April 21, 2009, 06:16:33 PM by Hiro » Logged
WCA | Berettonawak [FR]
Le renommé méconnu...
Watchdogs
Level 7 Master
*****
Offline Offline

France France

Posts: 2425


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #1 on: April 20, 2009, 07:07:58 PM »

Are those skills custom ones?
Logged

WCA | Hiro [DK]
Level 6 Experienced
******
Offline Offline

Denmark Denmark

Posts: 158




6500
chipsnsparx
« Reply #2 on: April 21, 2009, 08:17:48 AM »

the first might not be, since a speedboost skill is a very common thing among races. But I haven't seen a race that have a dmg boost "when hitting the head" or a get more exp from each kill, yet, besides Hollidays Scorpion, which I first saw after I made this race.

Otherwise, my bad.
I wasn't attenting to copy skills from another race.
Logged
WCA | Berettonawak [FR]
Le renommé méconnu...
Watchdogs
Level 7 Master
*****
Offline Offline

France France

Posts: 2425


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #3 on: April 21, 2009, 08:53:21 AM »

the first might not be, since a speedboost skill is a very common thing among races. But I haven't seen a race that have a dmg boost "when hitting the head" or a get more exp from each kill, yet, besides Hollidays Scorpion, which I first saw after I made this race.

Otherwise, my bad.
I wasn't attenting to copy skills from another race.
No no, that was just to know if the race was placed in the right section :p.
Logged

WCA | Hiro [DK]
Level 6 Experienced
******
Offline Offline

Denmark Denmark

Posts: 158




6500
chipsnsparx
« Reply #4 on: April 21, 2009, 05:12:58 PM »

Ok. I Changed alot on it and made the 2 last skills blockbased.
I'll update the race soon.
« Last Edit: April 21, 2009, 05:32:52 PM by Hiro » Logged
WCA | Berettonawak [FR]
Le renommé méconnu...
Watchdogs
Level 7 Master
*****
Offline Offline

France France

Posts: 2425


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #5 on: April 21, 2009, 05:17:21 PM »

Ok. I Changed alot on it and made the 2 last skills blockbased.
then edit your post Smiley
Logged

WCA | Hiro [DK]
Level 6 Experienced
******
Offline Offline

Denmark Denmark

Posts: 158




6500
chipsnsparx
« Reply #6 on: April 21, 2009, 05:53:29 PM »

My internet fucked so I have to do it again. Sad

EDIT: The Race has been Edited now.
« Last Edit: April 21, 2009, 06:04:02 PM by Hiro » Logged
[Oddity]TeacherCreature
Co-Administrator
Level 7 Master
*****
Offline Offline

United States United States

Posts: 1359



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #7 on: April 21, 2009, 06:59:28 PM »

They aren't custom so much, but still good for a first race.. The last skill you used Succubus as your base, I know this because you didn't bother to rename the variable.
"es_xrand wcs_sucxp 0 50"


BTW
I might be wrong but don't you have to set wcs_dmg to 0 before you use it in block headshot_dmg
Perhaps add:
es_xsetinfo wcs_dmg 0

I can't remember if WCS sets that variable for you. If it does than nevermind, if it doesn't you could also use wcs_tmp instead, or do what I said above.


Logged

WCA | Hiro [DK]
Level 6 Experienced
******
Offline Offline

Denmark Denmark

Posts: 158




6500
chipsnsparx
« Reply #8 on: April 21, 2009, 07:55:27 PM »

Hmm. I was actualy trying to not making it a copy&paste race. And the block thing was just something Berettonawak teached me, so I just wanted to try it out. but I mainly just took small parts from races and coded them differently up and created a new skill with a new purpose. That's what I do. Giving simple skills a new purpose is me Tongue
But yea. You might be right in some of the errors.
I should try changing it. Oh I forgot. I forgot to test the race. That might be a good idea xD
Logged
WCA | AvasT [BR]
Level 7 Master
*******
Offline Offline

Brazil Brazil

Posts: 358




doug_tiozao
« Reply #9 on: April 21, 2009, 08:11:31 PM »

Nice for your first race, look at mine:http://warcraft-source.com/board/index.php/topic,7031.msg49506.html#msg49506
Good luck next time!
Logged

WCA | Hiro [DK]
Level 6 Experienced
******
Offline Offline

Denmark Denmark

Posts: 158




6500
chipsnsparx
« Reply #10 on: April 21, 2009, 09:01:19 PM »

I tested it and so far. It seems like the last skill isn't working like I wanted it do. DAMNIT... *cries*
Logged
WCA | Berettonawak [FR]
Le renommé méconnu...
Watchdogs
Level 7 Master
*****
Offline Offline

France France

Posts: 2425


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #11 on: April 22, 2009, 12:26:39 PM »

Well although i told you to use ifx false, in this case there's no need to get health and then check the health.
Just replace the first two lines with :
Code:
if (event_var(es_userdead) == 1) do
Also, the target of playerset cash should be event_var(attacker) and not event_var(userid) Smiley.
And last point, it should be playerset cashadd, otherwise it will set the money to 500 (and not add 500 to money Smiley )
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 08:51:24 AM
no im using it for my server.
Today at 03:34:59 AM
what you mean.
are you adding it to your C&P race ?
Today at 02:05:00 AM
i cant get the [Oddity] Ninja race's first skill to work. the one where you go faster,slower,faster,slower.
someone help me? Smiley
Today at 01:55:13 AM
And i dont wanna test on my own server.
thats not fun.
Cheesy
July 13, 2009, 10:42:55 PM
I wanna Test My race but cant add you.
add me.
nichosv
July 13, 2009, 10:05:49 PM
let me know if u guys want ur race tested on a server and you dont have one and ill put it up 8.6.76.177:27015
thts my server ip just let me know or add me on steam $$$$NJO$$$$ Dashi
July 13, 2009, 09:36:34 AM
and good mornin
Recent
[Today at 12:52:59 PM]

[Today at 12:51:36 PM]

[Today at 09:09:24 AM]

[Today at 08:54:05 AM]

[Today at 05:50:38 AM]

[Today at 12:37:38 AM]

[July 13, 2009, 11:53:20 PM]

[July 13, 2009, 11:19:28 PM]

[July 13, 2009, 10:52:14 PM]

by maze
[July 13, 2009, 10:04:15 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.113 seconds with 26 queries.