Multiple Detpacks?
Moderator: Moderators
-
Tygr
- Corporal

- Posts: 150
- Joined: Mon Aug 25, 2008 1:11 pm
Multiple Detpacks?
Is there any way to place multiple detpacks and detonate them all at once? SalvoCount possibly?
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: Multiple Detpacks?
should be possible, ive seeen this in bf1 so it should be possible in bf2, but i dont know how to do it. LUA coding perhaps?
-
VF501
- Lieutenant Colonel

- Posts: 539
- Joined: Fri Jun 08, 2007 1:18 am
- Projects :: Various Stuff- Weapon models. UDK Stuff
- xbox live or psn: Vintage Tagious
- Location: Terra Firma, Sol System; Milky Way
Re: Multiple Detpacks?
MaxItems = "4.0"
Add that to the Dispenser ODF, it sets the maximum amount that can be placed at a time. Goin over the limit auto-kills the oldest placed item.
Used for Detonators, Auto-Turrets, Health/Ammo, Mine and any other Dispenser Class weapon.
Add that to the Dispenser ODF, it sets the maximum amount that can be placed at a time. Goin over the limit auto-kills the oldest placed item.
Used for Detonators, Auto-Turrets, Health/Ammo, Mine and any other Dispenser Class weapon.
- Fluffy_the_ic
- Hoth Battle Chief

- Posts: 3223
- Joined: Thu Jan 24, 2008 7:03 pm
- xbox live or psn: fluffytherc
- Location: she/her
- Contact:
Re: Multiple Detpacks?
somewhat Off-topic: So do you mean that you can place a certain number, then when it's reached, it can be detonated, or you can place however many you want that can be detonated after however many? Cuz if it's the latter, I had that thought a few minutes ago XD
- Sky_216
- Droid Pilot Assassin

- Posts: 2086
- Joined: Mon Feb 13, 2006 3:28 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Multiple Detpacks?
Don't think first one's possible (tried it before, maybe I screwed up thugh). As for second one I'm 90% sure it's possible as a pair of very simple lua weapons (but AI Won't use it and it must be given to heroes/characters in RPGs rather than normal units)
-
VF501
- Lieutenant Colonel

- Posts: 539
- Joined: Fri Jun 08, 2007 1:18 am
- Projects :: Various Stuff- Weapon models. UDK Stuff
- xbox live or psn: Vintage Tagious
- Location: Terra Firma, Sol System; Milky Way
Re: Multiple Detpacks?
MaxItems = "1.0" - Only 1 maximum detpack on the the field, if you put a second one down, it auto kills the first one without detonating it.
TriggerAll = "1" - Boolean Operation (0/1 value) use 1 to detonate all placed charges at once, or use 0 to detonate 1 after the other.
TriggerAll = "1" - Boolean Operation (0/1 value) use 1 to detonate all placed charges at once, or use 0 to detonate 1 after the other.
-
Tygr
- Corporal

- Posts: 150
- Joined: Mon Aug 25, 2008 1:11 pm
Re: Multiple Detpacks?
Sweet! So how would I make it lay multiple, other than to do SalvoCount? I want to be able to lay several separately, and then detonate them.VF501 wrote:MaxItems = "1.0" - Only 1 maximum detpack on the the field, if you put a second one down, it auto kills the first one without detonating it.
TriggerAll = "1" - Boolean Operation (0/1 value) use 1 to detonate all placed charges at once, or use 0 to detonate 1 after the other.
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Multiple Detpacks?
For example,VF501 wrote:MaxItems = "4.0"
Add that to the Dispenser ODF, it sets the maximum amount that can be placed at a time.
VF501 wrote:MaxItems = "1.0" - Only 1 maximum detpack on the the field, if you put a second one down, it auto kills the first one without detonating it.
-
Tygr
- Corporal

- Posts: 150
- Joined: Mon Aug 25, 2008 1:11 pm
Re: Multiple Detpacks?
Tried that, it automatically switches to the "detonate" made after the first one.Frisbeetarian wrote:For example,VF501 wrote:MaxItems = "4.0"
Add that to the Dispenser ODF, it sets the maximum amount that can be placed at a time.VF501 wrote:MaxItems = "1.0" - Only 1 maximum detpack on the the field, if you put a second one down, it auto kills the first one without detonating it.
-
MercuryNoodles
- Jedi

- Posts: 1003
- Joined: Sun Mar 12, 2006 7:16 pm
- Projects :: Space - Boarding Action
- xbox live or psn: No gamertag set
Re: Multiple Detpacks?
Perhaps this will be useful.WeaponNotes.txt wrote:SwitchImmediately: 0 = require L1 press to enter remote, 1 = enter remote immediately on launch
-
Commander_Keller
- Master Sergeant

- Posts: 171
- Joined: Sun Apr 16, 2006 1:16 pm
Re: Multiple Detpacks?
so i just have to add the lines
SwitchImmediately = "0"
MaxItems ="2"
TriggerAll = "1"
if i want to have two detpacks placed and detonated at the same time, right?
which odf do i have to add it?
i added those lines to the com_weap_inf_detpack file and nothing changed.
btw, what is that RefillFromItem = "0" line anyways?
SwitchImmediately = "0"
MaxItems ="2"
TriggerAll = "1"
if i want to have two detpacks placed and detonated at the same time, right?
which odf do i have to add it?
i added those lines to the com_weap_inf_detpack file and nothing changed.
btw, what is that RefillFromItem = "0" line anyways?
-
VF501
- Lieutenant Colonel

- Posts: 539
- Joined: Fri Jun 08, 2007 1:18 am
- Projects :: Various Stuff- Weapon models. UDK Stuff
- xbox live or psn: Vintage Tagious
- Location: Terra Firma, Sol System; Milky Way
Re: Multiple Detpacks?
RefillFromItem = "0" Boolean Operation (1/0) 1 to allow Refill (default setting if this line is removed or commented out), 0 to disallow refill and enable Ammo Droid refill only.
As a side note, the MaxItems and Trigger all commands have always worked for me.
If have
MaxItems = "5.0" I'm allowed to place a maximum of 5 detapacks/mines etc.
TriggerAll = "1" Only works for Detonator Class weapons, sets all placed Detpacks to trigger at once.
As a side note, the MaxItems and Trigger all commands have always worked for me.
If have
MaxItems = "5.0" I'm allowed to place a maximum of 5 detapacks/mines etc.
TriggerAll = "1" Only works for Detonator Class weapons, sets all placed Detpacks to trigger at once.
-
Commander_Keller
- Master Sergeant

- Posts: 171
- Joined: Sun Apr 16, 2006 1:16 pm
Re: Multiple Detpacks?
i definitely do add those lines to the com_weap_inf_detpack.odf file, don't i?
- vampire_lord
- Rebel Sergeant

- Posts: 216
- Joined: Thu Mar 20, 2008 7:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mexico City
- Contact:
Re: Multiple Detpacks?
This is relevant to my interests, I want to make multiple detpacks as well, tried those lines already, either in dispenser and ordnance, nothing changes, it switches to detonator mode after the first pack.
I wonder if there is any other way, or at least making the remote detonator as a separate weapon so you can trigger from 1 to 4 detpacks.
I wonder if there is any other way, or at least making the remote detonator as a separate weapon so you can trigger from 1 to 4 detpacks.
-
MercuryNoodles
- Jedi

- Posts: 1003
- Joined: Sun Mar 12, 2006 7:16 pm
- Projects :: Space - Boarding Action
- xbox live or psn: No gamertag set
Re: Multiple Detpacks?
That's the less isolated version, straight out of Psych0fred's docs. I believe, going by how this part of the doc was formatted, that the classlabel has to be "remote" rather than "detonator".WeaponNotes.txt wrote:WeaponRemote ("remote"), based on WeaponDispenser:
OrdnanceName: object type to create
Velocity: ejection speed
ShotDelay: delay between shots
MaxPressedTime: charge-up time
MinStrength: velocity scale at minimum charge
MaxStrength: velocity scale at maximum charge
SwitchImmediately: 0 = require L1 press to enter remote, 1 = enter remote immediately on launch
- hunting shadow
- Private First Class
- Posts: 79
- Joined: Sun Jan 18, 2009 11:37 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the wilderness of Mandalore
- Contact:
Re: Multiple Detpacks?
I tried it with:
classLabel= remote
SwitchImmediately = 0
MaxItems = "3.0"
The effect was that I'm able to place a detpack without swapping to trigger mode after placing it, but i'm neither able to place a second one nor to switch to the triggermode by hitting any key. What does "push L1" mean? It also doesn't work with classlabel=detonator.
classLabel= remote
SwitchImmediately = 0
MaxItems = "3.0"
The effect was that I'm able to place a detpack without swapping to trigger mode after placing it, but i'm neither able to place a second one nor to switch to the triggermode by hitting any key. What does "push L1" mean? It also doesn't work with classlabel=detonator.
-
Commander_Keller
- Master Sergeant

- Posts: 171
- Joined: Sun Apr 16, 2006 1:16 pm
Re: Multiple Detpacks?
ditohunting shadow wrote:I tried it with:
classLabel= remote
SwitchImmediately = 0
MaxItems = "3.0"
The effect was that I'm able to place a detpack without swapping to trigger mode after placing it, but i'm neither able to place a second one nor to switch to the triggermode by hitting any key. What does "push L1" mean? It also doesn't work with classlabel=detonator.
btw there is no com_..._dispenser.odf and even when i create one and add the respective lines to it there are no changes ingame.
i hope i didn't just miss a "=" or something...
