DamageIn not working properly.

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

DamageIn not working properly.

Post by incenseman2003 »

DamageIn not working properly.

I have water in my game and the player takes damage while on the surface of the water. Each time I press any move button at all player health decreases by one even on the surface of the water. I cant get the AltDamage settings to effect the player at all. The settings for the Liquid entity are as follows:

alphamap= a_water.bmp
Bitmap= water
DamageAltAmount= 1
DamageAltAttribute= oxygen
DamageAltDelay= 1
DamageAmount= 1
DamageAttribute= health
DamageDelay= 1
DamageIn= False
GravityCoeff= 100
InLiquidSound=
Model= water
origin= -4 -8 -31
SpeedCoeff= 100
SurfaceSound=
SwimSound=
szEntityName=
TintColor= 0 0 64
Transparency= 64


player.ini has the following:

[health]
initial = 100
low = 0
high = 100

I have made water that has worked fine in RF 0.75, but in the newest version I cant seem to make it work right.



-------------------
--------------------
Also I cannot get the images that came with the new RF for the Oxygen to show in the hud in my game.


player.ini has the following:
[oxygen]
initial = 100
low = 0
high = 100

-----------

hud.ini has the following:

[oxygen]
type= horizontal
frame = hud\hud_health_oxygen.bmp
framealpha = hud\a_hud_oxygen.bmp
indicator = hud\hud_health_oxygeni.bmp
indicatoralpha = hud\a_hud_oxygeni.bmp
framex = 10
framey = 10
indicatoroffsetx = 25
indicatoroffsety = 0
indicatorwidth = 160
flipindicator = true
active = modify
modifydirection = both
displaytime = 5

As you can see it is as it came in the default install of RF.

Isnt this enough to get the images to show up on the hud?

I know that I have to have this right. Am I missing something?

Can someone please help me?
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post by QuestOfDreams »

I have made water that has worked fine in RF 0.75, but in the newest version I cant seem to make it work right.
DamageAttribute - Attribute that is decreased by default
DamageAltAttribute - Attribute to be damaged if DamageAttribute is already at minimum

so in your setup you need to swap the attributes (this is also demonstrated in the demo level that comes with RF 075A)
Also I cannot get the images that came with the new RF for the Oxygen to show in the hud in my game.
active = modify
This means that the HUD element will only show if the attribute value changes.
incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

Post by incenseman2003 »

QuestOfDreams,

Thanks for the info. I thought that I had done that but I was obviously mistaken as it seems to be working as intended now.

thanks again.
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
Post Reply