December 16, 2018, 03:44:22 AM

Author Topic: Poison Smoke Grenade  (Read 3412 times)

Offline Onslaught

  • Level 7 Expert
  • *****
  • Posts: 470
  • WWW.SNK-KLAN.NET
    • WWW.SNK-KLAN.NET
Poison Smoke Grenade
« on: September 15, 2008, 02:52:00 AM »
Been searching for this, the only one i can find is holliday's nightfire.  I've heard it doesnt work with the .77 version, and it would seem it doesnt.  Anyone have a poison smoke nade code?

This is what i have in my race, the poison nade does not work. 

Code: [Select]
"21"
  {
    "name"              "Doom"
    "author"            "Onslaught"
    "shortdescription"  "Poison-Based Elemental"
    "required_level"    "0"
    "maximum_level"     "0"
    "allow_only"        "0"
    "teamlimit"         "0"
    "restrict_shop"     "0"
    "preloadcmd"        "0"
    "player_spawn_cmd"  "es est_setplayercolor event_var(userid) 29 29 29 229 1"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "5"
    "numberoflevels"    "4"
    "skillnames"        "Poison Bullets|Toxic Vapors|Altered Perception|Disciple|Doom "
    "skilldescr"        "Poison the enemy (10-20%)|Smoke Grenades will produce toxic vapors|You psychologically distort your enemy's view of reality

(10-20%)|When attacked, a disciple of hell spawns to help you|Switch locations with a random enemy"
    "skillcfg"          "player_attacker|player_spawn|player_attacker|player_victim|player_ultimate"


    "skill1_setting"    "es_xsetinfo wcs_chance 10;es_xsetinfo poke_pp 2|es_xsetinfo wcs_chance 13;es_xsetinfo poke_pp 3|es_xsetinfo wcs_chance

16;es_xsetinfo poke_pp 4|es_xsetinfo wcs_chance 20;es_xsetinfo poke_pp 6"
    "racealias_ivy1"    "es es_delayed 5 es wcs_dealdamage event_var(attacker) event_var(userid) server_var(poke_pp);es es_delayed 10 es wcs_dealdamage

event_var(attacker) event_var(userid) server_var(poke_pp);es es_delayed 5 es wcs_dealdamage event_var(attacker) event_var(userid) server_var(poke_pp);es

es_xtell event_var(attacker) #multi #lightgreen:You have poisoned your enemy;es es_xtell event_var(userid) #multi #lightgreen: You have been poisoned by a

#greenPoison Bullet"
    "skill1_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_ivy1"
    "racealias_ivysfx1" "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 15;es est_effect 7 #a 0 sprites/smoke.vmt

server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 100 10;es est_effect 7 #a 0.2 sprites/smoke.vmt server_var(wcs_x1) server_var(wcs_y1)

server_var(wcs_z1) 100 10;es_xmath wcs_x1 + 15;es est_effect 7 #a 0.6 sprites/smoke.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 100 10;es

est_effect 7 #a 0.8 sprites/smoke.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 100 10"
    "skill1_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_ivysfx1"

 
    "skill2_setting"    "es_xsetinfo ep_radius 0.7;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 0.9;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius

1;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 1.2;es_xsetinfo ep_damage 1"
    "skill2_cmd"        "es es_delayed 3 es_xtell event_var(userid) #multi #green[Poison Smoke Grenades] #lightgreenYour Smoke grenades will release a

#greenPoison Gas"
    "skill2_sfx"        "0"

    "skill3_setting"    "es_xset wcs_chance 10|es_xset wcs_chance 13|es_xset wcs_chance 16|es_xset wcs_chance 20"
    "skill3_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_newmdl"
    "racealias_newmdl"  "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es est_effect 11 #a 0 models\effects\portalfunnel.mdl

server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 3 5 255;es est_fade event_var(userid) 0 .3 .3 215 25 251 75;es est_drug event_var(userid)

.3;es_delayed .1 est_drunk event_var(userid) .3;es_setplayerprop event_var(userid) CBasePlayer.m_iFOV 500;es_delayed .1 es_setplayerprop event_var(userid)

CBasePlayer.m_iFOV 0;es est_playplayer event_var(userid) ambient/wind/wind_snippet2.wav;es est_playplayer event_var(attacker)

ambient/wind/wind_snippet2.wav"
    "skill3_sfx"        "0"

    "skill4_setting"    "es_xsetinfo wcs_bott 1|es_xsetinfo wcs_bott 1.5|es_xsetinfo wcs_bott 2|es_xsetinfo wcs_bott 3"
    "racealias_botkll2" "es es_xif (server_var(wcs_team) = 2) then es es_delayed server_var(wcs_bott) kick joe;es es_xif (server_var(wcs_team) = 3) then

es es_delayed server_var(wcs_bott) kick moe;es es_xif (server_var(wcs_team) = 3) then es es_delayed 2 ma_renderfx moe 16;es es_xif (server_var(wcs_team) =

2) then es es_delayed 2 ma_renderfx joe 16"
    "racealias_bot22"   "es est_GetViewCoord event_var(userid) wcs_x1 wcs_y1 wcs_z1;es es_xif (server_var(wcs_team) = 2) then est_setViewCoord joe

server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1);es es_xif (server_var(wcs_team) = 3) then est_setViewCoord moe server_var(wcs_x1)

server_var(wcs_y1) server_var(wcs_z1);racealias_botkll2"
    "skill4_cmd"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es es_xif (server_var(wcs_team) = 2) then es bot_add t joe;es

es_xif (server_var(wcs_team) = 3) then es bot_add ct moe;es es_xif (server_var(wcs_team) = 2) then es est_spawn joe 1;es es_xif (server_var(wcs_team) = 2)

then es est_teleport joe event_var(userid);es es_xif (server_var(wcs_team) = 3) then es est_spawn moe 1;es es_xif (server_var(wcs_team) = 3) then es

est_teleport moe event_var(userid);racealias_bot22"
    "skill4_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 40;es est_effect 10 #a 0 sprites/640hud9.vmt

server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 950 190 3 150 100 0 155 115 100 200 1"


   "skill5_setting"    "es_xrand wcs_dmg 5 15|es_xrand wcs_dmg 7 18|es_xrand wcs_dmg 8 19|es_xrand wcs_dmg 10 21"
    "racealias_ftw5"    "es est_playplayer server_var(wcs_userid) ambient/atmosphere/cave_hit5.wav;es es_xgetplayername wcs_name server_var(wcs_player);es

es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_player);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_userid);es es_delayed 3

est_teleport server_var(wcs_player) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2);es es_delayed 3 est_teleport server_var(wcs_userid)

server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1);es es_xtell server_var(wcs_userid) #multi #lightgreenYou will trade places with #green

server_var(wcs_name) #lightgreenin three seconds;es es_xgetplayername wcs_name server_var(wcs_player);es es_xtell server_var(wcs_player) :you will trade

places with server_var(wcs_name) in three seconds"
    "skill5_cmd"        "es_xsetinfo wcs_player 0;es es_xif (server_var(wcs_team) = 2) then est_randplayer wcs_player #c!d;es es_xif (server_var(wcs_team)

= 3) then est_randplayer wcs_player #t!d;es es_xexists wcs_exists userid server_var(wcs_player);es es_xif (server_var(wcs_exists) = 1) then

racealias_ftw5"
    "skill5_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_xmath wcs_z1 + 40;es est_effect 10 #a 0

effects/ar2_altfire1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 950 190 3 150 100 0 155 115 100 200 1;es est_effect 10 #a 0

cs_havana/pupil_l.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 950 190 3 150 100 0 155 115 100 200 1"
    "ultimate_cooldown" "10"
  }


added es_load HOLLIDAY to my autoexec


uploaded HOLLIDAY folder into eventscripts directory.
« Last Edit: September 15, 2008, 03:14:06 AM by Onslaught »
GUESS WHAT?!¿!
You're a fag :)

         

Offline HOLLIDAY

  • <Race Maker>
  • Watchdog
  • Level 7 Expert
  • *****
  • Posts: 2849
  • Country: 00
  • of all the things ive lost i miss my mind the most
    • HOLLIDAYWCS.COM
Re: Poison Smoke Grenade
« Reply #1 on: September 15, 2008, 05:58:25 AM »
Poison Smoke Grenades form my shopmenu2

Code: (eventscripts) [Select]
event smokegrenade_detonate
{
   es_xset poisonsmoke 0
   es es_xkeygetvalue poisonsmoke WCSuserdata event_var(userid) poisonsmoke
   es es_xif (server_var(poisonsmoke) = 1) do
   {
   es_xset ep_radius2 150
   es_xset ep_damage2 2
   es_xset smoke_loc 0
   es ma_effect 11 #a 0 server_var(x) server_var(y) server_var(z) 0 255 0 10 200 30 2
   if (server_var(ep_radius) greaterthan "0") then es_xmath ep_radius2 * server_var(ep_radius)
   if (server_var(ep_damage) greaterthan "0") then es_xmath ep_damage2 * server_var(ep_damage)
   es_format ep_radius2 "DamageRadius %1" server_var(ep_radius2)
   es_format ep_damage2 "Damage %1" server_var(ep_damage2)
   es_give event_var(userid) point_hurt
   es_setinfo hurt_index server_var(eventscripts_lastgive)
   es_fire event_var(userid) point_hurt addoutput "OnUser1 !self,kill,-1,20"
   es_fire event_var(userid) point_hurt addoutput server_var(ep_damage2)
   es_fire event_var(userid) point_hurt addoutput server_var(ep_radius2)
   es_fire event_var(userid) point_hurt addoutput "DamageType 32"
   es_createvectorstring smoke_loc event_var(x) event_var(y) event_var(z)
     es_setindexprop server_var(hurt_index) "CBaseEntity.m_vecOrigin" server_var(smoke_loc)
   es_fire event_var(userid) point_hurt TurnOn
   es_fire event_var(userid) point_hurt FireUser1
   es est_playplayer event_var(userid) ambient/machines/gas_loop_1.wav
   es es_delayed 8 es_stopsound event_var(userid) ambient/machines/gas_loop_1.wav
     }
}


Code: (eventscripts) [Select]
event player_spawn
{
//most likely in a spawn skill or player_spawn_cmd
es es_xkeysetvalue WCSuserdata event_var(userid) poisonsmoke 1
}

Offline Onslaught

  • Level 7 Expert
  • *****
  • Posts: 470
  • WWW.SNK-KLAN.NET
    • WWW.SNK-KLAN.NET
Re: Poison Smoke Grenade
« Reply #2 on: September 15, 2008, 03:52:05 PM »
Thanks holliday, I'll test when I get home today.  I'm assuming to just replace the other smokegrenade coding in es_HOLLIDAY with these 2 snips, and then es_reload.  Simple as that?  Do I just keep the code as is in the race?
GUESS WHAT?!¿!
You're a fag :)

         

Offline HOLLIDAY

  • <Race Maker>
  • Watchdog
  • Level 7 Expert
  • *****
  • Posts: 2849
  • Country: 00
  • of all the things ive lost i miss my mind the most
    • HOLLIDAYWCS.COM
