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?
DamageIn not working properly.
-
- Posts: 320
- Joined: Sat Mar 11, 2006 11:41 pm
DamageIn not working properly.
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
DamageAttribute - Attribute that is decreased by defaultI have made water that has worked fine in RF 0.75, but in the newest version I cant seem to make it work right.
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.
This means that the HUD element will only show if the attribute value changes.active = modify
-
- Posts: 320
- Joined: Sat Mar 11, 2006 11:41 pm