Battle Frog vehicle w/ lights
by Britt Scott · in Game Design and Creative Issues · 09/08/2008 (9:09 am) · 9 replies
UPDATED: Sept 8, 2008

Questions, comments, thanks, tuning suggestions, and/or any other feedback are greatly appreciated!
SETUP:
1. "LeftHeadLight.cs" and "RightHeadLight.cs". need to be placed in /common/lighting/lights
2. "BattleFrog.cs" needs placed in /server/scripts
3. "BattleFrog" folder needs placed in /data/shapes
4a. Open the "main.cs" located in the root folder of Torque.
4b. Make sure in "main.cs", $defaultGame = "starter.racing";
5a. Open the "game.cs" located in /server/scripts
5b. Find the line: exec("./car.cs");
5c. Change this line to(or comment out): //exec("./car.cs");
5d. After: //exec("./car.cs");
Add:
exec("./BattleFrog.cs");
exec("common/server/lightingSystem.cs");
NOTES:
1. Tested for TGE 1.5.2 in starter.racing
2. Use "Tab" to switch between 1st person and 3rd person. I prefer using 3rd person.
3. Vehicle physics settings will more than likely need to be "tuned" to fit your gameplay! However, I believe the current setup is a good starting point. Vehicle is currently setup for 4WD, 4-wheel steering, with Rear wheels counter-steering.
4. "BattleFrog.cs" depends upon "LeftHeadLight.cs" and "LeftHeadLight.cs", in order for the headlights to work.
These depend upon "lightingSystem.cs" being executed in the "game.cs" The headlights didn't turn out
the way that I had hoped, but then again I couldn't really find a "How-To-Add-Headlights" So, as with the
vehicle physics, these will more than likely need to be "tuned"
5. A serparate glass texture was made because I was having problems with the alpha on the texture as a whole.
6. I used "swappable base textures", so if someone wanted to change the skin via script, they could. A UVW template is provided in the "BattleFrog" folder.
7. Also the BattleFrog was textured using symmetry. So kept that in mind, when re-texturing.

Questions, comments, thanks, tuning suggestions, and/or any other feedback are greatly appreciated!
SETUP:
1. "LeftHeadLight.cs" and "RightHeadLight.cs". need to be placed in /common/lighting/lights
2. "BattleFrog.cs" needs placed in /server/scripts
3. "BattleFrog" folder needs placed in /data/shapes
4a. Open the "main.cs" located in the root folder of Torque.
4b. Make sure in "main.cs", $defaultGame = "starter.racing";
5a. Open the "game.cs" located in /server/scripts
5b. Find the line: exec("./car.cs");
5c. Change this line to(or comment out): //exec("./car.cs");
5d. After: //exec("./car.cs");
Add:
exec("./BattleFrog.cs");
exec("common/server/lightingSystem.cs");
NOTES:
1. Tested for TGE 1.5.2 in starter.racing
2. Use "Tab" to switch between 1st person and 3rd person. I prefer using 3rd person.
3. Vehicle physics settings will more than likely need to be "tuned" to fit your gameplay! However, I believe the current setup is a good starting point. Vehicle is currently setup for 4WD, 4-wheel steering, with Rear wheels counter-steering.
4. "BattleFrog.cs" depends upon "LeftHeadLight.cs" and "LeftHeadLight.cs", in order for the headlights to work.
These depend upon "lightingSystem.cs" being executed in the "game.cs" The headlights didn't turn out
the way that I had hoped, but then again I couldn't really find a "How-To-Add-Headlights" So, as with the
vehicle physics, these will more than likely need to be "tuned"
5. A serparate glass texture was made because I was having problems with the alpha on the texture as a whole.
6. I used "swappable base textures", so if someone wanted to change the skin via script, they could. A UVW template is provided in the "BattleFrog" folder.
7. Also the BattleFrog was textured using symmetry. So kept that in mind, when re-texturing.
About the author
Attended Brown College in Mendota Heights, MN for Game Design and Development. Projects include the Mech Starter Kit and the Battle Frog. Currently working toward a game design career.
#2
10/18/2008 (3:00 pm)
Thanks!
#3
10/18/2008 (4:11 pm)
Very cool. Thank you.
#4
10/18/2008 (9:59 pm)
Your welcome!
#5
It would be great if you could re-post!
Thanks.
02/14/2010 (10:39 pm)
Britt: Looks absolutely great. I was trying to use your headlights, but the Rapidshare link is dead ("This file has been removed from the server, because the file has not been accessed in a long time").It would be great if you could re-post!
Thanks.
#9
File -> Download
Battle Frog
03/21/2013 (1:33 pm)
uh, you could try it. It may need some work to get it going in T3D.File -> Download
Battle Frog
Torque Owner Ronald J Nelson
Code Hammer Games