Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2009-10-25 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
October 26, 2009, 12:31:52 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Remember to check on the FAQ before start posting.
It may save you time and effort.
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1] 2 3   Go Down
  Print  
Current Topic Rating: **** You have not rated this topic. Select a rating:
Author Topic: Automaton  (Read 2904 times)
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2268



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« on: October 16, 2007, 04:18:01 PM »

  Automaton   
                FIXED
NEW SKILL : AUTO AIM



First knife race with no player_spawn skills
no invisiblility no speed, no low gravity,extra hp or long jump
when you hit the enemy with your knife you have a chance to make them drop their weapon,if they do drop their weapon you are able to pic it up for x amount of seconds.you also have a chance to use the gun you are hit with for x amount of seconds. you have an "Automatic medical system" that restors your hp.You have a Automatic Targeting System that gives you a sg550 for x amount of seconds..

Weapon disintegrate - Disintegrate the attackers weapons apon your death
Confiscate - Take the enemies weapon
Automatic medic system - Automaticaly restore your hp
Automatic Target System - Auto Aim


the main thing about this race is the sounds.goes good with the sfx too.
all ingame sounds no need to download anything.[/b]

let me know what you
think
             


Code:
"30"
   {
    "name"              "Automaton"
    "author"            "HOLLIDAY"
    "required_level"    "0"
    "maximum_level"     "0"
    "allow_only"        "0"
    "teamlimit"         "0"
    "preloadcmd"        "0"
    "player_spawn_cmd"  "es est_restrictall event_var(userid);es es_delayed 0.2 est_unrestrict event_var(userid) weapon_knife;es es_delayed 0.5 est_give event_var(userid) weapon_knife;es est_playplayer event_var(userid) ambient/levels/labs/teleport_weird_voices1.wav;es est_playplayer event_var(userid) ambient/levels/citadel/strange_talk1.wav;es es_delayed 5 est_playplayer event_var(userid) hl1/fvox/automedic_on.wav"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "4"
    "numberoflevels"    "5"
    "skillnames"        "Weapon disintegrate|Confiscate|Automatic medic system|Automatic Target System"
    "skilldescr"        "Disintegrate the attackers weapons apon your death|Take the enemies weapon|Automaticaly restore your hp or a chance to get the attackers gun|Auto Aim"
    "skillcfg"          "player_death|player_attacker|player_victim|player_ultimate"

    "skill1_setting"    "es_xsetinfo wcs_chance 12|es_xsetinfo wcs_chance 14|es_xsetinfo wcs_chance 15|es_xsetinfo wcs_chance 25|es_xsetinfo wcs_chance 38"
    "racealias_btknife1""es est_stripplayer event_var(attacker) 1;es es_delayed 0.5 est_give event_var(attacker) weapon_knife"
    "skill1_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_btknife1"
    "skill1_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_xmath wcs_z1 + 85;es est_effect 11 #a 0 sprites/640_train.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 3 0.5 255"

    "skill2_setting"    "es_xsetinfo wcs_chance 10;es_xsetinfo wcs_duration 3|es_xsetinfo wcs_chance 15;es_xsetinfo wcs_duration 5|es_xsetinfo wcs_chance 20;es_xsetinfo wcs_duration 7|es_xsetinfo wcs_chance 35;es_xsetinfo wcs_duration 9|es_xsetinfo wcs_chance 40;es_xsetinfo wcs_duration 10"
    "racealias_fzd2"    "es est_getprimary wcs_tmp event_var(userid);es est_getsecondary wcs_tmp1 event_var(userid);es es_delayed 0.2 est_DropWeapon event_var(userid) 1;es es_delayed 0.3 est_DropWeapon event_var(userid) 2;es es_delayed 0.2 est_unrestrict event_var(attacker) server_var(wcs_tmp);es es_delayed 0.2 est_unrestrict event_var(attacker) server_var(wcs_tmp1);es es_delayed server_var(wcs_duration) est_restrict event_var(attacker) server_var(wcs_tmp);es es_delayed server_var(wcs_duration) est_restrict event_var(attacker) server_var(wcs_tmp1);es es_delayed server_var(wcs_duration) est_playplayer event_var(attacker) hl1/fvox/ammo_depleted.wav"
    "skill2_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es es_xif (event_var(weapon) = knife) then racealias_fzd2"
    "skill2_sfx"        "es est_effect 4 #a 0 sprites/tp_beam001.vmt event_var(userid) 2 5 10 20 100 155 255 255;es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es es_xif (server_var(wcs_rand) = 1) then est_effect 11 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 1 2.3 90"

    "skill3_setting"    "es_xsetinfo wcs_chance 10;es_xsetinfo wcs_hp 10|es_xsetinfo wcs_chance 25;es_xsetinfo wcs_hp 20|es_xsetinfo wcs_chance 30;es_xsetinfo wcs_hp 30|es_xsetinfo wcs_chance 33;es_xsetinfo wcs_hp 40|es_xsetinfo wcs_chance 38;es_xsetinfo wcs_hp 50"
    "racealias_knifebt3""es est_gethealth wcs_tmp event_var(userid);es es_xif(event_var(health) > 10) then racealias_knifebt4"
    "racealias_knifebt4""es es_delayed 6 est_healthadd event_var(userid) server_var(wcs_hp);es es_delayed 2 est_playplayer event_var(userid) npc/vort/health_charge.wav;es est_playplayer event_var(userid) hl1/fvox/health_dropping.wav;es es_delayed 5 est_playplayer event_var(userid) hl1/fvox/power_restored.wav"
    "skill3_cmd"        "es est_gethealth wcs_tmp event_var(userid);es es_xif(event_var(health) > 50) then racealias_knifebt5;es est_gethealth wcs_tmp event_var(userid);es es_xif(event_var(health) < 50) then racealias_knifebt3;es est_gethealth wcs_tmp event_var(userid);es es_xif(event_var(health) = 0) then est_playplayer event_var(userid) hl1/fvox/flatline.wav"
    "racealias_knifebt5""es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_knifebtt"
    "racealias_knifebtt""es est_getprimary wcs_tmp2 event_var(attacker);es est_unrestrict event_var(userid) server_var(wcs_tmp2);es es_delayed 0.2 est_give event_var(userid) server_var(wcs_tmp2);es es_delayed server_var(wcs_duration) est_restrict event_var(userid) server_var(wcs_tmp2);es est_playplayer event_var(userid) npc/combine_gunship/attack_start2.wav;es est_playplayer event_var)attacker npc/combine_gunship/attack_start2.wav"
    "racealias_knifebt6""es est_gethealth wcs_tmp event_var(userid);es es_xif(event_var(health) > 10) then racealias_knifebt7"
    "racealias_knifebt7""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 + 1920;es_xmath wcs_z2 + 20;es es_delayed 2 est_Effect 3 #a 4 effects/bluelaser1.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) 6 20 40 255 10 25 255"
    "skill3_sfx"        "es est_gethealth wcs_tmp event_var(userid);es es_xif(event_var(health) < 50) then racealias_knifebt6"

    "skill4_setting"    "es_xsetinfo wcs_maxtargets 1;es_xsetinfo wcs_radius 500;es_xsetinfo wcs_stab 2|es_xsetinfo wcs_maxtargets 1;es_xsetinfo wcs_radius 550;es_xsetinfo wcs_stab 2|es_xsetinfo wcs_maxtargets 1;es_xsetinfo wcs_radius 750;es_xsetinfo wcs_stab 3|es_xsetinfo wcs_maxtargets 1;es_xsetinfo wcs_radius 950;es_xsetinfo wcs_stab 4|es_xsetinfo wcs_maxtargets 1;es_xsetinfo wcs_radius 1120;es_xsetinfo wcs_stab 5"
    "skill4_cmd"        "es es_xdoblock wcs/WCSultimates/wcs_ulti_aim;es est_unrestrict server_var(wcs_userid) weapon_sg550;es es_delayed 0.1 est_give server_var(wcs_userid) weapon_sg550;es est_modplayerweapon server_var(wcs_userid) sg550 9000;es es_delayed server_var(wcs_stab) est_restrict server_var(wcs_userid) weapon_sg550"
    "skill4_sfx"        "0"
    "ultimate_cooldown" "13"
   }


