Dynamic buildings... Kind of.
by Maddermadcat · in Technical Issues · 03/27/2007 (5:39 pm) · 2 replies
First off, I quite recently bought torque, and have been messing around with the various editors and the like, as well as taking advantage of TDN and the full version of the torque documentation. I have some experience with TorqueScript, but I've been creating art assets for my project for a long time before I purchased the engine, so I know the art pipline quite well. =)
Anyway, I'm curious about how I would make somewhat dynamic buildings (if anyone has ever played C&C Renegade, the buildings within this game are what I'm trying to achieve).
Just like an interior, the buildings are pre-lit when the mission is loaded. However, the building has several properties (like maximum health, a name, and the team that owns it). If the building is destroyed, particle emitters and decal projectors are created inside to show damage, and the lighting changes to red. Several construction options are no longer availiable, depending on the building destroyed. If the building is captured, the texture directory changes to display that team's insignia and colours.
I understand this is a bit much, and I'm not asking anyone to write the code for me. Instead, I'd like you guys to tell me where I should start -- should I edit the source, and if so, what part? Or is it already somehow possible through torqueScript?
Thanks in advance. =D
Anyway, I'm curious about how I would make somewhat dynamic buildings (if anyone has ever played C&C Renegade, the buildings within this game are what I'm trying to achieve).
Just like an interior, the buildings are pre-lit when the mission is loaded. However, the building has several properties (like maximum health, a name, and the team that owns it). If the building is destroyed, particle emitters and decal projectors are created inside to show damage, and the lighting changes to red. Several construction options are no longer availiable, depending on the building destroyed. If the building is captured, the texture directory changes to display that team's insignia and colours.
I understand this is a bit much, and I'm not asking anyone to write the code for me. Instead, I'd like you guys to tell me where I should start -- should I edit the source, and if so, what part? Or is it already somehow possible through torqueScript?
Thanks in advance. =D
About the author
Torque Owner JD
some sort of function describing what happens when damage = maxDamage and then something stating what gets disabled, I was reading about a function in Torque that simply disables things after certain amount of Damage, may be for you...
Remember, YOU NEED a datablock fo sho *I think anyways*