Game Development Community

Weapon setup" how to?

by Rastislav Lechner · in Torque Game Engine Advanced · 07/05/2008 (8:07 am) · 8 replies

Hi,
i just want to ask where i can find tuturials made for "TGEA"
and not old stuff from 2ooo - 2004
.

I tired to setup my new weapon for tgea but the old tuturial does not work for TGEA.
link :http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9230

exsample :

""""""""""
starter.fps/client/scripts/default.bind.cs, at end:

moveMap.bindCmd(keyboard, "2", "commandToServer('use',\"pistol\");", "");


starter.fps/client/config.cs, at end:

moveMap.bindCmd(keyboard, "2", "commandToServer('use',\"pistol\");", "");
"""""""""""
there is no config.cs in my clientfolder
; D


may someone can help me out please
i really like TGEA but its useless if i dont know how it works..
like you have a nice car and dont know how to drive #boinnng#

Thanks for help..

#1
07/05/2008 (8:23 am)
You will probably want the file client/scripts/default.bind.cs

Whenever I can't find something, I search for old file content within the new directories. Most files are only renamed or moved. Few are split or merged.

The site is full of examples, tutorials, etc.. if you want to search for stuff published since 2005, then you should use the advanced resource search page.
#2
07/05/2008 (8:37 am)
Thank you ^^

But how about if someone just take a look at the old tuturials and
fix these small problems like wrong names of the config files : )
that would be very very helpfull.

^,.^


: D

OK???

xD
#3
07/06/2008 (11:16 am)
ok : ) now i have my new weapon (gun1) ingame ..
but if i walk over it i cant collect it and use it, do i need to setup something else first??

c.imagehost.org/0626/hez33.jpgthanks for help ^_^

i hope my picture will help..
#4
07/06/2008 (2:28 pm)
Look at your server/scripts/item.cs. There's an onPickup function which should do just this. If it does not, then you probably have not specified the object's count, or its datablock has no maxInventory specified.

Check out the gun1 datablock's code, and add

maxInventory = 1;

if it's not present.

That's what I'm guessing, but I've never used items, I might be totally wrong. Good luck.
#5
07/06/2008 (3:34 pm)
Thank you for help i will test it now. =)
#6
07/06/2008 (3:56 pm)
Finnaly its done the weapon is ingame xD
: )
now is the mainweapon the crossbow but i dont care i just wanted to have it ingame

c.imagehost.org/0206/newweapon.jpg
"if someone can find some time to add me MSN would be great : )"
i have a few noob questens^^
thx

MSN : Zarakai@hotmail.de
#7
07/06/2008 (11:29 pm)
Good job Rastislav! I don't use MSN, but come back here to the forums if you need more help - though be sure to use the search feature first! :)
#8
07/07/2008 (2:34 am)
Ok i will^^