Game Development Community

TGEA 1.7.1 water damage

by Shawn Morrow · in Torque Game Engine Advanced · 07/10/2008 (5:39 am) · 2 replies

Hello everyone,

This one should be simple i guess, but i tried to make entering water damage the player. This did not work no matter how long i stay in the water. I also noticed from defaults and maybe it is because the older version is different in a couple of ways from 1.7.1. Anyways when i tried the source code from Advanced 3D Game Programming all in one for the water damage this did not work at all. I am sure it works for the older version of the engine. Also noticed that some of the water effects like surfaceOpacity is not there at all. Is this something i can add into the game for tgea 1.7.1? Kinda lost on these couple of things being that i am reading these right from the book. I have so far been able to find things out on my own and from what the book was not so right about. Any help will be great.

#1
07/10/2008 (9:20 am)
For water you should try clarity and visibilityDepth. Set clarity to something like 0.9 and you should be able to see the terrain in your water. Play with your fresnel values to achieve a good result.
As for the damage, I never needed liquid damage, so I can't really help there.
#2
07/21/2008 (1:49 pm)
Http://tdn.garagegames.com/wiki/WorldBuilding/MissionEditor/PhysicalZone

this should get you started..simply add a physical zone to the water area then use the kill zone code but instead of calling suicide call a set amount of damage...