Game Development Community

dev|Pro Game Development Curriculum

Show tool extension: weapon mounting

by Robert Elek · 12/26/2003 (9:43 am) · 8 comments

Download Code File

I've just added support to the show tool to enable weapon mounting.

It was required by our modeller to test the character animations with weapons.

So it's uploaded here - have fun with it :)

Sorry if it's posted to the wrong category again, i'm still trying find out what-and-where to post..

Sorry for the bad link, the - in the filename made it wrong. I've uploaded again.. If it does not work, here is surely good url :)
are.hu/robymus/torque/showtoolmountupdate.zip

The fix proposed by Dae-Hyun Kim in the comments is now included the .zip file..

------
I used guiPlayerView.cc from RealmWars as a reference for mounted image rendering - it seems that it's not 100% compatible with torque, mounted weapons are rotated in torque/show now :(
I will send some fix as soon as it is ready :)

#1
12/27/2003 (5:53 am)
404 :(
#2
12/27/2003 (8:36 pm)
Sounds good, but the link is currently dead.
#3
12/29/2003 (3:51 am)
Thats a good idea :-)
#4
12/29/2003 (4:49 am)
link is not dead anymore - fixed :)
#5
12/30/2003 (8:52 am)
Very useful, thanx Robert.
#6
01/09/2004 (1:25 am)
I found error in showTSShape.cc
ShowTSShape::~ShowTSShape()
{
delete shapeInstance;
if (orbitPos == ¢erPos)
orbitPos = NULL;
// weapon mounting support
if ((bool)mWeapon1) {
delete mWeapon1;
}
if ((bool)mWeapon2) {
delete mWeapon1; --->ERROR -> mWeapon2 OK?
}
}

by icandoit
#7
01/09/2004 (2:11 am)
Thanks for the fix, yes it is a bug ;)
I will soon replace the downloadable file..
#8
02/10/2004 (8:47 pm)
I can't get anything to mount. I pulled down the version form last night. 2/10/2004