block wcs_ulti_aim
paste this to the bottom of your es_WCSultimates.txt
Code:
block wcs_ulti_aim
 {
  es es_xif (server_var(wcs_debug) = "1") then echo wcs_ulti_aim start
  es_xsetinfo wcs_team_target 0
  es es_xgetplayerteam wcs_team server_var(wcs_userid)
  es es_xif (server_var(wcs_team) = 2) do
 {
  es_xsetinfo wcs_team_target 3
  es_xsetinfo wcs_team_targetn "#c!d"
 }
  es es_xif (server_var(wcs_team) = 3) do
 {
  es_xsetinfo wcs_team_target 2
  es_xsetinfo wcs_team_targetn "#t!d"
 }
  es es_xif (server_var(wcs_team_target) != "0") do
 {
  es_xsetinfo wcs_pcount 0
  es es_xgetlivingplayercount wcs_pcount server_var(wcs_team_target)
  es es_xif (server_var(wcs_pcount) > 0) do
  {
  es_xsetinfo wcs_wall "1"
  alias wcs_run_ulti_aim1 "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_targetid);wcs_run_ulti_aim2"
  alias wcs_run_ulti_aim2 "es_xsetinfo wcs_immunity 0;es es_xkeygetvalue wcs_immunity WCSuserdata server_var(wcs_targetid) ulti_immunity;es es_xif (server_var(wcs_immunity) = 0) then wcs_run_ulti_aim3;es es_xif (server_var(wcs_immunity) != 0) then es_xtell server_var(wcs_userid) #multi server_var(wcs_lng_ulti_immunity_a);es es_xif (server_var(wcs_immunity) != 0) then es_xtell server_var(wcs_targetid) #multi server_var(wcs_lng_ulti_immunity_v)"
  alias wcs_run_ulti_aim3 "es_xmath wcs_counter + 1;es es_xif (server_var(wcs_graphicfx) = 1) then es_xdelayed 3 est_setaim server_var(wcs_userid) server_var(wcs_targetid) 0;es es_cexec server_var(wcs_userid) r_screenoverlay sprites/reticle.vmt;wcs_run_ulti_aim4;es_xmath wcs_z1 + 50;es est_effect 3 #a 0 sprites/orangelight1.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 10 10 200 255 255 255"
  alias wcs_run_ulti_aim4 "es es_delayed 7 es_cexec server_var(wcs_userid) r_screenoverlay 0;es es_cexec server_var(wcs_userid) playgamesound hl1/fvox/targetting_system.wav;es es_delayed 1 es_cexec server_var(userid) playgamesound weapons/physcannon/physcannon_charge.wav;es es_delayed 2 es_cexec server_var(userid) playgamesound weapons/cguard/charging.wav;es es_delayed 3 es_cexec server_var(wcs_userid) playgamesound npc/attack_helicopter/aheli_charge_up.wav;es es_delayed 2 es_cexec server_var(userid) playgamesound weapons/cguard/charging.wav;es es_delayed server_var(wcs_stab) es_cexec server_var(wcs_userid) playgamesound weapons/physcannon/physcannon_tooheavy.wav"
  es_xsetinfo wcs_counter 0
  es est_Near wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_userid) "es es_xexists wcs_exists userid server_var(wcs_targetid);es es_xif (server_var(wcs_exists) = 1) then es_xif (server_var(wcs_counter) < server_var(wcs_maxtargets)) then wcs_run_ulti_aim1"
  es es_xif (server_var(wcs_counter) > 0) do
  {
    }
   es_xelse do
  {
   es_xsetinfo wcs_ultinotexec 1
  }
 }
   es_xelse do
 {
   es_xsetinfo wcs_ultinotexec 1
  }
  }
