June 18, 2018, 05:31:16 PM

Author Topic: [Race] Zombiedog  (Read 131 times)

Offline Kiwi :)

  • Level 7 Expert
  • *****
  • Posts: 170
  • Country: at
  • Owner from www.frostfallwcs.com
[Race] Zombiedog
« on: June 05, 2018, 06:00:41 PM »
Sadly i dont found a zombiedog skin for csgo :/ would be nice if anyone can test the race in csgo and tell me if it works :)
EDIT: Thanks Manifest for making the race better :) updatet the downloadlink




Zombiedog (Kniferace)


Spawn
40 XP For playing a Kniferace

Skill 1: Fear the Dog!
17-42% chance to pushup+freeze+slow your Enemy

Skill 2: Dog Legs
Longjump on Spawn

Skill 3: Dogs are faster
1.32-1.74 Extra Movementspeed

Skill 4: Thick Skin
20-75 Extra Health on Spawn

Skill 5: T-Virus Infection
Poison your Enemy

Skill 6: Zombies cant die

5-25% Chance to Respawn

Skill 7: Zombie Sustain
After 5 Seconnds you Recover from the Attacks


Hope you like it  ;D





DOWNLOAD HERE
« Last Edit: June 07, 2018, 03:11:31 PM by Kiwi :) »
Check our Community Page! www.FrostfallWCS.com!



Offline ErikZen

  • Level 1 Trained Beginner
  • *
  • Posts: 28
  • Country: dk
  • Do This - Do That - Do What?
Re: [Race] Zombiedog
« Reply #1 on: June 05, 2018, 06:08:57 PM »
I can add the race to my server later today, and we can test it together if you want to? :-) I am testing push atm  :)

Offline Kiwi :)

  • Level 7 Expert
  • *****
  • Posts: 170
  • Country: at
  • Owner from www.frostfallwcs.com
Re: [Race] Zombiedog
« Reply #2 on: June 05, 2018, 06:15:57 PM »
ty :)
Check our Community Page! www.FrostfallWCS.com!



Offline WCS - Wookie

  • Level 5 Trained Intermediate
  • *****
  • Posts: 103
  • Country: nz
  • Qualified Teacher, working in IT and loving WCS.
Re: [Race] Zombiedog
« Reply #3 on: June 06, 2018, 12:42:14 AM »
Is this the model that has the Resident Evil dog with its head split in half? That one used to freak me out :P
If you like WCS and are from AUS/NZ drop by our server to take a look.


Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1034
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: [Race] Zombiedog
« Reply #4 on: June 06, 2018, 10:32:31 AM »
Overall this race looks very promising and you have definetly improved a lot since your last release Kiwi :-)

I took a look at the race code, and I found a few errors and minor things that could be changed. Overall it wasn't too bad there are a few skills that would not be working, or atleast not work correctly:


Skill 5
- Does have a chance variable defined, but you never check for this anywhere else in the code which means this race has a 100% chance to respawn no matter the level of this skill.

Skill 7
- This will not be working on CS:S nor on CS:GO. Reason being that you store the damage you take in wcs_dmg and never use the variable you stored the data within to set the health back.


I made the changes already and helped you adapt it to the CS:GO version. Here's the code with the changes I made to it, the race should essentially do the same, but with some fixing, optimization and formatting to make the race easier readable to others. :-)


