News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 3rd Aug 2003, 10:14 PM   #1
WheatPuppet
Corriganism
 
WheatPuppet's Avatar
 
Join Date: Jan. 22nd, 2002
Location: What state you ask? Denial.
Posts: 85
[UT] Default Health and other settings

Dumb question. Where are things like the default starting health (i.e. 100 hit points) stored in UT? I can't find a defaultproperties or such anywhere that says Health = 100.

After doodling around with a silly HUD mutator, I decided that I'd like to implement a brandy-new damage system that got away from the HP/Armor pattern. What I want to do is have a threshold system where any damage that is less than the threshold is ignored, but the player has relatively few hit points beyond that threshold's maximum. As the player takes more and more damage, his/her threshold goes down, making it easier to get past. I havn't decided if the threshold will recover in time, or if it requires an item to restore.

For those who play Halo, it would be a little bit like the M.C.'s shield. I think it would be funny (and rather shameless) to include Halo-like shield effects, which would be easy to do with UT's shieldbelt effect. I'm probably not going to do that, though.
__________________
A Haiku
The people who say
Never say never, always
Forget their own rule.


Share the knowledge: Unreal Wiki
WheatPuppet is offline   Reply With Quote
Old 4th Aug 2003, 02:44 AM   #2
Mychaeel
 
Join Date: Oct. 3rd, 2001
Location: Frankfurt/Main, Germany
Posts: 3,829
Quote:
Originally Posted by WheatPuppet
Dumb question. Where are things like the default starting health (i.e. 100 hit points) stored in UT? I can't find a defaultproperties or such anywhere that says Health = 100.
Default health is set in the default properties of class Pawn.
Mychaeel is offline   Reply With Quote
Old 4th Aug 2003, 08:50 PM   #3
WheatPuppet
Corriganism
 
WheatPuppet's Avatar
 
Join Date: Jan. 22nd, 2002
Location: What state you ask? Denial.
Posts: 85
I told you it was a dumb question. That was the only class I didn't look in.
__________________
A Haiku
The people who say
Never say never, always
Forget their own rule.


Share the knowledge: Unreal Wiki
WheatPuppet is offline   Reply With Quote
Old 4th Aug 2003, 11:36 PM   #4
WheatPuppet
Corriganism
 
WheatPuppet's Avatar
 
Join Date: Jan. 22nd, 2002
Location: What state you ask? Denial.
Posts: 85
Continuing the tradition

In keeping with my previous dumb question, I feel I should ask another one:

I poked throught the Pawn class looking for default properties, and couldn't find it. Only when I rightclicked on Pawn in UnrealEd did I get the option to check out the defaultproperties. Why is this, and where are these values stored in-code?
__________________
A Haiku
The people who say
Never say never, always
Forget their own rule.


Share the knowledge: Unreal Wiki
WheatPuppet is offline   Reply With Quote
Old 5th Aug 2003, 04:04 AM   #5
Mychaeel
 
Join Date: Oct. 3rd, 2001
Location: Frankfurt/Main, Germany
Posts: 3,829
I suggest you export the UnrealScript sources (as described on UnrealScript Source Code) and browse them outside UnrealEd. A class browser tool like UnCodeX makes that far more convenient than it is in UnrealEd and even adds features like full-text search and more.

In exported source code, default properties are specified in a separate code block at the end of every class. See Unreal Wiki: Default Properties.
Mychaeel is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:33 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer