October 23, 2017, 03:25:11 PM

Author Topic: Shadow Shinobi [Knife race]  (Read 1192 times)

Offline Teller

  • Level 7 Expert
  • *****
  • Posts: 261
  • Country: dk
  • #FIXYOURRACE
Shadow Shinobi [Knife race]
« on: May 16, 2014, 11:18:08 AM »
Skills
[Spoiler]
Skill 1: Grants you Speed, Gravity and Health
Skill 2: Grants 55 - 75% Invis
Skill 3: Grants an 20-60% change of knocking the enemy up into the air & freezing them for 1 sec
Skill 4: Grants 10-30% chance for getting mole
Skill5: X amount of Speed & Gravity get messup on the entire enemy team for 3.5 sec



Race
Code: [Select]
[Shadow Shinobi]
    #Requirement section
    required       = 0
    maximum        = 0

    #Restrict section
    restrictmap    = ""
    restrictteam   = 0
    restrictitem   = ""
    teamlimit      = 0

    #Other info
    author         = "Teller"
    desc           = ""
    spawncmd       = "es wcs_restrict event_var(userid) all;es wcs_unrestrict event_var(userid) knife;es_xdoblock wcs/addons/effect/spawnsineff"
    deathcmd       = ""
    roundstartcmd  = ""
    roundendcmd    = ""
    preloadcmd     = ""
    allowonly      = ""
    onchange       = ""

    #Skill information
    numberofskills = 5
    numberoflevels = 3
    skillnames     = "Shinobi Agility|Stick To The Shadows|Total Assassination|Disguise Mother Fucker|Shadow Curse"
    skilldescr     = "Speed,Gravity,Health|Invis|Push|Mole|Slow The Entire Enemy Team"
    skillcfg       = "player_spawn|player_spawn|player_attacker|player_spawn|player_ultimate"
    skillneeded    = "0|0|0|0|6"


    #Skill specific information
    [[skill1]]
        setting = "es_xset wcs_speed 1.4;es_xset wcs_gravity 0.6;es_xset wcs_health 45|es_xset wcs_speed 1.6;es_xset wcs_gravity 0.4;es_xset wcs_health 75|es_xset wcs_speed 1.8;es_xset wcs_gravity 0.2;es_xset wcs_health 100"
        cmd     = "es wcs_setfx speed event_var(userid) = server_var(wcs_speed) 0;es wcs_setfx gravity event_var(userid) - server_var(wcs_gravity) 0;es wcs_setfx health event_var(userid) + server_var(wcs_health) 0"
        sfx     = "es_xdoblock wcs/addons/effect/speedsineff"

    [[skill2]]
        setting = "es_xset wcs_invis 55|es_xset wcs_invis 65|es_xset wcs_invis 75"
        cmd     = "es wcs_setfx invisp event_var(userid) = server_var(wcs_invis) 0"
        sfx     = ""

    [[skill3]]
        setting                 = "es_xset wcs_chance 20|es_xset wcs_chance 40|es_xset wcs_chance 60"
        racealias_shinobipushup = "es wcs push event_var(userid) 0 0 250;es_delayed .1 wcs_setfx freeze event_var(userid) = 1 0;es_delayed 1 wcs_setfx freeze event_var(userid) = 0 0"
        cmd                     = "if (server_var(wcs_dice) <= server_var(wcs_chance)) then wcs_xalias racealias_shinobipushup"
        sfx                     = "es_xdoblock wcs/addons/effect/pushupsineff"

    [[skill4]]
        setting = "es_xset wcs_chance 10|es_xset wcs_chance 20|es_xset wcs_chance 30"
        cmd     = "if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_delayed 1 wcs_mole_activate event_var(userid)"
        sfx     = ""

    [[skill5]]
        setting  = "es_xset wcs_speed 0.8;es_xset wcs_gravity 900|es_xset wcs_speed 0.6;es_xset wcs_gravity 950|es_xset wcs_speed 0.4;es_xset wcs_gravity 1000"
        cmd      = "es_xset wcs_duration 3.5;es_xdoblock wcs/tools/ultimates/default/shadow_curse"
        sfx      = ""
        cooldown = "120|60|40"

Effects
Code: [Select]
block pushupsineff
{
        es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid)
        es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_userid)
        es est_effect 10 #a 0 vgui/gfx/vgui/cs_logo.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 30 1000 1 40 150 5 20 20 20 255 1
        es est_effect 10 #a 0 vgui/gfx/vgui/cs_logo.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 30 600 1 40 150 5 255 0 0 255 1     
}

block speedsineff
{
        es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid)
es_xmath wcs_z1 + 5
        es es_xdelayed 0.1 es est_effect 10 #a 0 sprites/glow07.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 700 1 2.5 50 255 3 0 0 255 255 1.5
        es es_xdelayed 0.2 es est_effect 10 #a 0 sprites/glow07.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 700 1 2.5 50 255 3 255 0 0 255 1.5
        es es_xdelayed 0.3 es est_effect 10 #a 0 sprites/glow07.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 700 1 2.5 50 255 3 0 0 255 255 1.5
        es es_xdelayed 0.4 es est_effect 10 #a 0 sprites/glow07.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 700 1 2.5 50 255 3 255 0 0 255 1.5
}

block spawnsineff
{
        es_keysetvalue WCSuserdata event_var(userid) shadowsin 1
        es_give event_var(userid) env_Smokestack
        es_fire event_var(userid) env_Smokestack addoutput "targetname shadowsin"
        es_fire event_var(userid) shadowsin addoutput "basespread 65"
        es_fire event_var(userid) shadowsin addoutput "spreadspeed 110"
        es_fire event_var(userid) shadowsin addoutput "speed 125"
        es_fire event_var(userid) shadowsin addoutput "startsize 20"
        es_fire event_var(userid) shadowsin addoutput "endsize 40"
        es_fire event_var(userid) shadowsin addoutput "rate 100"
        es_fire event_var(userid) shadowsin addoutput "jetlength 140"
        es_fire event_var(userid) shadowsin addoutput "twist 90"
        es_fire event_var(userid) shadowsin addoutput "SmokeMaterial sprites/strider_blackball.vmt"
        es_fire event_var(userid) shadowsin addoutput "angles 90 90 90"
        es_fire event_var(userid) shadowsin addoutput "rendercolor 255 255 255"
        es_delayed .1 es_fire event_var(userid) shadowsin turnon
        es_delayed 3.5 es_fire event_var(userid) shadowsin kill
}

Ultimate
Code: [Select]
block shadow_curse
{
es_xset wcs_team 0
es_getplayerteam wcs_team server_var(wcs_userid)
if (server_var(wcs_team) = 2) do
{
es_xset wcs_team_target 3
es_xset wcs_team_targetn "#ct,#alive"
}
if (server_var(wcs_team) = 3) do
{
es_xset wcs_team_target 2
es_xset wcs_team_targetn "#t,#alive"
}
   
es_xset wcs_player 0
es wcs_foreach player wcs_player server_var(wcs_team_targetn) "es wcs_setfx speed server_var(wcs_player) - server_var(wcs_speed) server_var(wcs_duration);es wcs_setfx gravity server_var(wcs_player) + server_var(wcs_gravity) server_var(wcs_duration);es_tell server_var(wcs_player) #multi #green : Your speed and gravity are decreased for#lightgreen server_var(wcs_duration) #greenseconds."
}

This is the best wcs server i've ever seen.
Check it out ! http://warcraft-source.com/board/index.php?topic=16799.0

Offline DoCNL

  • Level 7 Expert
  • *****
  • Posts: 312
  • Country: 00
  • http://5-starz.webs.com <-- AWESOME!
    • 5* website
Re: Shadow Shinobi [Knife race]
« Reply #1 on: May 16, 2014, 11:40:03 AM »
Cool race, the ultimate is awesome :)

Offline Teller

  • Level 7 Expert
  • *****
  • Posts: 261
  • Country: dk
  • #FIXYOURRACE
Re: Shadow Shinobi [Knife race]
« Reply #2 on: May 16, 2014, 11:54:04 AM »
Thanks  :) Probs to Kamiqawa for showing me how to make this kinda ultimates

This is the best wcs server i've ever seen.
Check it out ! http://warcraft-source.com/board/index.php?topic=16799.0

Offline Eareland

  • Level 7 Expert
  • *****
  • Posts: 698
  • Country: fi
  • Most honest is to be without a word of a lie
    • FSSM
Re: Shadow Shinobi [Knife race]
« Reply #3 on: May 16, 2014, 12:49:20 PM »
Thanks for posting this :0

Nice idea!


Offline Muerte

  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1795
  • Country: be
    • Fortitude
Re: Shadow Shinobi [Knife race]
« Reply #4 on: May 16, 2014, 01:23:58 PM »
Sweet
Anyways why you all code so late? Or early? Don't you guys sleep at all?
Sleep? What's that? Just put a wire up your arse and charge while you code during the night. Doesn't all do that, or is it just me??

Offline Teller

  • Level 7 Expert
  • *****
  • Posts: 261
  • Country: dk
  • #FIXYOURRACE
Re: Shadow Shinobi [Knife race]
« Reply #5 on: May 17, 2014, 02:46:34 PM »
Thanks  :D

This is the best wcs server i've ever seen.
Check it out ! http://warcraft-source.com/board/index.php?topic=16799.0

Offline Kamiqawa

  • Watchdog
  • Level 7 Expert
  • *****
  • Posts: 779
  • Country: fi
Re: Shadow Shinobi [Knife race]
« Reply #6 on: May 18, 2014, 12:25:09 AM »
You have been releasing some really nice content Teller! And this race makes no exception: it seems like really solid and fun race. Great job! 8)
Want your own custom color for your forum username? No worries! La Muerte is here ready to fulfill your every rainbow-colored wish!

As a special offer of the day you can go talk with Tha Pwned first, and come ahead of the line!

I AM PINK!


Offline Teller

  • Level 7 Expert
  • *****
  • Posts: 261
  • Country: dk
  • #FIXYOURRACE
Re: Shadow Shinobi [Knife race]
« Reply #7 on: May 18, 2014, 12:55:40 AM »
You have been releasing some really nice content Teller! And this race makes no exception: it seems like really solid and fun race. Great job! 8)
Thanks !  ;D

This is the best wcs server i've ever seen.
Check it out ! http://warcraft-source.com/board/index.php?topic=16799.0

Offline Manifest

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 753
  • Country: dk
  • Working on a new server
Re: Shadow Shinobi [Knife race]
« Reply #8 on: October 10, 2017, 10:46:09 PM »
In the push effect block you have:
[Spoiler]
es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_userid)

It should either be event_var(userid) but since it is not being used I suggest removing it :-)

Also in the spawn effect you have the following line that are not being put to use, which you can also remove.
[Spoiler]
es_keysetvalue WCSuserdata event_var(userid) shadowsin 1
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."