races.ini code:
Code: [Select]
[Zombie Dog (knife)]
    #Requirement section
    required       = 0
    maximum        = 0

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

    #Other info
    author         = "Kiwi^<3"
    desc           = "Zombie Dog - Resident Evil"
    spawncmd       = "es_xdoblock wcs/races/zombiedog/spawn"
    deathcmd       = "es_xdoblock wcs/races/zombiedog/death"
    roundstartcmd  = ""
    roundendcmd    = ""
    preloadcmd     = ""
    allowonly      = ""
    onchange       = ""

    #Skill information
    numberofskills = 7
    numberoflevels = 5
    skillnames     = "Fear the Dog!|Dog Legs|Dogs are faster|Thick Skin|T-Virus Infection|Zombies cant die|Zombie Sustain"
    skilldescr     = "20-40% chance to pushup+freeze+slow your Enemy|Longjump on Spawn|1.32-1.74 Extra Movementspeed|20-75 Extra Health on Spawn|Poison your Enemy|5-25% Chance to Respawn|After 5 Seconnds you Recover from the Attacks"
    skillcfg       = "player_attacker|player_spawn|player_spawn|player_spawn|player_attacker|player_death|player_victim"
    skillneeded    = "0|0|0|0|0|0|8"

    racecategory   = "0"

    #Skill specific information
    [[skill1]]
        setting = "es_xset wcs_chance 20|es_xset wcs_chance 25|es_xset wcs_chance 30|es_xset wcs_chance 35|es_xset wcs_chance 40"
        cmd     = "es_xdoblock wcs/races/zombiedog/fear"
        sfx     = ""

    [[skill2]]
        setting = "es_xset wcs_multiplier 0.5|es_xset wcs_multiplier 0.6|es_xset wcs_multiplier 0.7|es_xset wcs_multiplier 0.8|es_xset wcs_multiplier 0.9"
        cmd     = "es_xdoblock wcs/races/zombiedog/longjump"
        sfx     = ""

    [[skill3]]
        setting = "es_xset wcs_speed 1.32|es_xset wcs_speed 1.43|es_xset wcs_speed 1.56|es_xset wcs_speed 1.65|es_xset wcs_speed 1.74"
        cmd     = "es_xdoblock wcs/races/zombiedog/speed"
        sfx     = ""

    [[skill4]]
        setting = "es_xset wcs_health 20|es_xset wcs_health 35|es_xset wcs_health 50|es_xset wcs_health 65|es_xset wcs_health 75"
        cmd     = "es_xdoblock wcs/races/zombiedog/health_armor"
        sfx     = ""

    [[skill5]]
        setting = "es_xset wcs_chance 15;es_xset wcs_poison 3|es_xset wcs_chance 20;es_xset wcs_poison 4|es_xset wcs_chance 25;es_xset wcs_poison 5|es_xset wcs_chance 30;es_xset wcs_poison 6|es_xset wcs_chance 35;es_xset wcs_poison 7"
        cmd     = "es_xdoblock wcs/races/zombiedog/infection"
        sfx     = ""

    [[skill6]]
        setting = "es_xset wcs_chance 5|es_xset wcs_chance 10|es_xset wcs_chance 15|es_xset wcs_chance 20|es_xset wcs_chance 25"
        cmd     = "es_xdoblock wcs/races/zombiedog/respawn"
        sfx     = ""

    [[skill7]]
        setting = "es_xset wcs_chance 20|es_xset wcs_chance 25|es_xset wcs_chance 30|es_xset wcs_chance 35|es_xset wcs_chance 40"
        cmd     = "es_xdoblock wcs/races/zombiedog/sustain"
        sfx     = ""


Block code:
Code: [Select]
block load
{
es_xset wcs_poison 0
es_xset wcs_recover 0
es_xset Zombiedog by Kiwi
es_xmakepublic Zombiedog
}

block spawn
{
es_getgame wcs_gamecheck
if ("Counter-Strike: Source" in server_var(wcs_gamecheck)) do
{
es wcs_restrict event_var(userid) "tmp;galil;ak47;scout;sg552;awp;g3sg1;famas;m4a1;aug;sg550;glock;usp;p228;tmp;deagle;elite;fiveseven;m3;xm1014;mac10;mp5navy;ump45;p90;m249"
}
if ("Counter-Strike: Global Offensive" in server_var(wcs_gamecheck)) do
{
es wcs_restrict event_var(userid) "glock;elite;p250;tec9;cz75a;deagle;revolver;usp_silencer;hkp2000;fiveseven;nova;xm1014;mag7;m249;negev;mag7;mac10;mp7;ump45;p90;bizon;mp9;galilar;ak47;ssg08;sg556;awp;g3sg1;famas;m4a4;m4a1_silencer;aug;scar20;taser"
}
es wcs_givexp event_var(userid) 40
es_emitsound player event_var(userid) wcs/zombiedog_spawn.wav 1 1
es_tell event_var(userid) #multi #lightgreen[#greenZombiedog#lightgreen]#default You got#darkgreen 40 XP#default for playing a Kniferace!
es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid)
es est_effect_08 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 520 40 1 1 90 400 0 255 255 255 255 20 1
es est_effect_08 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 20 400 1 1 90 400 0 128 128 128 255 10 1
es est_effect 10 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 10 100 1 50 200 2 60 255 255 255 5
es_xmath wcs_z2 + 25
es est_effect 10 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 10 250 1 50 100 2 60 255 255 255 5
es_xmath wcs_z2 + 25
es est_effect 10 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 10 250 1 50 100 2 60 255 255 255 5
es_xmath wcs_z2 + 25
es est_effect 10 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 10 250 1 50 100 2 60 255 255 255 5
es_xmath wcs_z2 + 25
es est_effect 10 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 10 250 1 50 100 2 60 255 255 255 5
es_xmath wcs_z2 + 25
es est_effect 10 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 10 250 1 50 100 2 60 255 255 255 5
}

block death
{
es_emitsound player event_var(userid) wcs/zombiedog_death.wav 1 1
es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid)
es_xmath wcs_z1 + 17
es est_effect 11 #a 0 decals/bloodstain_003.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 0.5 0.4 255
}

block fear
{
if (server_var(wcs_dice) <= server_var(wcs_chance)) do
{
if (event_var(es_userdead) = 0) do
{
if (event_var(es_attackerdead) = 0) do
{
es wcs push event_var(userid) 0 0 500
es_delayed .3 wcs_setfx freeze event_var(userid) = 1 .3
es_delayed .8 wcs_setfx speed event_var(userid) = .50 1
es_tell event_var(userid) #multi #green[WCS]#lightgreen Anxiety - ZombieDog caused you to panic!
es_tell event_var(attacker) #multi #green[WCS]#lightgreen Anxiety - You makee your enemy go crazy!
}
}
}
}

block longjump
{
if (event_var(es_userdead) = 0) do
{
es wcs_setfx longjump event_var(userid) = server_var(wcs_multiplier)
es_tell event_var(userid) #multi #green[WCS]#lightgreen Dog Legs - Longjump activated.
}
}

block speed
{
if (event_var(es_userdead) = 0) do
{
es wcs_setfx speed event_var(userid) + server_var(wcs_speed)
es_xmath wcs_speed * 100
es_xmath wcs_speed + 100
es_tell event_var(userid) #multi #green[WCS]#lightgreen Zombiedog Agility - Your speed is now server_var(wcs_speed)%.
}
}

block health_armor
{
if (event_var(es_userdead) = 0) do
{
es wcs_setfx health event_var(userid) + server_var(wcs_health) 0
es wcs_give event_var(userid) item_kevlar
es_tell event_var(userid) #multi #green[WCS]#lightgreen Thick Skin - You got server_var(wcs_health) HP.
}
}

block infection
{
if (server_var(wcs_dice5) <= server_var(wcs_chance)) do
{
if (event_var(es_userdead) = 0) do
{
if (event_var(es_attackerdead) = 0) do
{
es_delayed 2 wcs_dealdamage event_var(userid) event_var(attacker) server_var(wcs_poison)
es_delayed 4 wcs_dealdamage event_var(userid) event_var(attacker) server_var(wcs_poison)
es_delayed 6 wcs_dealdamage event_var(userid) event_var(attacker) server_var(wcs_poison)
es_delayed 8 wcs_dealdamage event_var(userid) event_var(attacker) server_var(wcs_poison)
es_delayed 10 wcs_dealdamage event_var(userid) event_var(attacker) server_var(wcs_poison)
es_tell event_var(attacker) #multi #green[WCS]#lightgreen Zombiedog - You have infected your enemy and deal server_var(wcs_poison) per tick.
es_tell event_var(userid) #multi #green[WCS]#lightgreen Zombiedog - You have been infected by a Zombiedog.
es_emitsound player event_var(userid) wcs/zombiedog_atk.wav 1 1
es_emitsound player event_var(attacker) wcs/zombiedog_atk.wav 1 1
es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid)
es_xmath wcs_z1 + 90
es est_effect 11 #a 0 sprites/640hud9.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 3 .5 255
}
}
}
}

