Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: Bombs can now be armed in the inventory, and dropped/thrown afterwards
New feature: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305534] Sat, 02 June 2012 22:30 Go to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
<font size=""> Bombs can now be armed in the inventory, and dropped/thrown afterwards </font>

I made some code changes that now allow us to arm explosives while they are still in our inventory. This allows us to do a few new things:

  • We can arm a timebomb, and then throw it away. The bomb will then blow up later, just as it should. Think of them as really really big grenades with a long fuse.
  • We can arm a timebomb, and not throw it away. Naturally, once the timer hits zero, we will blow up. Yes, you can build suicide mercs with this.
  • This also works with remote detonators/defuses. So you can rig your mercs with bombs and blow them up once they are dead. Nothing says 'motivation at work' like a pack of TNT in your pocket, eh? :taskmaster:
  • This works for all inventories. If you would find a way to give an enemy a bomb, you could blow them up this way...
  • Bombs can be armed and disarmed just like item transformations are performed. Instead of a transformation, the usual bomb dialogues will show up.
  • You can also arm/disarm bombs in the map screen.
  • Note that if you fail at arming/disarming in the mapscreen, or compress time in mapscreen while an timebomb is in your inventory, a 'inventory explosion' will occur. All your items will be severely damaged, and you will take a lot of health damage. So yes, arming a bomb in your hands and not getting rid of it is still a bad idea...
  • A small indicator on the bomb indicates what settings you used for the bomb. By this you can actually see which of your bombs is armed and which isn't. In case your one of those people who run around with multiple bombs in their pockets and forget if they've activated them. :headbanger: See picture number 5 for that.
Some demonstration pics:

http://i47.tinypic.com/34xnvp4.jpg
Red arms TNT from his inventory equipped with a remote detonator and remote defuse, and selects frequencies...

http://i47.tinypic.com/wqikn.jpg
...throws it a few tiles away...

http://i45.tinypic.com/14w8yol.jpg
... and barry ignites it remotely.

http://i45.tinypic.com/rhvb7l.jpg
Or Barry decides he didn't really like red, so he sends the command before Red can throw :pitchfork:

http://i49.tinypic.com/25i8029.jpg
A armed stack of TNT. Notice the numbers. The first one indicates the detonate frequency or the time left till the explosion occurs, the second number indicates the remote defuse freqency. Yellow indicates that a remote detonator has been attached, red is for a timed bomb.

The same applies to timed bombs, but the principle should be clear.

I just sent this to RoWa, expect to find this soon in everybody's favourite trunk.

Edit: As of r5492, this also works for grenades. Practical when used with smoke grenades, dubious with frags.

[Updated on: Sun, 15 May 2016 18:14]

Report message to a moderator

Captain

Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305535] Sat, 02 June 2012 22:39 Go to previous messageGo to next message
Slax is currently offline Slax

 
Messages:1411
Registered:July 2006
Location: People riding polar bears...
Fidel HAPPY! Very Happy

Report message to a moderator

Sergeant Major
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305538] Sat, 02 June 2012 23:30 Go to previous messageGo to next message
Madd_Mugsy

 
Messages:634
Registered:July 2005
Location: Canada
Sweet!

What happens if the bomb has a transformation as well? For instance, Tripwire grenades can be transformed back into regular grenades. I'm guessing the transformation option appears below the arm/disarm option, but what happens if your try to transform an armed bomb? My thought would be that you should be forced to disarm the bomb first.

Report message to a moderator

First Sergeant

Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305539] Sat, 02 June 2012 23:48 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
I perform a check for that. Item transformations do not show up the item is an armed bomb.

However, one remaining problem is that those options can still be accessed if the screen is not refreshed. Eg. If you open the UDB of a bomb with a transformation and arm it, you can still perform the transformation while the bomb is armed, as long as you do not close the UDB...

Ha, fixed before anyone could notice Smile

Now transformations are never possible if the bomb is armed

[Updated on: Sat, 02 June 2012 23:56] by Moderator

Report message to a moderator

Captain

Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305541] Sun, 03 June 2012 00:32 Go to previous messageGo to next message
Soto Banaris is currently offline Soto Banaris

 
Messages:129
Registered:May 2012
Location: Germany
Does this count as cooking explosives? Since grenades are thrown at a greater distance, I can only deem this as makeshift overkill grenades. Might be handy for facing some crepitus queen though... Wink

Report message to a moderator

Sergeant
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305542] Sun, 03 June 2012 00:37 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
Sometimes, you just really need a big, 'splody present for that dirty dozen just next to the roof you're using for a sunbath.

Report message to a moderator

Captain

Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305543] Sun, 03 June 2012 00:52 Go to previous messageGo to next message
cdudau
Flugente strikes again.

Report message to a moderator

Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305547] Sun, 03 June 2012 01:08 Go to previous messageGo to next message
Soto Banaris is currently offline Soto Banaris

 
Messages:129
Registered:May 2012
Location: Germany
tao
Flugente strikes again.

Indeed. Makes me wonder when he starts working on placable sandbags. Very Happy

Report message to a moderator

Sergeant
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305548] Sun, 03 June 2012 02:01 Go to previous messageGo to next message
PasHancock is currently offline PasHancock

 
Messages:720
Registered:February 2011
Location: Estonia,Tallinn
Gosh!You are the main Coder right now!You give us soooo good Features!I wanna learn coding too Very Happy

Report message to a moderator

First Sergeant
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305559] Sun, 03 June 2012 19:17 Go to previous messageGo to next message
AIM_Hero is currently offline AIM_Hero

 
Messages:7
Registered:August 2009
Flugente, you beautiful, beautiful person. I was just thinking about this a few days ago, that JA2 would be much closer to perfection if the player could throw armed/primed explosives. And now, you have accomplished this project. You, sir, are a prince among men Smile

[Updated on: Sun, 03 June 2012 19:18] by Moderator

Report message to a moderator

Private
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305572] Sun, 03 June 2012 22:35 Go to previous messageGo to next message
Hanakin is currently offline Hanakin

 
Messages:33
Registered:June 2008
Location: Czech Rep.
I concur with what everyone said before. You are the best, Flugente! This was on my wishlist for a long while. :bow:

Report message to a moderator

Private 1st Class
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305575] Mon, 04 June 2012 00:06 Go to previous messageGo to next message
PasHancock is currently offline PasHancock

 
Messages:720
Registered:February 2011
Location: Estonia,Tallinn
Now for Airstrikes and Soldier Healing Very Happy

Report message to a moderator

First Sergeant
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305747] Fri, 08 June 2012 21:07 Go to previous messageGo to next message
K0ukku is currently offline K0ukku

 
Messages:188
Registered:December 2009
Oooh jesus. I have been dreaming about this! Super!

Report message to a moderator

Staff Sergeant
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #305748] Fri, 08 June 2012 21:19 Go to previous messageGo to next message
CapnJack is currently offline CapnJack

 
Messages:56
Registered:June 2012
I was just thinking the other day how awesome it would be to do this and here you come along with just the thing I (and probably many others from the looks) have been wanting.

Report message to a moderator

Corporal
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #306147] Mon, 18 June 2012 23:45 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Update: Bombs in your inventory will now display if they are armed, and how.

Also: I fixed a small exploit... If you handle bombs, expect them to behave like bombs. Don't do stuff that sounds idiotic with them, it propably is Smile

Report message to a moderator

Captain

Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #309419] Wed, 22 August 2012 21:49 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Update: As of r5492, this also works for grenades. Practical when used with smoke grenades, dubious with frags.

One intention is to have a simple way to one day have the AI use smokes on themselves when in a killing zone or under severse suppression. Seeing your comrades corpses left and right might indicate that this a bad place to be Smile

Report message to a moderator

Captain

Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #309692] Fri, 31 August 2012 12:20 Go to previous messageGo to next message
STK is currently offline STK

 
Messages:104
Registered:December 2010
Location: UK
hi all

please advise Sad

i am using ja2 1.13 version 5540
and i all so use aimnas v21

now i went to use c4 with a timer and i cant all i get is a ? mark symbol when i right click and try to place it.

I assume aimnas has no idea wha to do because some thing is missin please please advise if i can add what is needed to continue Sad

Report message to a moderator

Sergeant
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #309694] Fri, 31 August 2012 14:41 Go to previous messageGo to next message
STK is currently offline STK

 
Messages:104
Registered:December 2010
Location: UK
Hi all sorry to be a pain I have looked in the INI editor and I cant see any thing relateing to this new explosive system.

I was hoping I could turn it off and use the normal setting that way I can use explosives in aimnas like I use to be able to Sad please advise

