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-05-01 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
May 01, 2009, 05:37:38 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Hall of Fame - Designer
Must Visit it
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: Adding health  (Read 48 times)
chuymilligan
Level 0 Beginner

Offline Offline

United States United States

Posts: 8




chuymilligan
« on: April 29, 2009, 11:25:47 PM »

i know that this skill would be op and not allowed on many servers but i just want to know. would this be the right code to gain a maximum of 40 hp each time your shot. and if not what is the code?

Code:
"skill4_setting"    "es_xsetinfo wcs_health 15|es_xsetinfo wcs_health 19|es_xsetinfo wcs_health 22|es_xsetinfo wcs_health 24|es_xsetinfo wcs_health 27|es_xsetinfo wcs_health 33|es_xsetinfo wcs_health 36|es_xsetinfo wcs_health 40"
"skill4_cmd"       "es est_healthAdd event_var(userid) server_var(wcs_health)"
"racealias_bloodfx1""es est_effect 10 #a 0 vgui/gfx/vgui/cs_logo.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 80 90 1 10 10 0 255 0 0 255 2;es est_effect 10 #a 0 sprites/scanner.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 80 90 1 5 10 0 255 0 0 255 2"
"racealias_bloodsfx""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 + 40;es_xmath wcs_z2 + 40;es 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) 1 2 3 255 0 0 255;es est_Effect 3 #a 0 effects/black.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 1 1 255 0 0 255;racealias_bloodfx1"
"skill4_sfx"       "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_bloodsfx"
Logged
Ðioguinhu :D
Level 6 Experienced
******
Offline Offline

Brazil Brazil

Posts: 215



WWW
doug_tiozao

myServer 200.219.246.21:27040 ZM +WCS;200.219.246.54:27047 SURF + WCS
(Warning: click connects through Steam)
« Reply #1 on: April 29, 2009, 11:28:18 PM »

omfg, im not understanding, new guys are appearing here with skills asking if its correct, but the cmd is too short!! new way to code??
Logged

Learning Eventscripts and WCS lover *-*
I love WCS Grin
chuymilligan
Level 0 Beginner

Offline Offline

United States United States

Posts: 8




chuymilligan
« Reply #2 on: April 29, 2009, 11:30:41 PM »

i thought it looked too short which is why i asked...
Logged
Ðioguinhu :D
Level 6 Experienced
******
Offline Offline

Brazil Brazil

Posts: 215



WWW
doug_tiozao

myServer 200.219.246.21:27040 ZM +WCS;200.219.246.54:27047 SURF + WCS
(Warning: click connects through Steam)
« Reply #3 on: April 29, 2009, 11:33:46 PM »

eheheh, i'll fix it wait!
Logged

Learning Eventscripts and WCS lover *-*
I love WCS Grin
Ðioguinhu :D
Level 6 Experienced
******
Offline Offline

Brazil Brazil

Posts: 215



WWW
doug_tiozao

myServer 200.219.246.21:27040 ZM +WCS;200.219.246.54:27047 SURF + WCS
(Warning: click connects through Steam)
« Reply #4 on: April 29, 2009, 11:35:26 PM »

you want a skill that give you extra life everytime you shoot someone?
or normal life, in the start of the round?
Logged

Learning Eventscripts and WCS lover *-*
I love WCS Grin
chuymilligan
Level 0 Beginner

Offline Offline

United States United States

Posts: 8




chuymilligan
« Reply #5 on: April 29, 2009, 11:36:21 PM »

no extra life when I get shot. and i know its possible because someone else has it on our server. or vamping health would work too
Logged
Ðioguinhu :D
Level 6 Experienced
******
Offline Offline

Brazil Brazil

Posts: 215



WWW
doug_tiozao

myServer 200.219.246.21:27040 ZM +WCS;200.219.246.54:27047 SURF + WCS
(Warning: click connects through Steam)
« Reply #6 on: April 29, 2009, 11:48:24 PM »

ok i'll make it!
Logged

