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-04-17 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
April 17, 2009, 09:26:15 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Join the new Facebook Warcraft-Source.com Group! It has been currently opened!
Join!
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: How do I code this?  (Read 65 times)
Doku
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 44



« on: April 15, 2009, 12:26:40 AM »

I am working on a race, but when it spawns I want it to have a constant glow trail comming from the head (preferably the eyes).  I think I remember seeing a race like this however I do not remember the name.  Can somebody help me with this code?
Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
WCA | Berettonawak [FR]
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 1878


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #1 on: April 15, 2009, 01:34:53 PM »

www.eventscripts.com/pages/Repeat
Logged

Doku
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 44



« Reply #2 on: April 15, 2009, 03:57:16 PM »

Ty but now my question is: es_xmath wcs_z1 +x

What number would I replace x with in order to make the trail come from his head?
Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
WCA | Berettonawak [FR]
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 1878


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #3 on: April 15, 2009, 04:03:11 PM »

10 i think, or maybe 20... try both Grin
Logged

Doku
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 44



« Reply #4 on: April 15, 2009, 04:06:50 PM »

TY although reading that article you posted has brought a few more questions to my mind.  Under what exactly do I put this?  This is supposed to be following the character at all times, so "player_spawn_cmd"?  My next question is how do I make it repeat until death?  Grin
Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
WCA | Berettonawak [FR]
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 1878


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #5 on: April 15, 2009, 04:08:45 PM »

player_spawn
and then in ANY player_death even you repeat stop "repeatname"
Logged

Doku
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 44



« Reply #6 on: April 15, 2009, 04:10:09 PM »

This isn't a skill however, it is always to be following the character and has no tie to any skill, so wouldn't I place it under the player_spawn_cmd?  Also my only player_death skill has a chance to resurrect the person so where exactly would I put it if I don't place it in the player_spawn_cmd?

*Edit
Would this code work if I placed the repeat create and repeat start under a player_spawn skill_cmd and if I place the repeat stop under a player_death skill_cmd?
Code:
repeat create Helspwneyes "es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 20;es est_effect 4 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 5 10 15 3 0 255 0 255"
repeat start Helspwneyes 5 0
repeat stop Helspwneyes
« Last Edit: April 15, 2009, 04:31:49 PM by Doku » Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
Bob
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 89



« Reply #7 on: April 15, 2009, 04:42:21 PM »

If you take the code:
Code
GeSHi (eventscripts):
es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 20;es est_effect 4 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 5 10 15 3 0 255 0 255
and make the life to 999 or somthing so it never goes out so:

es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 20;es est_effect 4 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 5 10 15 3 0 255 0 255

to:
Code
GeSHi (eventscripts):
es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 20;es est_effect 4 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 999 10 15 3 0 255 0 255

es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 20;es est_effect 4 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 999 10 15 3 0 255 0 255

and put that in the player_spawn_cmd

I really like the idea Tongue
« Last Edit: April 15, 2009, 07:45:41 PM by Bob » Logged
Doku
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 44



« Reply #8 on: April 15, 2009, 04:44:30 PM »

Yes, but it is supposed to go out upon death.

Quote
I really like the idea  Tongue
Ty, I thought of it after remembering having watched the movie Spawn as a child; so I figured I'd make a Spawn race.  I like the idea too so I might use it in some other races if it works.
« Last Edit: April 15, 2009, 05:16:33 PM by Doku » Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
Bob
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 89



« Reply #9 on: April 15, 2009, 04:48:05 PM »

ok so when you kill some1 or when you die?

EDIT* oh nvm then... ill edit again once i figure it out
« Last Edit: April 15, 2009, 04:51:43 PM by Bob » Logged
Doku
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 44



« Reply #10 on: April 15, 2009, 04:50:32 PM »

When you die
Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
Bob
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 89



« Reply #11 on: April 15, 2009, 07:34:06 PM »

i have a cool idea!

Once you spawn it is a chance on having the glowing eyes and it gives you more hp and/or speed dmg and that stuff (maybe for a skill)
Logged
Doku
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 44



« Reply #12 on: April 15, 2009, 08:10:07 PM »

That sounds cool.  I think I might get this to work now (I talked to HOLLIDAY and he helped me out.  THX HOLLIDAY)
Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
Bob
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 89



« Reply #13 on: April 15, 2009, 08:17:38 PM »

Ok i just made the skill if you want it (havent tested it yet tho)

Code
GeSHi (eventscripts):
   "skill1_settings"   "es_xsetinfo wcs_chance 15;es_xsetinfo wcs_speed 1.2;es_xsetinfo wcs_hp 120|es_xsetinfo wcs_chance 35;es_xsetinfo wcs_speed 1.4;es_xsetinfo wcs_hp 140|es_xsetinfo wcs_chance 55;es_xsetinfo wcs_speed 1.6;es_xsetinfo wcs_hp 160|es_xsetinfo wcs_chance 75;es_xsetinfo wcs_speed 1.8;es_xsetinfo wcs_hp 180"
   "racealias_glow1"   "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es est_SetHealth event_var(userid) server_var(wcs_hp);es est_speed event_var(userid) server_var(wcs_speed)"
   "skill1_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then repeat est_IsAlive wcs_alive event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then racealias_glow1"
   "skill1_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then repeat est_IsAlive wcs_alive event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 20;es est_effect 4 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 5 10 15 3 0 255 0 255"
 
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 07:00:46 PM
chuck, the shout box is meant to shout. This is not considered as spamming.
Today at 04:10:06 PM
Today at 06:39:20 AM
omg stop spamming the shout box...it getting more annoin and that's how now everyone doesn't want to chat here
April 16, 2009, 05:40:22 PM
I still be needing more help on this one
ARRRGGHHH

http://warcraft-source.com/board/index.php/topic,6981.0.html
Recent
[Today at 08:23:14 PM]

[Today at 08:20:43 PM]

[Today at 08:13:07 PM]

by WyD
[Today at 07:44:21 PM]

[Today at 07:37:02 PM]

[Today at 07:35:02 PM]

[Today at 06:10:17 PM]

[Today at 06:05:09 PM]

by Hiro
[Today at 05:41:15 PM]

[Today at 05:34:22 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.128 seconds with 24 queries.