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-06-15 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
June 15, 2008, 01:41:04 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

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: prep_hurt  (Read 45 times)
Zumble
Level 7 Expert
*****
Offline Offline

Russian Federation

Posts: 175


o_O


WWW
zumble

myServer 77.220.182.48:27015
(Warning: click connects through Steam)
« on: June 08, 2008, 11:13:41 PM »

I've just understood that prep_hurt and player_hurt are just different things.The first one is manually fired pre event and another is post event block.Am I right?So can I change player's health in prep_hurt with wcs.command(userid).healthadd(x)?
And another question.What value does wcs.Command(userid).ReturnDict('Speed') command shows?Current speed or speed on spawn?
« Last Edit: June 08, 2008, 11:22:26 PM by Zumble » Logged

Jeff
WCS ESP Dev Team
Level 7 Expert

Offline Offline

United States United States

Posts: 400



WWW
beastrace91
« Reply #1 on: June 09, 2008, 03:17:54 PM »

Yes in prep_hurt you can catch damage to prevent a user from dieing but I would use wcs.Command(<userid>).SaveLife(<amount>) due to health add effects some the internal dicts to increase the user's max health. (For urposes of the .Heal() command and .Regen() ect.)

Python is case sensitive so the value you need to return to get a user's speed would be
Code
GeSHi (python):
wcs.Command(userid).ReturnDict('speed')
and this value will always equal the users speed as long you have been using the wcs.Command(<userid>).Speed(<value>) and wcs.Command(<userid>).SpeedAdd(<amount>) commands (which you should be using for WCSP )

~J3ff
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
June 14, 2008, 12:19:10 AM
June 13, 2008, 03:03:35 PM
Howard Webb - Rest in Hell
June 13, 2008, 11:13:33 AM
!@#$% It didn't work
June 13, 2008, 11:07:46 AM
Nvm, i think i figured it out, i had to use this thingy STEAM_0:1:15758148
June 13, 2008, 10:36:09 AM
Yeah, can someone help me with my admin problem? I can't seem to make myself admin
June 11, 2008, 07:37:06 AM
@Takibo: http://warcraft-source.com/board/index.php/topic,809.0.html
Man! People need to learn how to use the search function these days!
June 11, 2008, 12:08:31 AM
Where's the RPG race?
Recent
[Today at 12:06:26 AM]

[Today at 12:04:56 AM]

[Today at 12:03:10 AM]

[June 14, 2008, 10:59:40 PM]

[June 14, 2008, 09:56:05 PM]

[June 14, 2008, 09:52:17 PM]

[June 14, 2008, 09:41:24 PM]

[June 14, 2008, 09:34:06 PM]

[June 14, 2008, 08:49:41 PM]

[June 14, 2008, 08:46:41 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 24 queries.