July 21, 2019, 05:20:17 AM

Author Topic: Race Coding Help  (Read 1145 times)

Offline lathaldose

  • Level 0 Beginner
  • Posts: 9
Race Coding Help
« on: September 22, 2009, 06:54:03 PM »
I've got my race working from help on here. but i really want a "Short T & CT" is it able to be done? and some effects would be cool too if anyone can help please let me know.
Code: (eventscripts) [Select]
"##"
{
"name" "Manic Midget"
"author" "ThatOneGuy"
"shortdescription" "Look at that little guy go..."
"required_level" "0"
"maximum_level" "0"
"allow_only" "0"
"teamlimit" "0"
"restrict_shop" "<orb>"
"preloadcmd" "0"
"player_spawn_cmd" "0"
"round_start_cmd" "0"
"round_end_cmd" "0"
"numberofskills" "5"
"numberoflevels" "2"
"skillnames" "Mini Endurance|Quick Bastard|Sneaky Sneaky|Strong Midget|Magical, not Leprechaun"
"skilldescr" "Little guy got endurance!|Hes like the Flash, but smaller...|Shit, whats he hidin in now?|WTF! Hax!|Hes like a mini Zeus!"
"skillcfg" "player_spawn|player_victim|player_spawn|player_attacker|player_ultimate"
 
"skill1_setting" "es_xset wcs_speed 1.15;es_xset wcs_hp 15|es_xset wcs_speed 1.25;es_xset wcs_hp 25"
"skill1_cmd" "es_keygetvalue wcs_tmp WCSuserdata event_var(userid) speed;if (server_var(wcs_tmp) > server_var(wcs_speed)) then es_xset wcs_speed server_var(wcs_tmp);es_keysetvalue WCSuserdata event_var(userid) speed server_var(wcs_speed);es est_Speed event_var(userid) server_var(wcs_speed);es est_gethealth wcs_health event_var(userid);es_math wcs_health + server_var(wcs_hp);es est_sethealth event_var(userid) server_var(wcs_health);wcs_getlanguage wcs_lng wcs_lng_r_berserk;es_format wcs_lng server_var(wcs_lng) server_var(wcs_hp) server_var(wcs_speed);es_tell event_var(userid) #multi server_var(wcs_lng)"
"skill1_sfx" "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 20;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 50 3 10 0 0 0 20 250 255 0"
 
"skill2_setting" "es_xset wcs_chance 5|es_xset wcs_chance 15"
"racealias_ne1" "es_set wcs_dmg event_var(dmg_health);if (server_var(wcs_game) != server_var(wcs_game_css)) then es_xrand wcs_dmg 1 20;es est_Health event_var(userid) + event_var(dmg_health);wcs_getlanguage wcs_lng wcs_lng_r_evade;es_tell event_var(userid) #multi server_var(wcs_lng)"
"skill2_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_ne1"
"skill2_sfx" "if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then est_effect 3 #a 0 sprites/yellowflare.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) 1 5 5 255 255 255 255"
 
"skill3_setting" "es_xset wcs_invis 150;es_xset wcs_alpha 50|es_xset wcs_invis 95;es_xset wcs_alpha 60"
"skill3_cmd" "es_xcopy wcs_tmp wcs_invis;es_xmath wcs_tmp float;es_xmath wcs_tmp / -2.55;es_xmath wcs_tmp + 100;es est_rounddecimal wcs_tmp server_var(wcs_tmp) 0;es_keysetvalue WCSuserdata event_var(userid) invisp server_var(wcs_tmp);es est_setplayercolor event_var(userid) 255 255 255 server_var(wcs_invis) 1;wcs_getlanguage wcs_lng wcs_lng_r_invis;es_tell event_var(userid) #multi server_var(wcs_lng)"
"skill3_sfx" "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 20;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1)server_var(wcs_z1) 30 60 2 10 0 0 0 255 50 128 10"
 
"skill4_setting" "es_xsetinfo wcs_luck 10|es_xsetinfo wcs_luck 25"
"racealias_td3" "es est_physpush event_var(userid) 0 0 300;es est_shake event_var(userid) 1 10 10;wcs_getlanguage wcs_lng wcs_lng_r_distort;es es_xformat wcs_lng server_var(wcs_lng) event_var(es_attackername) event_var(es_username);es es_xtell event_var(attacker) #multi server_var(wcs_lng);es es_xtell event_var(userid) #multi server_var(wcs_lng)"
"skill4_cmd" "es es_xif (server_var(wcs_dice) <= server_var(wcs_luck)) then est_isalive wcs_alive event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_luck)) then es_xif (server_var(wcs_alive) = 1) then racealias_td3"
"skill4_sfx" "es es_xif (server_var(wcs_dice) <= server_var(wcs_luck)) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xif (server_var(wcs_dice) <= server_var(wcs_luck)) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es_xmath wcs_z1 + 20;es_xmath wcs_z2 + 20;es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) 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 5 10 0 0 0 255"
 
 
"skill5_setting" "es_xset wcs_maxtargets 4;es_xset wcs_radius 700|es_xset wcs_maxtargets 4;es_xset wcs_radius 750"
"skill5_cmd" "es_xdoblock wcs/WCSultimates/wcs_ulti_chain"
"skill5_sfx" "0"
"ultimate_cooldown" "30|15"

Offline Texno

  • Level 7 Expert
  • *****
  • Posts: 1144
  • Country: no
    • 1337Forums
Re: Race Coding Help
« Reply #1 on: September 22, 2009, 07:01:15 PM »
what do you mean by "Short T & CT" ?

Offline Texno

  • Level 7 Expert
  • *****
  • Posts: 1144
  • Country: no
    • 1337Forums
Re: Race Coding Help
« Reply #2 on: September 22, 2009, 07:04:55 PM »
ok, sorry thats not possible

Offline Berettonawak

  • French
  • Level 7 Expert
  • *****
  • Posts: 3147
  • Country: 00
  • Big Berettonawak is watching you...
    • Coding-Alliance.Com : A bunch of coders? Why not a bunch of players? :P
Re: Race Coding Help
« Reply #3 on: September 23, 2009, 02:35:29 PM »
ok, sorry thats not possible
What does he mean? :P
Quote from: N0life
Beret, keep yourself focusing on 1 project. Be sure to memorize that down since it sounds good.
Quote from: myself
i love tuna juice :D
Quote from: Pietro
=CA= Pietro: back
=CA= Pietro: sorry, was downstair sharing my chocolate with my cat
=CA= Pietro: you should see his face when he ate it xD
Quote from: myself
=CA= Berettonawak: just because you don't have hope doesn't mean we're doomed

Offline Texno

  • Level 7 Expert
  • *****
  • Posts: 1144
  • Country: no
    • 1337Forums
Re: Race Coding Help
« Reply #4 on: September 23, 2009, 05:22:06 PM »
ok, sorry thats not possible
What does he mean? :P
He told me on steam...
Can't remember hard understanding ^^

Offline lathaldose

  • Level 0 Beginner
  • Posts: 9
Re: Race Coding Help
« Reply #5 on: September 27, 2009, 04:49:37 AM »
you know the CT & T's there are say 5ft tall i want mine to look the same but be 3ft tall get it? i figer why can't they do that if they can make a headcrab

Petru

  • Guest
Re: Race Coding Help
« Reply #6 on: September 27, 2009, 02:12:00 PM »
you know the CT & T's there are say 5ft tall i want mine to look the same but be 3ft tall get it? i figer why can't they do that if they can make a headcrab
Its alot of hard work... :)