Re: Poison Smoke Grenade
« Reply #3 on: September 15, 2008, 09:15:09 PM »
...dont remember what the code for the Nightfire smoke grenades look like,  may be exactly the same   lol

Offline Onslaught

  • Level 7 Expert
  • *****
  • Posts: 470
  • WWW.SNK-KLAN.NET
    • WWW.SNK-KLAN.NET
Re: Poison Smoke Grenade
« Reply #4 on: September 15, 2008, 09:25:58 PM »
Poison Smoke Grenades form my shopmenu2

Code: (eventscripts) [Select]
event smokegrenade_detonate
{
   es_xset poisonsmoke 0
   es es_xkeygetvalue poisonsmoke WCSuserdata event_var(userid) poisonsmoke
   es es_xif (server_var(poisonsmoke) = 1) do
   {
   es_xset ep_radius2 150
   es_xset ep_damage2 2
   es_xset smoke_loc 0
   es ma_effect 11 #a 0 server_var(x) server_var(y) server_var(z) 0 255 0 10 200 30 2
   if (server_var(ep_radius) greaterthan "0") then es_xmath ep_radius2 * server_var(ep_radius)
   if (server_var(ep_damage) greaterthan "0") then es_xmath ep_damage2 * server_var(ep_damage)
   es_format ep_radius2 "DamageRadius %1" server_var(ep_radius2)
   es_format ep_damage2 "Damage %1" server_var(ep_damage2)
   es_give event_var(userid) point_hurt
   es_setinfo hurt_index server_var(eventscripts_lastgive)
   es_fire event_var(userid) point_hurt addoutput "OnUser1 !self,kill,-1,20"
   es_fire event_var(userid) point_hurt addoutput server_var(ep_damage2)
   es_fire event_var(userid) point_hurt addoutput server_var(ep_radius2)
   es_fire event_var(userid) point_hurt addoutput "DamageType 32"
   es_createvectorstring smoke_loc event_var(x) event_var(y) event_var(z)
     es_setindexprop server_var(hurt_index) "CBaseEntity.m_vecOrigin" server_var(smoke_loc)
   es_fire event_var(userid) point_hurt TurnOn
   es_fire event_var(userid) point_hurt FireUser1
   es est_playplayer event_var(userid) ambient/machines/gas_loop_1.wav
   es es_delayed 8 es_stopsound event_var(userid) ambient/machines/gas_loop_1.wav
     }
}


Code: (eventscripts) [Select]
event player_spawn
{
//most likely in a spawn skill or player_spawn_cmd
es es_xkeysetvalue WCSuserdata event_var(userid) poisonsmoke 1
}

They are different, here is your nightfire:

Code: [Select]
event smokegrenade_detonate
{
   es_keygetvalue wcs_tmp WCSuserdata event_var(userid) allow_HOLLIDAY
   ifx true(wcs_tmp) do
{
es_xsetinfo ep_radius2 150
es_xsetinfo ep_damage2 2
es_xsetinfo smoke_loc 0
es ma_effect 11 #a 0 server_var(x) server_var(y) server_var(z) 0 255 0 10 200 30 2
if (server_var(ep_radius) greaterthan "0") then es_xmath ep_radius2 * server_var(ep_radius)
if (server_var(ep_damage) greaterthan "0") then es_xmath ep_damage2 * server_var(ep_damage)
es_format ep_radius2 "DamageRadius %1" server_var(ep_radius2)
es_format ep_damage2 "Damage %1" server_var(ep_damage2)
es_give event_var(userid) point_hurt
es_setinfo hurt_index server_var(eventscripts_lastgive)
es_fire event_var(userid) point_hurt addoutput "OnUser1 !self,kill,-1,20"
es_fire event_var(userid) point_hurt addoutput server_var(ep_damage2)
es_fire event_var(userid) point_hurt addoutput server_var(ep_radius2)
es_fire event_var(userid) point_hurt addoutput "DamageType 32"
es_createvectorstring smoke_loc event_var(x) event_var(y) event_var(z)
es_setindexprop server_var(hurt_index) "CBaseEntity.m_vecOrigin" server_var(smoke_loc)
es_fire event_var(userid) point_hurt TurnOn
es_fire event_var(userid) point_hurt FireUser1
 }
}

Code: [Select]
event player_death
{
   es_keygetvalue wcs_tmp WCSuserdata event_var(userid) allow_css_consol
   ifx true(wcs_tmp) do
   {
    es_emitsound entity event_var(userid) npc/combine_gunship/ping_patrol.wav 1.0 0.3
   }
}


This is the code taken from nightfire race file:

Code: [Select]
"skill2_setting"    "es_xsetinfo ep_radius 0.7;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 0.9;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius

1;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 1.2;es_xsetinfo ep_damage 1"
    "skill2_cmd"        "es es_delayed 3 es_xtell event_var(userid) #multi #green[Poison Smoke Grenades] #lightgreenYour Smoke grenades will release a

#greenPoison Gas"
    "skill2_sfx"        "0"

So where do i go from here as far as using the new code?  And I've wondered, what tells the race, or a skill, to use a file like es_HOLLIDAY?  It loads off autoexec, but what stops every race from having the abilities i guess i'm asking?  How is it only attributed to the one race?
« Last Edit: September 15, 2008, 09:31:40 PM by Onslaught »
GUESS WHAT?!¿!
You're a fag :)

         

Offline EvilGenuix

  • Level 7 Expert
  • *****
  • Posts: 224
Re: Poison Smoke Grenade
« Reply #5 on: September 15, 2008, 09:56:21 PM »
Hey Onslaught,

It is this: es es_xkeysetvalue WCSuserdata event_var(userid) poisonsmoke 1

Simply if you put that it sets the value to 1 and so allows it, on other races they still have a 0 so cant use it, the problem is sometimes it doesnt reset properly on death/race change but if coded exactly should work I think,

Evil Genuix

Offline EvilGenuix

  • Level 7 Expert
  • *****
  • Posts: 224
Re: Poison Smoke Grenade
« Reply #6 on: September 15, 2008, 11:14:22 PM »
Code: [Select]
"skill2_setting"    "es_xsetinfo ep_radius 0.7;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 0.9;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 1;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 1.2;es_xsetinfo ep_damage 1"
    "skill2_cmd"        "es es_xkeysetvalue WCSuserdata event_var(userid) poisonsmoke 1;es es_xdelayed 3 es_xtell event_var(userid) #multi #green[Poison Smoke Grenades] #lightgreenYour Smoke grenades will release a #greenPoison Gas"
    "skill2_sfx"        "0"

That is how it should be I think where the poisonsmoke 1 is in the cmd, I guess that is why NightFire doesnt work, (as you said it is missing that)?

Evil Genuix

Offline maRioHD

  • Level 0 Beginner
  • Posts: 12
Re: Poison Smoke Grenade
« Reply #7 on: September 16, 2008, 01:03:47 AM »
It does work, but you need skill 1 to be active since it has the
Code: (eventscripts) [Select]
es es_xkeysetvalue WCSuserdata event_var(userid) allow_HOLLIDAY 1 Which activates the poison smoke grenades, and with out the ep_damage or ep_radius of the smokes it doesnt work(I believe). That why he didn't add a different value to the skill like poisonsmoke.

And I am not sure need to check the file and see if player_death has this in it
Code: (eventscripts) [Select]
event player_death
es es_xkeysetvalue WCSuserdata event_var(userid) allow_HOLLIDAY 0

That is what tells wcs only that race can have the poison smoke grenades because when people switch races they have to die which activates that code, then the new race no longer has poison smoke grenades ability.

Offline Onslaught

  • Level 7 Expert
  • *****
  • Posts: 470
  • WWW.SNK-KLAN.NET
    • WWW.SNK-KLAN.NET
Re: Poison Smoke Grenade
« Reply #8 on: September 16, 2008, 04:39:34 AM »
Found the problem in his original code:


He spelled player wrong, and allow_holliday needs to be set to 1 for it to work.
Code: [Select]
event plyer_spawn
{
   es es_xkeysetvalue WCSuserdata event_var(userid) allow_HOLLIDAY 0
   es es_xkeysetvalue WCSuserdata event_var(userid) allow_m3 0
   es es_xkeysetvalue WCSuserdata event_var(userid) allow_css_consol 0
   es es_xkeysetvalue WCSuserdata event_var(userid) allow_portal 0
}



This is what my setup looks like now, but can someone help me with the player_death part?  Every race can now use poison smoke nades.  This goes back to my original question.  This script loads, but it doesnt have anything that says "ok, only use this code for this race."  It's like it loads for every race?!?
Code: [Select]
block load
{
  es_load corelib
  es_xdoblock corelib/noisy_on
  es_xsetinfo wcs_x1 0
  es_xsetinfo wcs_y1 0
  es_xsetinfo wcs_z1 0
  es_xsetinfo wcs_x2 0
  es_xsetinfo wcs_y2 0
  es_xsetinfo wcs_z2 0
  es_xsetinfo wcs_x 0
  es_xsetinfo wcs_y 0
  es_xsetinfo wcs_z 0
  es_xsetinfo wcs_tmp 0
  es_xsetinfo wcs_tmp1 0
  es_xsetinfo wcs_tmp2 0
  es_xsetinfo w_rg_t 0
  es_xsetinfo w_rg_o 0
  es_xsetinfo w_rg_guns "m3;"
  es_xsetinfo w_rg_radius 200
  es_xsetinfo w_rg_magnitude 300
  es_xsetinfo bbp_x1 0
  es_xsetinfo bbp_y1 0
  es_xsetinfo bbp_z1 0
  es_xsetinfo bbp_x2 0
  es_xsetinfo bbp_y2 0
  es_xsetinfo bbp_z2 0
  es_xsetinfo wcs_add 0
  es_xsetinfo wcs_add1 0
  es_xsetinfo eps_x1 0
  es_xsetinfo eps_y1 0
  es_xsetinfo eps_z1 0
  es_xsetinfo eps_x2 0
  es_xsetinfo eps_y2 0
  es_xsetinfo eps_z2 0
  es_xsetinfo es_blind 0
  es_xload portal
  }
block unload
{
  es_xunload corelib
  es_xdoblock corelib/noisy_off
  es_xunload portal
}

event player_spawn
{
   es es_xkeysetvalue WCSuserdata event_var(userid) allow_HOLLIDAY 1
   es es_xkeysetvalue WCSuserdata event_var(userid) allow_m3 0
   es es_xkeysetvalue WCSuserdata event_var(userid) allow_css_consol 0
   es es_xkeysetvalue WCSuserdata event_var(userid) allow_portal 0
}
event player_death
{

 es es_xkeysetvalue WCSuserdata event_var(userid) allow_HOLLIDAY 0

}

