Doku
Level 2 Apprentice

Offline
 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.
|
|
|
|
|
Doku
Level 2 Apprentice

Offline
 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.
|
|
|
|
|
Doku
Level 2 Apprentice

Offline
 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? 
|
|
|
|
|
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]
|
 |
« 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
 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? 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
 United States
Posts: 89
|
 |
« Reply #7 on: April 15, 2009, 04:42:21 PM » |
|
If you take the 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: 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 
|
|
|
|
« Last Edit: April 15, 2009, 07:45:41 PM by Bob »
|
Logged
|
|
|
|
Doku
Level 2 Apprentice

Offline
 United States
Posts: 44
|
 |
« Reply #8 on: April 15, 2009, 04:44:30 PM » |
|
Yes, but it is supposed to go out upon death. I really like the idea  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
 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
 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
 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
 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
 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) 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
|
|
|
|
|