View unanswered posts | View active topics It is currently Fri Jan 10, 2025 12:13 am



Reply to topic  [ 6 posts ] 
 Im new, how do i make it so guys start out with weapons? 
Author Message

Joined: Sun Jan 13, 2008 5:23 am
Posts: 10
Reply with quote
Post Im new, how do i make it so guys start out with weapons?
Also can i set a SINGLE weapon to show up in a different area of the character? I wanna make a rocket launcher automatically show up on my soldiers back when he appears and he would b able to fire it like a gun.


Wed Sep 02, 2009 9:28 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Im new, how do i make it so guys start out with weapons?
Ever looked inside an activities.ini definition? The way you add weapons to actors there is the same way you add them by default.

For the second question, you can change the held offsets to change where a weapon is held when it is selected, but you cannot arbitrarily add another weapon that's always on the actor without some Lua.


Wed Sep 02, 2009 9:40 pm
Profile
User avatar

Joined: Wed Jan 14, 2009 7:12 pm
Posts: 1525
Location: In between your sister's legs, showing her how to use a... PS3 controller!
Reply with quote
Post Re: Im new, how do i make it so guys start out with weapons?
However, you can use addinventory to make him spawn with it.


Wed Sep 02, 2009 10:58 pm
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Im new, how do i make it so guys start out with weapons?
i think he means the RL is always attached to the actor. you could do that i suppose with an ACrab strapped to your actor w/ lua.


Wed Sep 02, 2009 11:36 pm
Profile WWW
User avatar

Joined: Sun Dec 16, 2007 12:09 am
Posts: 1115
Location: Being The Great Juju
Reply with quote
Post Re: Im new, how do i make it so guys start out with weapons?
Hmm, I think Gotcha! made a template for this. I'll go rifle through the UniTec folder.

EDIT: Yup.

Preset Template wrote:
Template:
AddActor = // Fill in the actor type: AHuman or ACrab. Keep in mind that it is pointless to add items to an ACrab. It can't use them.
CopyOf = // Use the name of an existing actor name here: Dummy, Dreadnaught etc.
PresetName = // Put your own unique name here, for example: Sniper Dummy, My Coalition Guy, Dreadnaught of Doom, whatever you like.
Description = // Shown next to the PresetName in the buylist. Tip: Type a description of the actor: AK-47 Coalition Soldier, My Rocketlauncher Dummy, Sniper Guy.
Buyable = 1 // Only needed if you're choosing an actor in-game that is otherwise non-buyable.
AddToGroup = // Groupname where your stuff is found under when in bunker making mode, for example: Pre-equipped Soldiers, My Squad.
AddInventory = // Use either 'HDFirearm', 'HeldDevice' or 'TDExplosive' here. All guns and diggers are HDFirearms. Shields are HeldDevices. Throwables are TDExplosives.
CopyOf = // Use the name of an existing HDFirearm, HeldDevice or TDExplosive here, like: AK-47, Frag Grenade, Riot Shield.
AddInventory = // Use a second or even 3rd or 4th AddInventory to add more items to your character...
CopyOf = // ...however, make sure your character won't be too heavy.
GoldValue = 0 // Add this if you don't want the gun to have a (hidden) cost.


That's how one would start out automatically with weapons.

>I wanna make a rocket launcher automatically show up on my soldiers back when he appears and he would b able to fire it like a gun.

Like Duh said, if you want him to hold other weapons while the rocket launcher is on his back, you need some advanced Lua coding.


Thu Sep 03, 2009 11:17 pm
Profile
Banned
User avatar

Joined: Tue Feb 27, 2007 4:05 pm
Posts: 2527
Reply with quote
Post Re: Im new, how do i make it so guys start out with weapons?
The problem is that Data is an idiot and did not idiot-proof his game. When someone is looking to do what this guy is asking, the word they search for probably isn't "Activities."


Fri Sep 04, 2009 2:03 am
Profile YIM
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.036s | 14 Queries | GZIP : Off ]