event smokegrenade_detonate
{
   es_keygetvalue wcs_tmp WCSuserdata event_var(userid) allow_HOLLIDAY
   ifx true(wcs_tmp) do
{
es_xsetinfo ep_radius2 150
es_xsetinfo ep_damage2 2
es_xsetinfo smoke_loc 0
es ma_effect 11 #a 0 server_var(x) server_var(y) server_var(z) 0 255 0 10 200 30 2
if (server_var(ep_radius) greaterthan "0") then es_xmath ep_radius2 * server_var(ep_radius)
if (server_var(ep_damage) greaterthan "0") then es_xmath ep_damage2 * server_var(ep_damage)
es_format ep_radius2 "DamageRadius %1" server_var(ep_radius2)
es_format ep_damage2 "Damage %1" server_var(ep_damage2)
es_give event_var(userid) point_hurt
es_setinfo hurt_index server_var(eventscripts_lastgive)
es_fire event_var(userid) point_hurt addoutput "OnUser1 !self,kill,-1,20"
es_fire event_var(userid) point_hurt addoutput server_var(ep_damage2)
es_fire event_var(userid) point_hurt addoutput server_var(ep_radius2)
es_fire event_var(userid) point_hurt addoutput "DamageType 32"
es_createvectorstring smoke_loc event_var(x) event_var(y) event_var(z)
es_setindexprop server_var(hurt_index) "CBaseEntity.m_vecOrigin" server_var(smoke_loc)
es_fire event_var(userid) point_hurt TurnOn
es_fire event_var(userid) point_hurt FireUser1
 }
}



EDIT: Mario, you are right and that's the answer i was lookin for all along.  Nightfire's works because in his skill1 he has es_keysetvalue WCSuserdata event_var(userid) allow_HOLLIDAY 1.

So there i go thinking that adding that to my race would make it work....nope.  Tried putting it in the player_spawn_cmd, and in the skill as follows, in the same manner as nightfire.  What the f am i doing wrong!

Code: [Select]
"skill2_setting"    "es_xsetinfo ep_radius 0.7;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 0.9;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius

1;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 1.2;es_xsetinfo ep_damage 1"
    "skill2_cmd"        "es_keysetvalue WCSuserdata event_var(userid) allow_HOLLIDAY 1;es es_delayed 3 es_xtell event_var(userid) #multi #green[Poison

Smoke Grenades] #lightgreenYour Smoke grenades will release a #greenPoison Gas"
    "skill2_sfx"        "0"
« Last Edit: September 16, 2008, 05:20:12 AM by Onslaught »
GUESS WHAT?!¿!
You're a fag :)

         

Offline Onslaught

  • Level 7 Expert
  • *****
  • Posts: 470
  • WWW.SNK-KLAN.NET
    • WWW.SNK-KLAN.NET
Re: Poison Smoke Grenade
« Reply #9 on: September 16, 2008, 03:02:54 PM »
Works now.  Not sure what the hell was goin wrong with the old code, but the new one that holliday provided works well. 

Poison Smoke Grenades form my shopmenu2

Code: (eventscripts) [Select]
event smokegrenade_detonate
{
   es_xset poisonsmoke 0
   es es_xkeygetvalue poisonsmoke WCSuserdata event_var(userid) poisonsmoke
   es es_xif (server_var(poisonsmoke) = 1) do
   {
   es_xset ep_radius2 150
   es_xset ep_damage2 2
   es_xset smoke_loc 0
   es ma_effect 11 #a 0 server_var(x) server_var(y) server_var(z) 0 255 0 10 200 30 2
   if (server_var(ep_radius) greaterthan "0") then es_xmath ep_radius2 * server_var(ep_radius)
   if (server_var(ep_damage) greaterthan "0") then es_xmath ep_damage2 * server_var(ep_damage)
   es_format ep_radius2 "DamageRadius %1" server_var(ep_radius2)
   es_format ep_damage2 "Damage %1" server_var(ep_damage2)
   es_give event_var(userid) point_hurt
   es_setinfo hurt_index server_var(eventscripts_lastgive)
   es_fire event_var(userid) point_hurt addoutput "OnUser1 !self,kill,-1,20"
   es_fire event_var(userid) point_hurt addoutput server_var(ep_damage2)
   es_fire event_var(userid) point_hurt addoutput server_var(ep_radius2)
   es_fire event_var(userid) point_hurt addoutput "DamageType 32"
   es_createvectorstring smoke_loc event_var(x) event_var(y) event_var(z)
     es_setindexprop server_var(hurt_index) "CBaseEntity.m_vecOrigin" server_var(smoke_loc)
   es_fire event_var(userid) point_hurt TurnOn
   es_fire event_var(userid) point_hurt FireUser1
   es est_playplayer event_var(userid) ambient/machines/gas_loop_1.wav
   es es_delayed 8 es_stopsound event_var(userid) ambient/machines/gas_loop_1.wav
     }
}


Code: (eventscripts) [Select]
event player_spawn
{
//most likely in a spawn skill or player_spawn_cmd
es es_xkeysetvalue WCSuserdata event_var(userid) poisonsmoke 1
}

es es_xkeysetvalue WCSuserdata event_var(userid) poisonsmoke 1 is to be used in the skill_cmd as evil said.

Only thing is, if you use this, you have to create the following like i did or else the skill will work for all races:

Code: [Select]
event player_death
{
es es_xkeysetvalue WCSuserdata event_var(userid) poisonsmoke 0
}

Thanks holliday for all your help so far, as I know I'm probably pissing you off with constant questions  blockade
GUESS WHAT?!¿!
You're a fag :)

         

Offline Bob

  • Level 7 Expert
  • *****
  • Posts: 212
Re: Poison Smoke Grenade
« Reply #10 on: September 18, 2008, 07:01:57 PM »
can some1 put where I put all of this stuff?

Offline Onslaught

  • Level 7 Expert
  • *****
  • Posts: 470
  • WWW.SNK-KLAN.NET
    • WWW.SNK-KLAN.NET
Re: Poison Smoke Grenade
« Reply #11 on: September 18, 2008, 07:36:16 PM »
ok, first your gonna use this code as the skill:

