Home   Help Search Login Register  

Author Topic: backpacks in weapon selection (description.ext)  (Read 2273 times)

0 Members and 1 Guest are viewing this topic.

Offline bardosy

  • Honoured Contributor
  • ***
  • campaign designer
    • CartooDiv
backpacks in weapon selection (description.ext)
« on: 12 Sep 2010, 10:44:38 »
Is it possible to add backpacks to weapon selection (description.ext)?
I can add backpack to a man in init.sqs, but I want to leave the choice to player, so I want add backpacks to weap selection. If it's possible, what is the keyword in the class? I guess it's not weapon nor magazine...
Fix bayonet!

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
Re: backpacks in weapon selection (description.ext)
« Reply #1 on: 12 Sep 2010, 11:44:06 »
should be not possible as backpacks are cfgVehicles type

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: backpacks in weapon selection (description.ext)
« Reply #2 on: 12 Sep 2010, 21:13:51 »
But how are backpacks added then to soldiers? There's a config entry for whether or not they can carry a backpack, but I'm unsure about where it says what kind if any of backpack they'll be carrying. If they are added with e.g. addweapon, then they're weapons, no? If they're added with their own command, then I'm not so sure about the description.ext.

Since you're a campaign scripter, have you tried manually adding backpacks (i.e. as the player go and drop a backpack or two into a crate) to an ammocrate, then saving the ammocrate to the campaign weapon/magazine pool, and then see if they show up in future missions? If they do, then there just HAS to be some way to add them to the pool, I'd say...

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
Re: backpacks in weapon selection (description.ext)
« Reply #3 on: 12 Sep 2010, 22:12:39 »
Code: [Select]
class CZ_Soldier_SL_DES_EP1: CZ_Soldier_base_EP1
{
..
backpack = "CZ_VestPouch_Sa58_EP1";

Rucks are no weapons, no.

Offline bardosy

  • Honoured Contributor
  • ***
  • campaign designer
    • CartooDiv
Re: backpacks in weapon selection (description.ext)
« Reply #4 on: 14 Sep 2010, 07:27:12 »
I added backpack as a weapon and don't work. :(

But wolfrug has a good idea! I'll try it.

If it's not working, I'll leave it alone... I think, BIS solve this backpack very badly. :no:
Fix bayonet!

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
Re: backpacks in weapon selection (description.ext)
« Reply #5 on: 15 Sep 2010, 08:01:08 »
Code: [Select]
   [73297]  New: addBackpackCargo script function
So now the campaign savegame approach may work.  :)

Offline Alwarren

  • Members
  • *
Re: backpacks in weapon selection (description.ext)
« Reply #6 on: 21 Sep 2010, 14:09:30 »
Is it possible to add backpacks to weapon selection (description.ext)?
I can add backpack to a man in init.sqs, but I want to leave the choice to player, so I want add backpacks to weap selection. If it's possible, what is the keyword in the class? I guess it's not weapon nor magazine...

You can just add them like weapons and magazines by putting this into your description.ext:

Code: [Select]
class Backpacks
{
    class US_Patrol_Pack_EP1    {count = 4; };
    class US_Assault_Pack_EP1    {count = 4; };
};

Hope this is what you are looking for.

Offline bardosy

  • Honoured Contributor
  • ***
  • campaign designer
    • CartooDiv
Re: backpacks in weapon selection (description.ext)
« Reply #7 on: 21 Sep 2010, 14:17:34 »
YES!  :clap: :good:

Thank you!
Fix bayonet!

Offline Alwarren

  • Members
  • *
Re: backpacks in weapon selection (description.ext)
« Reply #8 on: 21 Sep 2010, 14:57:29 »
You're welcome  :)