Page 1 of 1

A question

Posted: Sat Jul 29, 2006 7:50 pm
by demon_pato
Hello GT guys!! Im sorry if someone already asked this but... is it possible to make something like thin ice?? I mean, i use the ice textures like the ones in the cave of Rhen Var: Harbor map on a piece of land, but under it i put water, so it would be a piece of land over water, but this piece of land is breakable, so if anything (that is determinated in the scripts) walks over this thin ice it breakes and it falls into water. Is it possible?? If so, can you guys teach me how to do that??

10x :D

RE: A question

Posted: Sat Jul 29, 2006 9:10 pm
by t551
I'm fairly certain that it could be done with scripts, so that when a trooper enters a region, something breaks. The ice would need to be an ArmedBuilding, I think, and I have no idea what the actual code for this would look like. If I read your post right, you are trying to do this with terrain, but terrainis a static entity, so you would need someone to make you a model of thin ice.

Posted: Sat Jul 29, 2006 9:50 pm
by demon_pato
The code part is what i have in mind, but it would really need a new model (and proprably new animations)?? :( This "static entity" you said... you mean that i cant do anything with the land but walk on it ??

Posted: Sat Jul 29, 2006 10:02 pm
by t551
Yep. Terrain doesn't do anything, not even react to dynamic lights. You would not need new animations, all you would need would be a model of thin ice, and some chunks of thin ice. The model of thin ice would be an ArmedBuilding (like a prop, but with heath) and the odf can call the chunks when it dies. The only thing that is not clear to me is the actual .lua coding that would be involved. You could try to contact xwingguy or [RDH]Zerted, or any other coder geniuses here at Gametoast.

Posted: Sun Jul 30, 2006 2:48 am
by [RDH]Zerted
The lua code would not be hard. If you want it done in the scripts, you need segements of the ice and animations showing the ice breaking. You don't have to keep the ice segments where you want the ice sheet. You can just use one big segment for the full ice sheet.

A player triggers the ice breaking, the ice sheet (where players walk on) suddenly disappears, then the ice segments (being hidden under where the ice sheet was) do their ice breaking animations. The effect would be the ice cracking and sinking then melting into the water. The more ice segments and animation, the better the effect (though the longer it takes to make it).

Posted: Sun Jul 30, 2006 12:19 pm
by t551
Oh, yes, it could be done with ZE animations, I forgot about that.