June 26, 2019, 11:06:06 PM

Author Topic: Approved ~ [RACE] The plant  (Read 4046 times)

Offline RoOF

  • Level 1 Trained Beginner
  • *
  • Posts: 34
  • [>] [<]
Approved ~ [RACE] The plant
« on: October 11, 2010, 06:28:49 PM »
Servus,

I have made a Plant Race. I hope I didn't make a Mistake. but on my Server it worked perfekt.





Code: [Select]
  "X"                                 
  {
    "name"              "The Plant"
    "author"            "RoOF"
    "shortdescription"  "(-extreme good for Office maps-)"
    "required_level"    "0"
    "maximum_level"     "0"
    "allow_only"        "0"
    "teamlimit"         "0"
    "preloadcmd"        "0"
    "player_spawn_cmd"  "es_xdoblock plant/spawn;es wcs_givexp event_var(userid) 60 0 1;es_tell event_var(userid) #multi #green:You get 60 XP for being a Knife Race!"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "6"
    "numberoflevels"    "4"
    "skillnames"        "Speed Up|Long-Jump|More Damage|Plant Escape|Posion|Built"
    "skilldescr"        "You have more Speed!|Jump Longer than your enemys|You Hit your Enemys with More Damage|When You get a hit by a Enemy you get Escape Speed|When you get hurted by an Enemy he gets a posion Atttack from you!|Spawn a more Plants so that your Enemys can't see you!"
    "skillcfg"          "player_spawn|player_spawn|player_attacker|player_victim|player_victim|player_ultimate"

    "skill1_setting"    "es_xset wcs_speed 1.2|es_xset wcs_speed 1.3|es_xset wcs_speed 1.5|es_xset wcs_speed 1.7"
    "skill1_cmd"        "es est_speed event_var(userid) server_var(wcs_speed);es_tell event_var(userid) #multi #green :Your Speed is set to #lightgreen server_var(wcs_speed)"
    "skill1_sfx"        "0"

    "skill2_setting"    "es_xsetinfo wcs_time 3.0|es_xsetinfo wcs_time 5.0|es_xsetinfo wcs_time 7.0|es_xsetinfo wcs_time 9.0|es_xsetinfo wcs_time 10.0|es_xsetinfo wcs_time 12.0"
    "skill2_cmd"        "es est_speed server_var(wcs_userid) 2.0;es est_SetGravity server_var(wcs_userid) 0.30;es es_xkeysetvalue WCSuserdata event_var(userid) longjump 1.60;racealias_tell1;"
    "racealias_tell1"   "es_tell event_var(userid) #multi #green:Longjump #lightgreen enabled"
    "skill2_sfx"        "0"

    "skill3_setting"    "es_xset wcs_chance 10;es_xset wcs_damage 3|es_xset wcs_chance 20;es_xset wcs_damage 4|es_xset wcs_chance 25;es_xset wcs_damage 5|es_xset wcs_chance 100;es_xset wcs_damage 10"
    "skill3_cmd"        "if (server_var(wcs_dice) <= server_var(wcs_chance)) then est_Damage event_var(attacker) event_var(userid) server_var(wcs_damage);racealias_tell2;if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_tell event_var(attacker) #multi #green You Hit event_var(es_username) with + #lightgreen server_var(wcs_damage) Damage;"
    "racealias_tell2"   "if (server_var(wcs_dice) <= server_var(wcs_chance)) then esnq wcx_center_text event_var(userid) You got a Hit  by event_var(es_attackername) with + server_var(wcs_damage) Damage;"
     "skill3_sfx"       "0"
   
    "skill4_setting"    "es_xsetinfo wcs_time 3;es_xset wcs_speed 1.2|es_xsetinfo wcs_time 4;es_xset wcs_speed 1.3|es_xsetinfo wcs_time 5;es_xset wcs_speed 1.5|es_xsetinfo wcs_time 6;es_xset wcs_speed 1.7"
    "skill4_cmd"        "es est_speed server_var(wcs_userid) 1.9;es es_xdelayed server_var(wcs_time) est_speed server_var(wcs_userid) server_var(wcs_speed);esnq wcx_center_text server_var(wcs_userid) You get a Hit by event_var(es_attackername) !Escape Now!;"
    "skill4_sfx"        "es est_playplayer event_var(userid) ambient/energy/zap9.wav"

    "skill5_setting"    "es_xset wcs_chance 15|es_xset wcs_chance 20|es_xset wcs_chance 25|es_xset wcs_chance 100"
    "skill5_cmd"        "es_xdoblock plant/posion"
    "skill5_sfx"        "0"

    "skill6_settings"   "0"
    "skill6_cmd"        "es_prop_physics_create server_var(wcs_userid) props/cs_office/plant01.mdl"
    "skill6_sfx"        "0"
    "ultimate_cooldown" "12"
  }
}
Code: [Select]
block posion
{
 if (server_var(wcs_dice) <= server_var(wcs_chance)) do
 {
  es est_freeze event_var(attacker) 1
  es wcx_dealpoison event_var(userid) event_var(attacker) 5 6
  es est_setplayercolor event_var(attacker) 0 255 0 255
  es_delayed 6 est_setplayercolor event_var(attacker) 255 255 255 255
  es_getplayerlocation x1 y1 z1 event_var(userid)
  es_xmath z1 + 50
  es_getplayerlocation x2 y2 z2 event_var(attacker)
  es_xmath z2 + 50
  es wcx_effect line server_var(x1) server_var(y1) server_var(z1) server_var(x2) server_var(y2) server_var(z2) sprites/tp_beam001.vmt 1 20 10 0 255 0 255 10
  es_delayed 3 est_freeze event_var(attacker) 0
  es_tell event_var(userid) #multi #green You infected event_var(es_attackername) with your #lightgreen Posion
  es_tell event_var(attacker) #multi #lightgreen event_var(es_username) #green infected you with Posion!
 }
}

block spawn
{
  es_xset x1 0
  es_xset y1 0
  es_xset z1 0
  es_xset x2 0
  es_xset y2 0
  es_xset z2 0
  es playerset model event_var(userid) props/cs_office/plant01.mdl
  es est_restrictall event_var(userid)
  es est_unrestrict event_var(userid) weapon_knife
  es est_unrestrict event_var(userid) weapon_c4
  es est_give event_var(userid) weapon_knife
  es_getplayerlocation x1 y1 z1 event_var(userid)
  es_getplayerlocation x2 y2 z2 event_var(userid)
  es_xmath z2 + 100
  es wcx_effect ring server_var(x1) server_var(y1) server_var(z1) 30 sprites/tp_beam001.vmt 3 5 5 0 255 0 255 10
}


Have Fun!

« Last Edit: October 12, 2010, 02:34:39 PM by La Muerte »
My Addon Manager:

Offline Yiyas

  • Level 7 Expert
  • *****
  • Posts: 494
  • Country: 00
  • The name's Bugger. De-Bugger.
Re: [RACE] The plant
« Reply #1 on: October 11, 2010, 06:30:40 PM »
Nice race, seems pretty fun and well coded :)

I'm just curious why for skill2 the longjump reduces to 1.0 after a certain time.
I watch porn for the music.

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 889
  • Country: de
  • Pokemon Master!
Re: [RACE] The plant
« Reply #2 on: October 11, 2010, 06:37:08 PM »
I like how you made a spelling mistake in the block and did the same mistake in the skill too xD

posion = poison? ;)

Offline Yiyas

  • Level 7 Expert
  • *****
  • Posts: 494
  • Country: 00
  • The name's Bugger. De-Bugger.
Re: [RACE] The plant
« Reply #3 on: October 11, 2010, 06:55:14 PM »
I like how you made a spelling mistake in the block and did the same mistake in the skill too xD

posion = poison? ;)
It works though :P
I watch porn for the music.

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 889
  • Country: de
  • Pokemon Master!
Re: [RACE] The plant
« Reply #4 on: October 11, 2010, 06:58:44 PM »
yes and thats the funny thing about it ;)

Offline xsnoboard

  • Level 0 Beginner
  • Posts: 16
  • Country: 00
  • <3 WCS :)
Re: [RACE] The plant
« Reply #5 on: October 12, 2010, 01:37:04 AM »
Plant Escape doesn't work for me. When I get hit it just slows me down.


Also the skill description for More Damage is missing.
« Last Edit: October 12, 2010, 01:38:43 AM by xsnoboard »

Offline RoOF

  • Level 1 Trained Beginner
  • *
  • Posts: 34
  • [>] [<]
Re: [RACE] The plant
« Reply #6 on: October 12, 2010, 11:15:16 AM »
So i updated it now! Now it have to work!


Added the feature:

For this race you get 60 Xp because you are a Knife race!

Have Fun!
My Addon Manager:

Offline Muerte

  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1856
  • Country: be
    • Fortitude
Re: Approved ~ [RACE] The plant
« Reply #7 on: October 12, 2010, 02:35:06 PM »
Nice, approved.
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 kabu

  • Level 0 Beginner
  • Posts: 17
  • <3 WCS :)
Re: Approved ~ [RACE] The plant
« Reply #8 on: October 16, 2010, 01:04:18 PM »
I didn't see the skin on my server  :(

Why?

Offline zloykif

  • Level 7 Expert
  • *****
  • Posts: 780
  • Country: ua
Re: Approved ~ [RACE] The plant
« Reply #9 on: October 16, 2010, 01:29:55 PM »
Because you didnt know what to do with 'block spawn'  ???

Offline RoOF

  • Level 1 Trained Beginner
  • *
  • Posts: 34
  • [>] [<]
Re: Approved ~ [RACE] The plant
« Reply #10 on: October 16, 2010, 01:30:56 PM »
Than you didn't load the "es_plant.txt". edit your autoexec.cfg and type "es_load plant"
My Addon Manager: