Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: Tripwire-triggered mines, directional mines (claymores), mines display, layered hierarc
New feature: Tripwire-triggered mines, directional mines (claymores), mines display, layered hierarc[message #303205] Wed, 11 April 2012 01:20 Go to previous message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
Tripwire-triggered mines, directional mines (claymores), mines display, layered hierarchical trap networks, makeshift mines

... among other stuff.

I've added quite a bit of functionality on the system of how explosives are planted, controlled and how they work.

There is now a new item, tripwire. Tripwire can be planted just like regular mines. The important thing is that once someone steps onto tripwire, it will activate other tripwires that are on an adjacent tile (those tiles that share an edge with the tile).
As other tripwires get activated and activate others themselves, a chain reaction takes place. The important twist to that: You can add a tag to bombs and mines that allows planted explosives to be activated this way, too.
By this technique, stepping onto tripwire activates a 'network' of tripwire that detonates explosives along the network (if you made such a network, of course).

Once tripwire was activated, it is revealed. To activate again, it must be planted again.
Tripwire can be defused, however, failing to defuse it will result will activate it.
Planting tripwire gives less experience than planting explosives.
If you have a wirecutter in your hands, you receive a bonus if you defuse an item that gets activated by tripwire. Double bonus if the item is tripwire

The relevant xml tags in Items.xml are as follows:

1  // this allows an item to be activated via tripwire
1                      // this defines an item to be tripwire (makes sense only for tripwire, though)


This allows you to truly create networks of traps.

http://i40.tinypic.com/amp2xz.jpg
As you can see in this picture, Barry stepped into a tripwire network. Two mines go off. the stuff on the floor is the tripwire revealing itself.

But wait, of course there is more to that. To allow more complex trap networks, you can define a tripwire to be of a tripwire network. You can choose up to 4 networks. A tripwire will activate other tripwires only if they are from the same network. This allows to make your tripwire networks overlapping.

But there is one more thing to that. Networks also have hierarchy levels. The concept is that a tripwire will only be activated if the other tripwire activating it has a higher or equal hierarchy level.
This allows to create a line of tripwire that will blow up in different ways, depending on where you step onto it.

How do you know of where you layed tripwire, and of what network and hierarchy it is?

Use the new display trap network view. Via ALT + Shift + V, you can now toggle between
  • http://i41.tinypic.com/25iaf5f.jpg
    Display trap network: mines are red, tripwire is yellow, tiles with both tripwire and mines are orange
  • Display network colouring: network A is red, network B is orange, network c is yellow, network D is green
  • Display trap network A,B,C or D: only tripwire of this network is displayed. hierarchy 1 is green, 2 is yellow, 3 is orange, 4 is red
  • no display of traps (standard mode)

http://i43.tinypic.com/16qhp3.jpg
Display of trap network. Stepping onto a red tile will only activate a network of that colour. Stepping onto the overlapping tile will activate both.

http://i42.tinypic.com/lfj4o.jpg
A view of trap network B. Stepping onto the red tiles will activate all wires, stepping onto the green one onyl that one

This display works just like the display cover and display sight range systems. You can view a trap network, then switch to display cover and back, your display mode will be remembered.

Of course, only tripwire placed by your team will be displayed, not hostile ones. But here is something related to that:

I've altered the metal detector, it now works as an improved mine detector. If the currently selected merc has a metal detector in his hands (just inventory doesn't suffice anymore), all mines and tripwires up to 4 tiles away are shown via the display nearby traps mode, activated by ALT + Shift + C. However, this doesn't display waht exactly is there... anything foudn is just displayed red, you won't know if it is a mine or a bomb.
Also, the metal detector in general now only works if used in your hands. Only then will it auto-detect mines that are very near.

http://i42.tinypic.com/1221b2w.jpg
Nearby trap display

What would a new mine system be without new toys? There is now the possibility to turn ordinary grenades to makeshift mines, and reverse the process (thanks to glorious HAM5).
  • Simply take a mine/defensive/smoke/tear gas/mustart gas grenade or emergency flare.
  • Attach tripwire to it.
  • Voila, you made a tripwire mine out of it. You can plant it like a regular mine, but it can also be activated by surrounding tripwire.
  • Click on the icon in the items picture in UDB to remove the tripwire, giving you back the original grenade and a piece of tripwire.

http://i43.tinypic.com/35lc39e.jpg
Barry just stepped into a trap network, activating several types of makeshift mines at once.

And of course, the things you've been requesting for years is here now:

http://i40.tinypic.com/15xwakh.jpg

The M18 claymore is a new special mine that fires fragments (a new feature of HAM5). I added a new feature of mine that now allows to make it directional. This means the following:
  • Upon planting the claymore, the direction your merc faces when he plants the mine is the claymore's firing direction.
  • If it detonates, it will fire fragments in that direction only
  • In the Explosives.xml, you can set if it is directional, and the horizontal and vertical arcs for it.
  • excerpt of Explosives.xml:
    ...
    70           // number of fragments
    0                  
    15               // damage of each fragment
    100                // range of fragments (10 = 1 tile)
    60   // horizontal firing degree 
    2        // vertical firing degree
    ...
    
  • note that I have set the maximum number of fragments that can exist at any moment in game to 1000, it was previously set to 200

Wait, what is that? Two detonators on oen bomb? How can that be?

Answer: One is a new item, a remote defuse. If you plant a bomb with a remote defuse attached, you are now asked to enter a detonation and/or defuse frequency.

http://i42.tinypic.com/2qnw3l2.jpg

If you then activate the remote, you are asked for a detonation frequency or a defuse frequency.

http://i42.tinypic.com/6ogd53.jpg

Selecting defuse will make defuse all mines and bombs that react to that defuse frequency. They will no longer bee armed, and can be picked up by anyone.
This allows you to safely defuse traps you planted. Simply set them all on the same defuse frequency. With a single remote command, they are defused, and you won't have to risk lives jsut to collect your traps.
Of course, you have to first attach a remote defuse on your items.

Bobby Rays, Tony and Devin will now have claymores, Tripwire and Remote Defuses in stock.

Also, the pics for the tripwire and the claymore were made by Smeagol. Thanks you a lot!

For your entertainment:

http://i42.tinypic.com/641ma0.jpg
Barry and Red set up an ambush... the red tile is a remotely controlled claymore.

http://i40.tinypic.com/iepdvo.jpg
Barry activates the claymore. 4 enemies are hit, 2 lethally. If you look closely, you can still spot some of the fragments flying.

Edit: This post was altered, because I wanted th first post to describe everything I did here.

[Updated on: Wed, 18 April 2012 01:37] by Moderator

Report message to a moderator

Captain

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Feature: Drug System Overhaul
Next Topic: New feature: quest & intel map overlay
Goto Forum:
  


Current Time: Mon Dec 02 14:01:26 GMT+2 2024

Total time taken to generate the page: 0.03479 seconds