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 2008-12-06 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
December 06, 2008, 12:24:52 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Ultimate to make the person you are looking at die?  (Read 152 times)
cobaltflux
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 57



« on: March 06, 2008, 04:56:40 AM »

Looking for an ultimate that makes the person in your crosshair die/and or deal damage to. There should be a restriction of no killing teammates and it should only fire if your crosshair is on a person from the opposite team.

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

Posts: 1907



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #1 on: March 06, 2008, 07:25:16 AM »

should work!


Code:
block wcs_ICUDie
        es_xset team 0
        es_xset target 0
        es est_getviewplayer server_var(wcs_userid) target
        ifx true(target) do
        {
        es es_xexists wcs_exists userid server_var(target)
        es es_xif (server_var(wcs_exists) = 1) do
        {
        es_getplayerteam team server_var(target)
                if (server_var(team) != server_var(wcs_team)) do
                {
                es es_xgetplayername wcs_name server_var(target)
                es es_xgetplayername wcs_tmp2 server_var(wcs_userid)
                es est_damage server_var(wcs_userid) server_var(target) 300
                }
                else do
                {
                  es_tell server_var(wcs_userid) #multi #lightgreenNo killing teammates! ! !                 }
        }
        else do
        {
                es_tell server_var(wcs_userid) #multi #lightgreenNo one is in your Crosshair! #greenUltimate Failed
        }
 }
}
}
Logged


  connect 8.2.0.222:27015
cobaltflux
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 57



« Reply #2 on: March 06, 2008, 11:12:16 PM »

Almost everything worked after fixing the brackets.. but the ultimate failed part fails to trigger... I also noticed that if you kill an enemy with this ultimate, you get credited for the kill with whatever weapon you had out and equipped. I was holding a grenade and pressed the ultimate, and my target died and said died by the grenade... I've seen other races where if you die by their ultimate a skull shows up in the corner instead of the weapon they were holding.. can you change it so it kills them that way?

Thanks for the reply and helping out!
Logged
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 1907



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #3 on: March 07, 2008, 01:35:06 AM »

you mean so they suicide?
Logged


  connect 8.2.0.222:27015
cobaltflux
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 57



« Reply #4 on: March 07, 2008, 04:57:08 AM »

No no, I believe on chain lightning's ultimate, if you kill someone with it it shows up as something like: <YOURNAME> BIG SKULL THING <VICTIMS NAME>

Whereas with this, if I was holding my knife and used my ultimate, it would show: <YOURNAME> KNIFE PICTURE <VICTIMS NAME> I then would also get credited for a knife kill and get bonus XP...

Am I making sense? 
Logged
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 1907



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #5 on: March 07, 2008, 08:58:02 AM »

ok..just replace est_damage with es wcs_dealdamage

es wcs_damage server_var(wcs_userid) server_var(target) 300

i said 300 just because you never know how much hp a player could have..change it to whatever fits your server
i missed the braket under the block name,   should work now

Code:
block wcs_ICUDie
{
        es_xset team 0
        es_xset target 0
        es est_getviewplayer server_var(wcs_userid) target
        ifx true(target) do
        {
        es es_xexists wcs_exists userid server_var(target)
        es es_xif (server_var(wcs_exists) = 1) do
        {
        es_getplayerteam team server_var(target)
                if (server_var(team) != server_var(wcs_team)) do
                {
                es es_xgetplayername wcs_name server_var(target)
                es es_xgetplayername wcs_tmp2 server_var(wcs_userid)
                es wcs_dealdamage server_var(wcs_userid) server_var(target) 300
                }
                else do
                {
                  es_tell server_var(wcs_userid) #multi #lightgreenNo killing teammates! ! !                 }
        }
        else do
        {
                es_tell server_var(wcs_userid) #multi #lightgreenNo one is in your Crosshair! #greenUltimate Failed
        }
 }
}
}
Logged


  connect 8.2.0.222:27015
cobaltflux
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 57



« Reply #6 on: March 08, 2008, 09:07:01 PM »

Everything works except for this part again:  es_tell server_var(wcs_userid) #multi #lightgreenNo one is in your Crosshair! #greenUltimate Failed . I never see that message.

If you feel up to it, wanna try adding an effect to it? I think a lightning bolt coming down from the sky while playing a boom sound would be pretty neat. If that's too much to ask then don't worry about it, I appreciate the you have already provided
Logged
Rotgutts
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 292


Krechure Feature



b0n3s212
Merzlin
« Reply #7 on: March 08, 2008, 09:25:13 PM »

I thought it was es_xtell
Logged


Join our clan today!
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
December 04, 2008, 09:57:56 PM
gg
December 04, 2008, 09:46:16 PM
hey guys, how are you?
gonna sleep, cya tomorrow
December 03, 2008, 12:45:48 PM
@ bombkill : all mods should be compatible with WCS... but we can't be sure
@retrokboy : css server? provider? other mods?
December 03, 2008, 01:49:25 AM
I NEED SERVER HELP MY FORUM IS IN BUG REPORT PLEASE REPLY I NEED HALP
December 02, 2008, 10:05:01 PM
does anyone know where all the wcs compatible mods are listed or a website i can find them
December 02, 2008, 08:24:47 PM
/agree
Recent
[Today at 09:15:37 AM]

[Today at 08:33:01 AM]

[Today at 12:26:04 AM]

[December 05, 2008, 10:26:03 PM]

[December 05, 2008, 08:10:32 PM]

[December 05, 2008, 07:51:01 PM]

[December 05, 2008, 07:33:12 PM]

[December 05, 2008, 07:11:25 PM]

[December 05, 2008, 06:44:09 PM]

[December 05, 2008, 12:14:07 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.045 seconds with 25 queries.