TAIK and Weapon Loadout
by Stephen · in Torque 3D Beginner · 03/18/2014 (1:18 am) · 3 replies
I have been messing with adding the FPS Design Pack (the weapon loadout) created from Robert with the TAIK from Bryce. I have added the weapon loadout and I can create the custom weapon loadouts but I can't figure out how to give the player more ammo. The player is only starting out with ammo in the weapon. Then I would like to see how to create a menu within the create loadout for the attachments. Bryce has many different attachments for the weapons and I would like to be able to attach them in my custom loadout.
Thanks
Thanks
#2
The tricky part for this is that you'll need to make sure that you code it up so weapons only see the attachments belonging to the gun itself.
As for the ammo, the gui starts you out with the maximum ammo as defined by the player's ammo limit and the gun's ammo limit. You'll need to configure those.
03/18/2014 (7:53 am)
You'll need to adjust the code in the weapon picker dialog to include an option for weapon attachments. The tricky part for this is that you'll need to make sure that you code it up so weapons only see the attachments belonging to the gun itself.
As for the ammo, the gui starts you out with the maximum ammo as defined by the player's ammo limit and the gun's ammo limit. You'll need to configure those.
#3
Thanks for pointing that out. I didn't try out the demo so I had no idea about the WeaponPick gui.
03/18/2014 (12:29 pm)
@J0linarThanks for pointing that out. I didn't try out the demo so I had no idea about the WeaponPick gui.
J0linar
you could just take a look at the Taik Demo
its Loadout gui and guiscripts are not compiled, use those as a base, they contain the loadout and the attachments.
copy these files from the Taik Demo
game/art/gui/WeaponPick.gui
game/art/gui/WeaponPickCode.cs
to
game/art/gui/taik
// open game/scripts/client/ init.cs // add search for exec("art/gui/taik/taikGui.gui"); // below paste the following 2 lines exec("art/gui/taik/WeaponPick.gui"); exec("art/gui/taik/WeaponPickCode.cs"); // save it and close // // now to the final piece, start t3d and go to the gui editor // open up TAIKGui and change the random loadout // under command: // set it to Canvas.popDialog(TAIKGui);Canvas.pushDialog(WeaponPick); // and save // You should rename the randowm to loadout in the process and now open up WeaponPick.gui // click on GuiWindowCtrl // now under command: // set it to Canvas.popDialog(WeaponPick);Canvas.pushDialog(TAIKGui); // close and save // Close the editor, start a game and press alt+a // click on loadout and there you go.