Report message to a moderator

Sergeant
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #309761] Sun, 02 September 2012 22:43 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
In case you refer to this feature, it cannot be turned on and off, as it simply offers new options that weren't there before.

I do have an idea at what might be the cause of your troubles. Please validate wether the timer item you used has the following tag in Data-1.13/TableData/Items.xml (should be item #223):

65536


If this is not the case, add that entry, and try again.

Report message to a moderator

Captain

Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #325020] Wed, 11 September 2013 13:07 Go to previous messageGo to next message
dzidek1983

 
Messages:92
Registered:June 2009
is there a way to add this feature to the 4870 version?

Report message to a moderator

Corporal 1st Class
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #325021] Wed, 11 September 2013 13:08 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
Yes. http://www.cplusplus.com/doc/tutorial/

Report message to a moderator

Captain

Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #325023] Wed, 11 September 2013 13:40 Go to previous messageGo to next message
dzidek1983

 
Messages:92
Registered:June 2009
hmmmm... nope that didnt work...

you could just said no...

Report message to a moderator

Corporal 1st Class
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #325024] Wed, 11 September 2013 13:41 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
But it would be a lie if I said no.

Report message to a moderator

Captain

Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #325027] Wed, 11 September 2013 14:08 Go to previous messageGo to next message
dzidek1983

 
Messages:92
Registered:June 2009
Smile

ok so lets presume i am searching for an easier solution cos im so familiar with C++ as an eskimo with coconuts

[Updated on: Wed, 11 September 2013 14:09] by Moderator

Report message to a moderator

Corporal 1st Class
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #325028] Wed, 11 September 2013 14:10 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
Well under those constraints: forget it.

Report message to a moderator

Captain

Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #325029] Wed, 11 September 2013 14:18 Go to previous messageGo to next message
dzidek1983

 
Messages:92
Registered:June 2009
roger Smile

Report message to a moderator

Corporal 1st Class
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #327353] Thu, 31 October 2013 04:59 Go to previous messageGo to next message
Bananarepublic is currently offline Bananarepublic

 
Messages:39
Registered:October 2013
I noticed that this feature ignores the item's condition % when arming (the merc refuses to arm an item at low condition, if you use the regular method)

Is it possible to perform this check here as well?

edit - Also, Flug, when arming from inventory there's an AP cost indicator of 50 AP, however no AP is actually deducted.

[Updated on: Mon, 04 November 2013 19:00] by Moderator

Report message to a moderator

Private 1st Class
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #329423] Wed, 01 January 2014 04:02 Go to previous messageGo to next message
AvianSavara is currently offline AvianSavara

 
Messages:34
Registered:December 2013
Location: Montr
Oh wow, we now have droppable "detpacks"... I'm such a happy camper right now.

Setting up City defenses has never been this damn fun.

Gus: "Hey Woodrow, see that dang chokepoint between the sandbags and barb wire"

Militia "Yeah"

Gus: "The one with the main force of goons heading right for it?"

Militia "Yes, sir?"

Gus: *click* *click* "Boom"

Militia: "Viva los Tarballs!"

[Updated on: Wed, 01 January 2014 04:02] by Moderator

Report message to a moderator

Private 1st Class
Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #329424] Wed, 01 January 2014 04:51 Go to previous messageGo to next message
Hawkeye is currently offline Hawkeye

 
Messages:2416
Registered:October 2005
Location: Australia
Hmmm, fortified city defenses, droppable det packs. Perhaps the Queen's army should have suicide bombers or covert sappers to even the score? How about it Flugente?

Report message to a moderator

Lieutenant

Re: Bombs can now be armed in the inventory, and dropped/thrown afterwards[message #329445] Wed, 01 January 2014 16:58 Go to previous message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
See http://www.bears-pit.com/board/ubbthreads.php/ubb/showflat/Number/313711/Searchpage/15/Main/20644/Words/Enemy+assassins/Search/true/New_feature:_enemy_assassins.html#Post313711 for that. It does not have suicide bombers, but those can be coded trivially (I had them in during testing).

Report message to a moderator

Captain

Previous Topic: New feature: apply items to/take items from other persons
Next Topic: New feature: Scope modes
Goto Forum:
  


Current Time: Thu Apr 18 03:28:04 GMT+3 2024

Total time taken to generate the page: 0.01988 seconds