block respawn
{
if (server_var(wcs_dice6) <= server_var(wcs_chance)) do
{
if (event_var(es_userdead) = 1) do
{
es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid)
es_tell event_var(userid) #multi #green[WCS]#lightgreen Zombiedog - You will respawn again!
es wcs_centertell event_var(userid) Respawning in 2 seconds!
es_delayed 1 es wcs_centertell event_var(userid) Respawning in 1 seconds!
es_delayed 2 es wcs_centertell event_var(userid) You've been respawned!
es_delayed 2 wcs_spawn event_var(userid) 1
es_delayed 2.1 playerset location event_var(userid) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2)
es_xmath wcs_z2 + 10
es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 250 650 1 20 20 0 207 35 35 255 10
es_xmath wcs_z2 + 10
es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 650 1 .5 20 20 0 255 50 80 255 10
es_delayed 1 est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 250 650 1 20 20 0 207 35 35 255 10
es_delayed 1 est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 650 1 .5 20 20 0 255 50 80 255 10
}
}
}

block sustain
{
if (server_var(wcs_dice7) <= server_var(wcs_chance)) do
{
if (event_var(es_userdead) = 0) do
{
es_set wcs_recover event_var(dmg_health)
es_delayed 5 wcs_setfx health event_var(userid) + server_var(wcs_recover) 0
es_tell event_var(userid) #multi #green[WCS]#lightgreen Zombie Sustain - You will recover from event_var(es_attackername) attacks in 5 seconds!
}
}
}
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."


Offline Kiwi :)

  • Level 7 Expert
  • *****
  • Posts: 170
  • Country: at
  • Owner from www.frostfallwcs.com
Re: [Race] Zombiedog
« Reply #5 on: June 06, 2018, 05:33:15 PM »
Overall this race looks very promising and you have definetly improved a lot since your last release Kiwi :-)

I took a look at the race code, and I found a few errors and minor things that could be changed. Overall it wasn't too bad there are a few skills that would not be working, or atleast not work correctly:


Skill 5
- Does have a chance variable defined, but you never check for this anywhere else in the code which means this race has a 100% chance to respawn no matter the level of this skill.

Skill 7
- This will not be working on CS:S nor on CS:GO. Reason being that you store the damage you take in wcs_dmg and never use the variable you stored the data within to set the health back.


I made the changes already and helped you adapt it to the CS:GO version. Here's the code with the changes I made to it, the race should essentially do the same, but with some fixing, optimization and formatting to make the race easier readable to others. :-)


races.ini code:
Code: [Select]
[Zombie Dog (knife)]
    #Requirement section
    required       = 0
    maximum        = 0

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

    #Other info
    author         = "Kiwi^<3"
    desc           = "Zombie Dog - Resident Evil"
    spawncmd       = "es_xdoblock wcs/races/zombiedog/spawn"
    deathcmd       = "es_xdoblock wcs/races/zombiedog/death"
    roundstartcmd  = ""
    roundendcmd    = ""
    preloadcmd     = ""
    allowonly      = ""
    onchange       = ""

    #Skill information
    numberofskills = 7
    numberoflevels = 5
    skillnames     = "Fear the Dog!|Dog Legs|Dogs are faster|Thick Skin|T-Virus Infection|Zombies cant die|Zombie Sustain"
    skilldescr     = "20-40% chance to pushup+freeze+slow your Enemy|Longjump on Spawn|1.32-1.74 Extra Movementspeed|20-75 Extra Health on Spawn|Poison your Enemy|5-25% Chance to Respawn|After 5 Seconnds you Recover from the Attacks"
    skillcfg       = "player_attacker|player_spawn|player_spawn|player_spawn|player_attacker|player_death|player_victim"
    skillneeded    = "0|0|0|0|0|0|8"

    racecategory   = "0"

    #Skill specific information
    [[skill1]]
        setting = "es_xset wcs_chance 20|es_xset wcs_chance 25|es_xset wcs_chance 30|es_xset wcs_chance 35|es_xset wcs_chance 40"
        cmd     = "es_xdoblock wcs/races/zombiedog/fear"
        sfx     = ""

    [[skill2]]
        setting = "es_xset wcs_multiplier 0.5|es_xset wcs_multiplier 0.6|es_xset wcs_multiplier 0.7|es_xset wcs_multiplier 0.8|es_xset wcs_multiplier 0.9"
        cmd     = "es_xdoblock wcs/races/zombiedog/longjump"
        sfx     = ""

    [[skill3]]
        setting = "es_xset wcs_speed 1.32|es_xset wcs_speed 1.43|es_xset wcs_speed 1.56|es_xset wcs_speed 1.65|es_xset wcs_speed 1.74"
        cmd     = "es_xdoblock wcs/races/zombiedog/speed"
        sfx     = ""

    [[skill4]]
        setting = "es_xset wcs_health 20|es_xset wcs_health 35|es_xset wcs_health 50|es_xset wcs_health 65|es_xset wcs_health 75"
        cmd     = "es_xdoblock wcs/races/zombiedog/health_armor"
        sfx     = ""

    [[skill5]]
        setting = "es_xset wcs_chance 15;es_xset wcs_poison 3|es_xset wcs_chance 20;es_xset wcs_poison 4|es_xset wcs_chance 25;es_xset wcs_poison 5|es_xset wcs_chance 30;es_xset wcs_poison 6|es_xset wcs_chance 35;es_xset wcs_poison 7"
        cmd     = "es_xdoblock wcs/races/zombiedog/infection"
        sfx     = ""

    [[skill6]]
        setting = "es_xset wcs_chance 5|es_xset wcs_chance 10|es_xset wcs_chance 15|es_xset wcs_chance 20|es_xset wcs_chance 25"
        cmd     = "es_xdoblock wcs/races/zombiedog/respawn"
        sfx     = ""

    [[skill7]]
        setting = "es_xset wcs_chance 20|es_xset wcs_chance 25|es_xset wcs_chance 30|es_xset wcs_chance 35|es_xset wcs_chance 40"
        cmd     = "es_xdoblock wcs/races/zombiedog/sustain"
        sfx     = ""


Block code:
Code: [Select]
block load
{
es_xset wcs_poison 0
es_xset wcs_recover 0
es_xset Zombiedog by Kiwi
es_xmakepublic Zombiedog
}

block spawn
{
es_getgame wcs_gamecheck
if ("Counter-Strike: Source" in server_var(wcs_gamecheck)) do
{
es wcs_restrict event_var(userid) "tmp;galil;ak47;scout;sg552;awp;g3sg1;famas;m4a1;aug;sg550;glock;usp;p228;tmp;deagle;elite;fiveseven;m3;xm1014;mac10;mp5navy;ump45;p90;m249"
}
if ("Counter-Strike: Global Offensive" in server_var(wcs_gamecheck)) do
{
es wcs_restrict event_var(userid) "glock;elite;p250;tec9;cz75a;deagle;revolver;usp_silencer;hkp2000;fiveseven;nova;xm1014;mag7;m249;negev;mag7;mac10;mp7;ump45;p90;bizon;mp9;galilar;ak47;ssg08;sg556;awp;g3sg1;famas;m4a4;m4a1_silencer;aug;scar20;taser"
}
es wcs_givexp event_var(userid) 40
es_emitsound player event_var(userid) wcs/zombiedog_spawn.wav 1 1
es_tell event_var(userid) #multi #lightgreen[#greenZombiedog#lightgreen]#default You got#darkgreen 40 XP#default for playing a Kniferace!
es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid)
es est_effect_08 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 520 40 1 1 90 400 0 255 255 255 255 20 1
es est_effect_08 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 20 400 1 1 90 400 0 128 128 128 255 10 1
es est_effect 10 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 10 100 1 50 200 2 60 255 255 255 5
es_xmath wcs_z2 + 25
es est_effect 10 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 10 250 1 50 100 2 60 255 255 255 5
es_xmath wcs_z2 + 25
es est_effect 10 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 10 250 1 50 100 2 60 255 255 255 5
es_xmath wcs_z2 + 25
es est_effect 10 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 10 250 1 50 100 2 60 255 255 255 5
es_xmath wcs_z2 + 25
es est_effect 10 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 10 250 1 50 100 2 60 255 255 255 5
es_xmath wcs_z2 + 25
es est_effect 10 #a 0 decals/blood1.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 10 250 1 50 100 2 60 255 255 255 5
}

block death
{
es_emitsound player event_var(userid) wcs/zombiedog_death.wav 1 1
es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid)
es_xmath wcs_z1 + 17
es est_effect 11 #a 0 decals/bloodstain_003.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 0.5 0.4 255
}

block fear
{
if (server_var(wcs_dice) <= server_var(wcs_chance)) do
{
if (event_var(es_userdead) = 0) do
{
if (event_var(es_attackerdead) = 0) do
{
es wcs push event_var(userid) 0 0 500
es_delayed .3 wcs_setfx freeze event_var(userid) = 1 .3
es_delayed .8 wcs_setfx speed event_var(userid) = .50 1
es_tell event_var(userid) #multi #green[WCS]#lightgreen Anxiety - ZombieDog caused you to panic!
es_tell event_var(attacker) #multi #green[WCS]#lightgreen Anxiety - You makee your enemy go crazy!
}
}
}
}

block longjump
{
if (event_var(es_userdead) = 0) do
{
es wcs_setfx longjump event_var(userid) = server_var(wcs_multiplier)
es_tell event_var(userid) #multi #green[WCS]#lightgreen Dog Legs - Longjump activated.
}
}

block speed
{
if (event_var(es_userdead) = 0) do
{
es wcs_setfx speed event_var(userid) + server_var(wcs_speed)
es_xmath wcs_speed * 100
es_xmath wcs_speed + 100
es_tell event_var(userid) #multi #green[WCS]#lightgreen Zombiedog Agility - Your speed is now server_var(wcs_speed)%.
}
}

block health_armor
{
if (event_var(es_userdead) = 0) do
{
es wcs_setfx health event_var(userid) + server_var(wcs_health) 0
es wcs_give event_var(userid) item_kevlar
es_tell event_var(userid) #multi #green[WCS]#lightgreen Thick Skin - You got server_var(wcs_health) HP.
}
}

block infection
{
if (server_var(wcs_dice5) <= server_var(wcs_chance)) do
{
if (event_var(es_userdead) = 0) do
{
if (event_var(es_attackerdead) = 0) do
{
es_delayed 2 wcs_dealdamage event_var(userid) event_var(attacker) server_var(wcs_poison)
es_delayed 4 wcs_dealdamage event_var(userid) event_var(attacker) server_var(wcs_poison)
es_delayed 6 wcs_dealdamage event_var(userid) event_var(attacker) server_var(wcs_poison)
es_delayed 8 wcs_dealdamage event_var(userid) event_var(attacker) server_var(wcs_poison)
es_delayed 10 wcs_dealdamage event_var(userid) event_var(attacker) server_var(wcs_poison)
es_tell event_var(attacker) #multi #green[WCS]#lightgreen Zombiedog - You have infected your enemy and deal server_var(wcs_poison) per tick.
es_tell event_var(userid) #multi #green[WCS]#lightgreen Zombiedog - You have been infected by a Zombiedog.
es_emitsound player event_var(userid) wcs/zombiedog_atk.wav 1 1
es_emitsound player event_var(attacker) wcs/zombiedog_atk.wav 1 1
es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid)
es_xmath wcs_z1 + 90
es est_effect 11 #a 0 sprites/640hud9.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 3 .5 255
}
}
}
}

block respawn
{
if (server_var(wcs_dice6) <= server_var(wcs_chance)) do
{
if (event_var(es_userdead) = 1) do
{
es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid)
es_tell event_var(userid) #multi #green[WCS]#lightgreen Zombiedog - You will respawn again!
es wcs_centertell event_var(userid) Respawning in 2 seconds!
es_delayed 1 es wcs_centertell event_var(userid) Respawning in 1 seconds!
es_delayed 2 es wcs_centertell event_var(userid) You've been respawned!
es_delayed 2 wcs_spawn event_var(userid) 1
es_delayed 2.1 playerset location event_var(userid) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2)
es_xmath wcs_z2 + 10
es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 250 650 1 20 20 0 207 35 35 255 10
es_xmath wcs_z2 + 10
es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 650 1 .5 20 20 0 255 50 80 255 10
es_delayed 1 est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 250 650 1 20 20 0 207 35 35 255 10
es_delayed 1 est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 650 1 .5 20 20 0 255 50 80 255 10
}
}
}

block sustain
{
if (server_var(wcs_dice7) <= server_var(wcs_chance)) do
{
if (event_var(es_userdead) = 0) do
{
es_set wcs_recover event_var(dmg_health)
es_delayed 5 wcs_setfx health event_var(userid) + server_var(wcs_recover) 0
es_tell event_var(userid) #multi #green[WCS]#lightgreen Zombie Sustain - You will recover from event_var(es_attackername) attacks in 5 seconds!
}
}
}