Code: (eventscripts) [Select]

    "skill2_setting"    "es_xsetinfo ep_radius 0.7;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 0.9;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius1;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 1.2;es_xsetinfo p_damage 1"
    "skill2_cmd"        "es es_xkeysetvalue WCSuserdata event_var(userid) poisonsmoke 1;es es_delayed 3 es_xtell event_var(userid) #multi #green[Poison Smoke Grenades] #lightgreenYour Smoke grenades will release a #greenPoison Gas"
    "skill2_sfx"        "0"


Then, create a folder inside of eventscripts folder and call it something like poison.  Then stick a file called poison.txt inside of that, which would contain this:

Code: (eventscripts) [Select]
event smokegrenade_detonate{   es_xset poisonsmoke 0   es es_xkeygetvalue poisonsmoke WCSuserdata event_var(userid) poisonsmoke   es es_xif (server_var(poisonsmoke) = 1) do   {    es_xset ep_radius2 150    es_xset ep_damage2 2    es_xset smoke_loc 0    es ma_effect 11 #a 0 server_var(x) server_var(y) server_var(z) 0 255 0 10 200 30 2    if (server_var(ep_radius) greaterthan "0") then es_xmath ep_radius2 * server_var(ep_radius)    if (server_var(ep_damage) greaterthan "0") then es_xmath ep_damage2 * server_var(ep_damage)    es_format ep_radius2 "DamageRadius %1" server_var(ep_radius2)    es_format ep_damage2 "Damage %1" server_var(ep_damage2)    es_give event_var(userid) point_hurt    es_setinfo hurt_index server_var(eventscripts_lastgive)    es_fire event_var(userid) point_hurt addoutput "OnUser1 !self,kill,-1,20"    es_fire event_var(userid) point_hurt addoutput server_var(ep_damage2)    es_fire event_var(userid) point_hurt addoutput server_var(ep_radius2)    es_fire event_var(userid) point_hurt addoutput "DamageType 32"    es_createvectorstring smoke_loc event_var(x) event_var(y) event_var(z)     es_setindexprop server_var(hurt_index) "CBaseEntity.m_vecOrigin" server_var(smoke_loc)    es_fire event_var(userid) point_hurt TurnOn    es_fire event_var(userid) point_hurt FireUser1    es est_playplayer event_var(userid) ambient/machines/gas_loop_1.wav    es es_delayed 8 es_stopsound event_var(userid) ambient/machines/gas_loop_1.wav     }}



event player_death
{
es es_xkeysetvalue WCSuserdata event_var(userid) poisonsmoke 0
}



In your autoexec.cfg, located in your /cstrike/cfg/ directory I believe, add the line es_load poison

Reload the race and autoexec, and that should be it.

GUESS WHAT?!¿!
You're a fag :)

         

Offline Bob

  • Level 7 Expert
  • *****
  • Posts: 212
Re: Poison Smoke Grenade
« Reply #12 on: September 18, 2008, 07:51:36 PM »
Cool thankyou. Im going to use that. and so can i have it like this for a race?

Code: [Select]
   {
    "name"              "Dark Mind"
    "author"            "Bob"
    "shortdescription"  "Knife Only|Health|Poison Smoke Nade|Mirror Dmg|Mind Control"
    "required_level"    "350"
    "allow_only"        "0"
    "preloadcmd"        "0"
    "player_spawn_cmd"  "es es_xkeysetvalue WCSuserdata event_var(userid) restricted <all>;es es_xdelayed 1.1 est_RestrictAll event_var(userid);es es_xif (server_var(wcs_game) = server_var(wcs_game_css)) then racealias_fp_css;es es_xif (server_var(wcs_game) = server_var(wcs_game_dods)) then racealias_fp_dods;es wcs_givexp event_var(userid) 10 0 0;es es_xkeysetvalue WCSuserdata event_var(userid) poisonsmoke 1"
    "racealias_fp_css"  "es es_xdelayed 1.4 est_unrestrict event_var(userid) weapon_knife;es es_xdelayed 1.5 est_unrestrict event_var(userid) weapon_c4;es es_xdelayed 1.6 est_unrestrict event_var(userid) weapon_hegrenade;es es_xdelayed 1.7 est_unrestrict event_var(userid) weapon_smokegrenade;es es_xdelayed 1.8 est_unrestrict event_var(userid) weapon_flashbang"
    "racealias_fp_dods" "es es_xdelayed 1.4 est_unrestrict event_var(userid) weapon_spade"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "4"
    "numberoflevels"    "5"
    "skillnames"        "Dark Suit|Dark Gas|Rethink|Come to the Dark Side"
    "skilldescr"        "Knife Only|Health|Poison Smoke Nade|Mirror Dmg|Mind Control"
    "skillcfg"          "player_spawn|player_spawn|player_victim|player_attacker"

    "skill1_setting"    "es_xsetinfo wcs_hp 25|es_xsetinfo wcs_hp 50|es_xsetinfo wcs_hp 75|es_xsetinfo wcs_hp 100|es_xsetinfo wcs_hp 125|
    "skill1_cmd"        "0"
    "skill1_sfx"        "0"

    "skill2_setting"    "es_xsetinfo ep_radius 0.7;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 0.9;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 1;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 1.2;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 1.4;es_xsetinfo ep_damage 1"
    "skill2_cmd"        "es es_delayed 3 es_xtell event_var(userid) #multi #green[Poison Smoke Grenades] #lightgreenYour Smoke grenades will release a #greenPoison Gas"
    "skill2_sfx"        "0"

    "skill3_setting"    "es_xsetinfo wcs_chance 21;es_xsetinfo wcs_mirror 11|es_xsetinfo wcs_chance 29;es_xsetinfo wcs_mirror 13|es_xsetinfo wcs_chance 35;es_xsetinfo wcs_mirror 15|es_xsetinfo wcs_chance 43;es_xsetinfo wcs_mirror 17|es_xsetinfo wcs_chance 50;es_xsetinfo wcs_mirror 20"
    "racealias_wiz2"    "es wcs_dealdamage event_var(userid) event_var(attacker) server_var(wcs_mirror);es es_xtell event_var(userid) #multi #lightgreen:You have done #green server_var(wcs_mirror) mirror damage;es es_xtell event_var(attacker) #multi #lightgreen:You got #green server_var(wcs_mirror) mirror damage"
    "skill3_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_wiz2"
    "racealias_wizardx2""es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es_xmath wcs_z1 + 40;es_xmath wcs_z2 + 40;es 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) 3 2 5 255 160 130 255;es_xmath wcs_y1 + 170;es 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) 3 2 5 255 160 130 255;es_xmath wcs_x1 + 70;es 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) 3 2 5 255 160 130 255"
    "racealias_wizsfx2" "es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es est_effect 10 #a 2.5 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 30 50 3 50 100 0 255 160 130 255 2;es_xmath wcs_z1 + 50;es est_effect 11 #a 0 sprites/orangelight1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 3 1 255;racealias_wizardx2"
    "skill3_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_wizsfx2"   

    "skill4_setting"    "es_xsetinfo wcs_chance 3|es_xsetinfo wcs_chance 4|es_xsetinfo wcs_chance 5|es_xsetinfo wcs_chance 6|es_xsetinfo wcs_chance 7"
"racealias_en21" "es_xsetinfo wcs_level1 0;es_xsetinfo wcs_level2 0;es_keygetvalue wcs_level1 WCSuserdata event_var(attacker) level;es_keygetvalue wcs_level2 WCSuserdata event_var(userid) level;es_math wcs_level1 - server_var(wcs_level2);if (server_var(wcs_level1) > 0) then racealias_en22; if (server_var(wcs_level1) <= 0) then racealias_en23;racealias_en25"
"racealias_en22" "es_getplayerteam wcs_team event_var(userid);es_xsetinfo wcs_pcount 0;es_getlivingplayercount wcs_pcount server_var(wcs_team);if (server_var(wcs_pcount) > 1) then racealias_en24"
"racealias_en24" "es_keysetvalue WCSuserdata event_var(userid) swap server_var(wcs_team);es ma_swapteam event_var(userid);es_tell event_var(userid) #green You now fight for your enemies due to Enchant skill by event_var(es_attackername). ;es_tell event_var(attacker) #green event_var(es_username) Now fights for you due to Enchant skill. ;racealias_en27"
"racealias_en27" "es est_csay event_var(userid) YOUR TEAM IS SWAPPED;es_delayed 1.5 est_csay event_var(userid) YOUR TEAM IS SWAPPED;es_delayed 3 est_csay event_var(userid) YOUR TEAM IS SWAPPED;es_tell event_var(userid) #green Your team will be swapped back on round end."
"racealias_en23" "es est_speed event_var(userid) 0.8;es es_xdelayed 5 wcs_removefx speed event_var(userid);es_tell event_var(userid) #green you was slowed by Enchant skill ;es_tell event_var(attacker) #green you slowed enemy by Enchant skill "
"racealias_en25" "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es est_Effect 3 #a 0 effects/strider_pinch_dudv_dx60.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) 8 60 50 255 255 255 205"
    "skill4_cmd"        "if (server_var(wcs_dice) <= server_var(wcs_chance)) then est_IsAlive wcs_alive event_var(userid);if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then racealias_en21"
    "skill4_sfx"        "0"
   }

Offline Onslaught

  • Level 7 Expert
  • *****
  • Posts: 470
  • WWW.SNK-KLAN.NET
    • WWW.SNK-KLAN.NET
Re: Poison Smoke Grenade
« Reply #13 on: September 18, 2008, 08:07:43 PM »
Code: [Select]

   {
    "name"              "Dark Mind"
    "author"            "Bob"
    "shortdescription"  "Knife Only|Health|Poison Smoke Nade|Mirror Dmg|Mind Control"
    "required_level"    "350"
    "allow_only"        "0"
    "preloadcmd"        "0"
    "player_spawn_cmd"  "es es_xkeysetvalue WCSuserdata event_var(userid) restricted <all>;es es_xdelayed 1.1 est_RestrictAll event_var(userid);es es_xif (server_var(wcs_game) = server_var(wcs_game_css)) then racealias_fp_css;es es_xif (server_var(wcs_game) = server_var(wcs_game_dods)) then racealias_fp_dods;es wcs_givexp event_var(userid) 10 0 0;es es_xkeysetvalue WCSuserdata event_var(userid) poisonsmoke 1"
    "racealias_fp_css"  "es es_xdelayed 1.4 est_unrestrict event_var(userid) weapon_knife;es es_xdelayed 1.5 est_unrestrict event_var(userid) weapon_c4;es es_xdelayed 1.6 est_unrestrict event_var(userid) weapon_hegrenade;es es_xdelayed 1.7 est_unrestrict event_var(userid) weapon_smokegrenade;es es_xdelayed 1.8 est_unrestrict event_var(userid) weapon_flashbang"
    "racealias_fp_dods" "es es_xdelayed 1.4 est_unrestrict event_var(userid) weapon_spade"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "4"
    "numberoflevels"    "5"
    "skillnames"        "Dark Suit|Dark Gas|Rethink|Come to the Dark Side"
    "skilldescr"        "Health|Poison Smoke Nade|Mirror Dmg|Mind Control"
    "skillcfg"          "player_spawn|player_spawn|player_victim|player_attacker"

    "skill1_setting"    "es_xsetinfo wcs_hp 25|es_xsetinfo wcs_hp 50|es_xsetinfo wcs_hp 75|es_xsetinfo wcs_hp 100|es_xsetinfo wcs_hp 125|
    "skill1_cmd"        "0"
    "skill1_sfx"        "0"

    "skill2_setting"    "es_xsetinfo ep_radius 0.7;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 0.9;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius1;es_xsetinfo ep_damage 1|es_xsetinfo ep_radius 1.2;es_xsetinfo p_damage 1"   
    "skill2_cmd"        "es es_xkeysetvalue WCSuserdata event_var(userid) poisonsmoke 1;es es_delayed 3 es_xtell event_var(userid) #multi #green[Poison Smoke Grenades] #lightgreenYour Smoke grenades will release a #greenPoison Gas"   
    "skill2_sfx"        "0"

    "skill3_setting"    "es_xsetinfo wcs_chance 21;es_xsetinfo wcs_mirror 11|es_xsetinfo wcs_chance 29;es_xsetinfo wcs_mirror 13|es_xsetinfo wcs_chance 35;es_xsetinfo wcs_mirror 15|es_xsetinfo wcs_chance 43;es_xsetinfo wcs_mirror 17|es_xsetinfo wcs_chance 50;es_xsetinfo wcs_mirror 20"
    "racealias_wiz2"    "es wcs_dealdamage event_var(userid) event_var(attacker) server_var(wcs_mirror);es es_xtell event_var(userid) #multi #lightgreen:You have done #green server_var(wcs_mirror) mirror damage;es es_xtell event_var(attacker) #multi #lightgreen:You got #green server_var(wcs_mirror) mirror damage"
    "skill3_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_wiz2"
    "racealias_wizardx2""es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es_xmath wcs_z1 + 40;es_xmath wcs_z2 + 40;es 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) 3 2 5 255 160 130 255;es_xmath wcs_y1 + 170;es 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) 3 2 5 255 160 130 255;es_xmath wcs_x1 + 70;es 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) 3 2 5 255 160 130 255"
    "racealias_wizsfx2" "es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es est_effect 10 #a 2.5 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 30 50 3 50 100 0 255 160 130 255 2;es_xmath wcs_z1 + 50;es est_effect 11 #a 0 sprites/orangelight1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 3 1 255;racealias_wizardx2"
    "skill3_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_wizsfx2"   

    "skill4_setting"    "es_xsetinfo wcs_chance 3|es_xsetinfo wcs_chance 4|es_xsetinfo wcs_chance 5|es_xsetinfo wcs_chance 6|es_xsetinfo wcs_chance 7"
"racealias_en21" "es_xsetinfo wcs_level1 0;es_xsetinfo wcs_level2 0;es_keygetvalue wcs_level1 WCSuserdata event_var(attacker) level;es_keygetvalue wcs_level2 WCSuserdata event_var(userid) level;es_math wcs_level1 - server_var(wcs_level2);if (server_var(wcs_level1) > 0) then racealias_en22; if (server_var(wcs_level1) <= 0) then racealias_en23;racealias_en25"
"racealias_en22" "es_getplayerteam wcs_team event_var(userid);es_xsetinfo wcs_pcount 0;es_getlivingplayercount wcs_pcount server_var(wcs_team);if (server_var(wcs_pcount) > 1) then racealias_en24"
"racealias_en24" "es_keysetvalue WCSuserdata event_var(userid) swap server_var(wcs_team);es ma_swapteam event_var(userid);es_tell event_var(userid) #green You now fight for your enemies due to Enchant skill by event_var(es_attackername). ;es_tell event_var(attacker) #green event_var(es_username) Now fights for you due to Enchant skill. ;racealias_en27"
"racealias_en27" "es est_csay event_var(userid) YOUR TEAM IS SWAPPED;es_delayed 1.5 est_csay event_var(userid) YOUR TEAM IS SWAPPED;es_delayed 3 est_csay event_var(userid) YOUR TEAM IS SWAPPED;es_tell event_var(userid) #green Your team will be swapped back on round end."
"racealias_en23" "es est_speed event_var(userid) 0.8;es es_xdelayed 5 wcs_removefx speed event_var(userid);es_tell event_var(userid) #green you was slowed by Enchant skill ;es_tell event_var(attacker) #green you slowed enemy by Enchant skill "
"racealias_en25" "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es est_Effect 3 #a 0 effects/strider_pinch_dudv_dx60.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) 8 60 50 255 255 255 205"
    "skill4_cmd"        "if (server_var(wcs_dice) <= server_var(wcs_chance)) then est_IsAlive wcs_alive event_var(userid);if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then racealias_en21"
    "skill4_sfx"        "0"
   }


Your skilldescr can only have as many descriptions as there are skills, if you want to let the player know that it is knife only, you can put that in the "skilldescription" like you did, but leave it out of skilldescr.

I fixed the poison skill, you forgot to put that new line in there "es es_xkeysetvalue WCSuserdata event_var(userid) poisonsmoke 1"
Only other thing I see off hand, you have your 4th skill activating on attack.  Is it supposed to, or is it supposed to activate on ultimate button?  If ultimate button, it needs to be player_ultimate and not player_attacker in the skillcfg
GUESS WHAT?!¿!
You're a fag :)

         

Offline [Ҳ]™

  • Level 5 Trained Intermediate
  • *****
  • Posts: 104
  • Country: us
    • [x] Corps Online Community
Re: Poison Smoke Grenade
« Reply #14 on: September 30, 2008, 02:15:13 PM »
Is anything else needed to make the poison smoke cloud to work?

Just the skill code + the eventscript/addon folder ("poison")?