aliens

Author Topic: [DONE] Add Option to Allow Melee Weapons to Destroy Terrain  (Read 3115 times)

Offline Surrealistik

  • Colonel
  • ****
  • Posts: 484
    • View Profile
[DONE] Add Option to Allow Melee Weapons to Destroy Terrain
« on: August 11, 2015, 10:20:51 am »
Per the subject.

Would make these significantly more useful.

EDIT by Meridian: implemented here: https://openxcom.org/forum/index.php/topic,8634.0.html
« Last Edit: October 12, 2020, 09:29:54 pm by Meridian »

Offline yrizoud

  • Commander
  • *****
  • Posts: 1014
    • View Profile
Re: Add Option to Allow Melee Weapons to Destroy Terrain
« Reply #1 on: August 11, 2015, 04:36:11 pm »
How would you determine the preferred target ? If your character is standing on a piece of staircase and facing a tall wall, there's no way to guess which wall you want to destroy (level 0 or level 1).

Offline SIMON BAILIE

  • Commander
  • *****
  • Posts: 673
    • View Profile
Re: Add Option to Allow Melee Weapons to Destroy Terrain
« Reply #2 on: August 11, 2015, 04:39:36 pm »
Does the hammer in Dioxine's Piratez not have the ability to destroy walls?

Offline Arthanor

  • Commander
  • *****
  • Posts: 2488
  • XCom Armoury Quartermaster
    • View Profile
Re: Add Option to Allow Melee Weapons to Destroy Terrain
« Reply #3 on: August 11, 2015, 04:53:40 pm »
Despite its look and feel, that hammer is actually a shooting weapon with range: 1. That's why you can't use it on diagonals and that's why you can destroy terrain. It's a clever use of the game's engine to do what you want despite it not really being possible.

Smashing enemies with a hammer also improves your firing accuracy :D It's excellent on gals who can't aim for their life as a first training weapon.
« Last Edit: August 12, 2015, 01:04:16 am by Arthanor »

Offline yrizoud

  • Commander
  • *****
  • Posts: 1014
    • View Profile
Re: Add Option to Allow Melee Weapons to Destroy Terrain
« Reply #4 on: August 11, 2015, 09:18:20 pm »
Smashing things with a hammer also improves your firing accuracy :D
When you hit a hostile target, yes. Not when you simplify the scenery.

Offline Arthanor

  • Commander
  • *****
  • Posts: 2488
  • XCom Armoury Quartermaster
    • View Profile
Re: Add Option to Allow Melee Weapons to Destroy Terrain
« Reply #5 on: August 12, 2015, 01:03:52 am »
Very true! Edited my first post.

Offline kikimoristan

  • Commander
  • *****
  • Posts: 647
    • View Profile
Re: Add Option to Allow Melee Weapons to Destroy Terrain
« Reply #6 on: August 16, 2015, 11:14:59 pm »
yes you can make a weapon with melee type damage and max range of 1 and will mostly behave like a melee weapon but with the added bonus of destroying terrain object. from my experience there were a few issues  vs regular melee mode. i can't remember know but i think ramps or elevations tend to extend the damage. also i think you can shoot right below or above you. 

the only issue is melee skill does not apply by default to such a weapon since is listed as range and i am not sure if you say skillApplied: true even works on a 1 range weapon that pretends to be melee.
« Last Edit: August 17, 2015, 09:45:44 pm by tollworkout »