es es_xif (server_var(wcs_debug) = "1") then echo wcs_ulti_aim end
}

[attachment deleted by admin - older than 200 days!]
« Last Edit: October 18, 2007, 03:11:27 PM by HOLLIDAY » Logged

Frodo
Level 7 Expert
*****
Offline Offline

Posts: 854


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #1 on: October 16, 2007, 07:21:15 PM »

I think ultimate will not work.
Logged


Actually I found it as best Bux ever. Everything's automated!
c6464
Guest
« Reply #2 on: October 16, 2007, 08:00:44 PM »

The sounds, isnt it suppose make others hear the sound?
Logged
NovaKiller
<WCS coder>
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 783

Loves WCS. Loves to make races. Loves to play WCS


WWW
PlaxGunner
« Reply #3 on: October 16, 2007, 09:16:13 PM »

Frodo why do you think his ultimate dont work??
Logged

Frodo
Level 7 Expert
*****
Offline Offline

Posts: 854


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #4 on: October 16, 2007, 09:23:05 PM »

After 8 seconds someone else may use server_var(wcs_userid) so someone else will blow up, lol
Logged


Actually I found it as best Bux ever. Everything's automated!
=[LSS]= Soldier
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 538



WWW
Soldier62994
« Reply #5 on: October 16, 2007, 09:38:54 PM »

Set it to an enemy and that ultimate is even more awesome Cheesy
Logged


=[LSS]= NEW Wc3 Server
Frodo
Level 7 Expert
*****
Offline Offline

Posts: 854


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #6 on: October 16, 2007, 10:04:58 PM »

lol Smiley

Actually if someone uses delayed ultimates or even not delayed - you die, use your ulti then, someone else uses ulti, he blows up.
Logged


Actually I found it as best Bux ever. Everything's automated!
Monkerz
Level 0 Beginner

Offline Offline

United States United States

Posts: 18



« Reply #7 on: October 16, 2007, 11:04:20 PM »

I believe we have a need for wcs_dalias!
Logged
Frodo
Level 7 Expert
*****
Offline Offline

Posts: 854


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #8 on: October 16, 2007, 11:21:30 PM »

wcs_dalias is easy but would require rework of suicide skill.
Logged


Actually I found it as best Bux ever. Everything's automated!
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2268



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #9 on: October 17, 2007, 03:27:55 AM »

what? none of that is needed.the ultimate is simple suicide bomber.
it wont make someone els blow up.
how about a ultimate that turns you invisible for x amount of seconds?
thats a delayed ultimate it dosent turn anyone els thats invisible visible..
it works..does anyone who played this one have any feedback?

Quote
The sounds, isnt it suppose make others hear the sound?
you hear the sound as if it is cominng from the userid.
the userid always hears the sounds, and any one close, hears the sound coming from the userid
Logged

HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2268



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #10 on: October 17, 2007, 05:15:05 PM »

it explodes where you died
Logged

Frodo
Level 7 Expert
*****
Offline Offline

Posts: 854


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #11 on: October 17, 2007, 06:53:57 PM »

...!

If you use ulti then someone else use his ulti, he will be now in server_var(wcs_userid) so after 8 seconds it will blow up HIM not YOU!!!
Logged


Actually I found it as best Bux ever. Everything's automated!
kryptonite
<WCS coder>
Administrator
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 1109



WWW
sp0nk

myServer 85.190.38.232:27015
(Warning: click connects through Steam)
« Reply #12 on: October 17, 2007, 09:01:18 PM »

right!!!
This WILL blowup a random player -.-
probably you didn't see this on testing when you play alone/against bots.

Holliday, please remember not to use delayed aliases or block calls!
thats the main reason why I coded so many functions, and I know that the ultimates should be functions, too  :Huh:
like wcs_ulti_suicidebomber <userid> <magnitude> <radius>...

maybe you could use the wcs_dalias (delayed alias) function who someone else coded for us.
or, use the suicide as a function. (todo!!)
Logged
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2268



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #13 on: October 18, 2007, 12:15:28 AM »

i believe that is was stinkyfax that coded wcs_dialias
i will try and recode it.
it did work right when i tested it alone with bots..but i didnt think it would blow up a random player.
...i guess i learned somthing new.
Logged

[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 1354



WWW
bonggged

myServer 72.5.102.44:27015
(Warning: click connects through Steam)
« Reply #14 on: October 18, 2007, 01:00:21 AM »

cant wait for those functions.. krypt

Yea holliday the ultimate wont work. What you could do it is ADJUST the ulti block for suicide and put in a delay.
Or manually taget enemies near by..
est_Near at time of death and then give them a counter like ma_timebomb
or
est_Near at time of death then delay and est_kill them ? and add wcs_explode ??
« Last Edit: October 18, 2007, 02:32:01 AM by [Oddity]TeacherCreature » Logged

Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
October 25, 2009, 10:10:23 PM
So, I duck, goes into an apothacary and buys some chapstick, and says "put it on my bill"
October 25, 2009, 07:30:50 PM
well though, i am sure it uses CSS-provided redirection functions...
October 25, 2009, 07:02:58 PM
no its still same code.... connect //
October 25, 2009, 10:19:15 AM
Ye i know there are ways, at least redirect-lib (i think it should still work) and maybe some other hacky ways Tongue
October 25, 2009, 07:57:12 AM
berett... there is a way... and i found it...its working
October 25, 2009, 05:01:31 AM
So, i wen't to look for some camoflauge trousers, but i couldn't find any
BAWHAHAHHA
October 25, 2009, 12:38:46 AM
yeah i know but were can i find 'em?
Recent
[Today at 12:19:19 AM]

[October 25, 2009, 11:57:15 PM]

[October 25, 2009, 09:35:00 PM]

[October 25, 2009, 08:48:19 PM]

[October 25, 2009, 08:41:48 PM]

[October 25, 2009, 08:38:29 PM]

[October 25, 2009, 08:20:47 PM]

[October 25, 2009, 07:55:35 PM]

[October 25, 2009, 07:32:36 PM]

[October 25, 2009, 07:29:49 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.103 seconds with 23 queries.