Learning Eventscripts and WCS lover *-*
I love WCS Grin
chuymilligan
Level 0 Beginner

Offline Offline

United States United States

Posts: 8




chuymilligan
« Reply #7 on: April 29, 2009, 11:49:13 PM »

thank you sooo much
Logged
Ðioguinhu :D
Level 6 Experienced
******
Offline Offline

Brazil Brazil

Posts: 215



WWW
doug_tiozao

myServer 200.219.246.21:27040 ZM +WCS;200.219.246.54:27047 SURF + WCS
(Warning: click connects through Steam)
« Reply #8 on: April 29, 2009, 11:54:39 PM »

Here it is:

Code:
"skill2_setting" "es_xsetinfo wcs_health 19|es_xsetinfo wcs_health 24|es_xsetinfo wcs_health 27|es_xsetinfo wcs_health 33|es_xsetinfo wcs_health 40"
"skill2_cmd" "es est_healthAdd event_var(userid) server_var(wcs_health)"
"racealias_bloodfx1" "es est_effect 10 #a 0 vgui/gfx/vgui/cs_logo.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 80 90 1 10 10 0 255 0 0 255 2;es est_effect 10 #a 0 sprites/scanner.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 80 90 1 5 10 0 255 0 0 255 2"
"racealias_bloodsfx" "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es_xmath wcs_z1 + 40;es_xmath wcs_z2 + 40;es 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) 1 2 3 255 0 0 255;es est_Effect 3 #a 0 effects/black.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 1 1 255 0 0 255;racealias_bloodfx1"
"skill2_sfx" "es_if (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_bloodsfx"

Almost same then yours but fixed!
Hope i helped, need help pm me!
Logged

Learning Eventscripts and WCS lover *-*
I love WCS Grin
chuymilligan
Level 0 Beginner

Offline Offline

United States United States

Posts: 8




chuymilligan
« Reply #9 on: April 30, 2009, 12:52:13 AM »

thank you!
Logged
Ðioguinhu :D
Level 6 Experienced
******
Offline Offline

Brazil Brazil

Posts: 215



WWW
doug_tiozao

myServer 200.219.246.21:27040 ZM +WCS;200.219.246.54:27047 SURF + WCS
(Warning: click connects through Steam)
« Reply #10 on: April 30, 2009, 01:27:35 AM »

you are welcome =D
Logged

Learning Eventscripts and WCS lover *-*
I love WCS Grin
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
April 30, 2009, 11:47:31 PM
i don't like that, but you can get cracked css for free, so why 5 dollars?
now please stop
April 30, 2009, 11:34:36 PM
lol berretton you cant do math 5 dollars is not the same as 20 dollars....by the way you know what kind hack does pietro want for $5..that's what you told chuck and what it do....
April 30, 2009, 10:58:12 PM
Pietro is not giving a bad reputation to WCA, although he's a bit quick to get nerved by noobs.
Ramon, yes he bought such a hack, it's called "buy new css for 20 dollars"
April 30, 2009, 10:14:25 PM
you said we didn't quit you noob? lol didn't you wrote in topic that i quit this site because berreton did than samuri did....don't lie pietro....oh yeah didn you sell model from chuck so he can pay you 5 bucks so you can buy a hack that you can't get vac ban?Huh
April 30, 2009, 06:56:56 PM
Tongue WCA sorry for the spam from me and the kid pietro
April 30, 2009, 06:40:01 PM
I would add more names to that list but I don't need anymore drama in my life let alone my thread Tongue
April 30, 2009, 06:32:07 PM
Yea im being a kid to but realy Pietro is giving WCA a bad reputation
Recent
[Today at 05:29:23 AM]

[Today at 04:42:31 AM]

[Today at 02:47:18 AM]

[Today at 02:43:52 AM]

[Today at 01:02:47 AM]

[Today at 12:56:20 AM]

[Today at 12:35:09 AM]

[Today at 12:04:29 AM]

[April 30, 2009, 11:55:07 PM]

[April 30, 2009, 11:37:23 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.048 seconds with 23 queries.