Thanks alot for you time to improve the race, you sure it wouldnt work? i testet it and it worked without any problems for me



if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (event_var(es_userdead) = 1) then es_xdoblock wcs/races/zombiedog/zombiedogskill6


i used it that way but you right maybe its better to add this to the blocks too and give them some better names then just skill1 skill2 and so on :P


edit: is wcs_poison a standart var? i allways used poke_pp
edit2: nvm thats why you set it lol
« Last Edit: June 06, 2018, 05:37:36 PM by Kiwi :) »
Check our Community Page! www.FrostfallWCS.com!



Offline Kiwi :)

  • Level 7 Expert
  • *****
  • Posts: 170
  • Country: at
  • Owner from www.frostfallwcs.com
Re: [Race] Zombiedog
« Reply #6 on: June 06, 2018, 05:33:51 PM »
Is this the model that has the Resident Evil dog with its head split in half? That one used to freak me out :P

hahahhaah yea that model i use on my server for the race :P sadly i dont found a good model for csgo
Check our Community Page! www.FrostfallWCS.com!



Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1034
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: [Race] Zombiedog
« Reply #7 on: June 07, 2018, 09:23:52 AM »
Thanks alot for you time to improve the race, you sure it wouldnt work? i testet it and it worked without any problems for me

if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (event_var(es_userdead) = 1) then es_xdoblock wcs/races/zombiedog/zombiedogskill6

i used it that way but you right maybe its better to add this to the blocks too and give them some better names then just skill1 skill2 and so on :P

edit: is wcs_poison a standart var? i allways used poke_pp
edit2: nvm thats why you set it lol

I might be mistaken on the last skill but I would be surprised. The reason why it would not work is that you actually tell it to be saved in a variable but you never use it in the follow-up sentence :-)

The reason why it might have worked is because there probably were not a lot of players online when you tested it, because if you would take any damage in the time gap between your first proc it would be that damage you'd receive back in health.

For instance if you took 100 damage initially and it procced, but you then took 20 damage 4 seconds later, then you would receive 20 health twice, instead with your old code :-)
This skill is extremely hard to test out but I've made the exact same mistake when I was working on a similar skill, though with a varying in delay in the version I made :-)
So they are not exactly the same, but I noticed this bug by random when I was playing the race, and it took me a little while to see which mistake I had made :-)

In terms of poke_pp this variable was never set in the original release either, it is a custom variable that was set in a released race which seemed to have a working poison effect at the time. Through copy and pasting a lot on the forums that variable have just been used for poison skills, you can freely change it without anything happening, I just figured with very few releases on the new forum I'd rather make it right this time so people understand that this skill is actually poison related and won't have to be confused by the skill variable's odd names :-)

In terms of the wcs_dice and living check, no that does not really do a big difference on this level, it is purely that formatting wise it looks more clean in the .ini part of the race and you have more consistency. Name wise that is also just a formatting and cosmetic part, it is just easier to read the race this way for other people :-)
So neither of what you did there is wrong in any way, you can perfectly do that and it would not be an issue at all, but since I know you are getting better and better, I figured I'd give you some useful pointers for upcoming race releases as I am sure I'll be seeing more content released by you, and hey, we all aim to improve, so if I can be of help I'd love  to :-)
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."


Offline Kiwi :)

  • Level 7 Expert
  • *****
  • Posts: 170
  • Country: at
  • Owner from www.frostfallwcs.com
Re: [Race] Zombiedog
« Reply #8 on: June 07, 2018, 12:02:31 PM »
okay thanks alot manifest :D i will do it better on my next one :P
Check our Community Page! www.FrostfallWCS.com!



Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1034
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: [Race] Zombiedog
« Reply #9 on: June 07, 2018, 03:46:44 PM »
okay thanks alot manifest :D i will do it better on my next one :P

Don't get me wrong, this is great!
I have long wanted to see a race released with this specific skin in fact :-)
I really wish there were a dog with it's head carved into 3 parts or just had three heads as I would go and make a Cerberus creature type of race with that for sure :-)

But I believe you'll do EVEN better next time for sure :-)
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."