Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New Feature: ballistic shields
New Feature: ballistic shields[message #350413] Sun, 30 July 2017 00:10 Go to next message
Flugente

 
Messages:3158
Registered:April 2009
Location: Germany
The idea to have mercs equip ballistic shields isn't exactly new. It has not come to fruition, however, as the traditional way of adding this feature would have required copying and altering a gazillion animations, which is dreadfully tedious.

So instead, we've simply decided to take an easier way out at this year's convention, and basically made shields an overlay. This is by no means perfect - you will see the shield 'jump' if a merc walks, and occasionally shine through a wall - but that is acceptable, we think.


To the feature itself:


  • Shields only work if you equip them in your hands.
  • Shields are two-handed items, but as they also work in your offhand, they allow simultaneous use of blades, pistols and MPs. You cannot equip 2 at the same time though cheeky
  • I've added several shields to the trunk. In the above video, Shepard carries the heaviest variant, which works well up to and including some assault rifles. Lara carries the riot shield, which works well against pistols. She would have gotten into serious damage if she had engaged the Type-85 wielding enemy though. Igor created a wooden shield. It doesn't block much, but works well enough against very tiny bullets, like buckshot pellets.
  • There are 2 new item tags: <usRiotShieldStrength> controls how much incoming damage is blocked. The basic formula is
    damage_new = max( 0, min( damage_old, ((100 - shieldstrength) / 100) * (damage_old - shieldstrength) ) )
    but this gets altered depending on attack type, ammo type and the circumference of your mom. Yes, a value of 100 will block absolutely everything.
  • Codewise, quite a few things are treated as bullets that you wouldn't think are bullets. This includes throwing knifes, flamethrowers, spit and RPGs.
  • <usRiotShieldGraphic> controls which sets of graphics are used for the shield: There is a new .sti file, Tilecache/riotshield.sti, that contains all the graphics for each direction. So if you want, you can simply add new shields of your own. All the current graphics and item pictures were done by smeagol.
  • While you can of course change that, I'd advise keeping shields at their current item size, which forbids them from being kept in any other place than hands. Otherwise the player could easily exploit shields by pulling them out at the end of a turn.
  • For obvious reasons, shields won't work while prone or swimming.
  • If a shield takes the entire damage of an explosion, the character won't fall down. This makes them especially useful against those OP vacuum grenades.
  • The AI does not yet know how to equip shields, or what special strategies to use against them. As I'd like a certain someone to merge his AI improvements to the trunk, I'd rather not fiddle in there before he does ;)
  • While a shield is equipped, any movement AP costs are multiplied with the new factor SHIELD_MOVEMENT_APCOST_MODIFIER from Item_Settings.ini.
  • A shield does not make you invincible. Flanking, explosions from the side or back, gas/fire or anti-material rifles can still bring you down. Though I have to admit, a turtle-formation does look nice cheeky
  • The bodybuilding trait works extremely well with this. It increases carry strength, which is useful on heavy shields. It makes it less likely to fall on a leg hit, which would remove the shield protection. And it offers additional damage protection, making the merc even tank-ier.
  • http://i.imgur.com/LCbwLfq.png
    This picture shows from which direction a shield will block attacks: Shepard, Lara and Buns would hit the shield, Igor and Ivan would hit Trevor unimpeded.
  • Riot shields have been added to starting kits for Grizzly, Raider and It.
  • A shield covers more than just the silhouette of the person wielding it. As a result, a shield is more likely to catch a bullet, it is possible for a bullet to pierce the shield, but not hit the person behind it. Due to some... oddities in the code that are used to prevent an extreme amount of friendly fire, it is possible for bullets to not hit the shield, as the code effectively tells them that the person they would definitely hit is nit hit.
  • As you might have noticed if you are familiar with the game, when you are hit, there is a random chance that a merc will change their direction. As this would easily render this feature pointless, this behaviour is now off exclusively when wielding a shield.
This is fully savegame compatible.
This has been added to the trunk in r8434 & GameDir r2381. Using the new exe without the new GameDir data will cause Mr. Orange to increase the madness up to 11 (just kidding. He'll do it anyway!).

[Updated on: Tue, 01 August 2017 22:09]




Saren threw his head back and screamed in impotent fury, before falling to his throne, head in his claws, trembling in horrified disbelief.

Then he heard a faint chime as Sovereign subscribed to her ECHO channel.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: New Feature: ballistic shields[message #350414 is a reply to message #350413] Sun, 30 July 2017 00:32 Go to previous messageGo to next message
grim

 
Messages:293
Registered:July 2006
Location: France
Flugente wrote on Sat, 29 July 2017 23:10
This is by no means perfect - you will see the shield 'jump' if a merc walks, and occasionally shine through a wall - but that is acceptable, we think.

We think too ;)

The idea has been around for ages, to no avail, yet you made it come to life. We should use your name instead of "amazing".

Thank you to Smeagol for hosting the convention (what a fruituous brainstorm !), and for the precious artwork.

thumbs up
Re: New Feature: ballistic shields[message #350415 is a reply to message #350413] Sun, 30 July 2017 00:35 Go to previous messageGo to next message
ratpaz

 
Messages:132
Registered:April 2015
Location: Italy
This look like a really cool feature than can change the gameplay drammatically.
Re: New Feature: ballistic shields[message #350572 is a reply to message #350413] Sun, 13 August 2017 07:10 Go to previous messageGo to next message
ratpaz

 
Messages:132
Registered:April 2015
Location: Italy
Just noticed a character with a shield is still very prone to suppression
while i like the feature beecause this will not make shields too OP
i think using a shield should make you more resistant to change stance or lose AP(not much maybe)
after all you should feel safer behind a huge shield that cover most of your body.
For example i have Grizzly using a Swat shield and he almost always change stance when he receive simple pistols bullets
even if i have to admit i made a little more effective suppression in options_ini:

SUPPRESSION_EFFECTIVENESS = 150
SUPPRESSION_EFFECTIVENESS_PLAYER = 100
SUPPRESSION_EFFECTIVENESS_AI     = 150

Re: New Feature: ballistic shields[message #350573 is a reply to message #350572] Sun, 13 August 2017 07:48 Go to previous messageGo to next message
sevenfm

 
Messages:1343
Registered:December 2012
Location: Under the Mountain
Quote:
SUPPRESSION_EFFECTIVENESS_PLAYER = 100
SUPPRESSION_EFFECTIVENESS_AI     = 150

Maybe it would be better instead of using cheating settings make the simple change to the code:
if suppression attack comes from direction covered by shield (and maybe one adjacent direction to both sides), the AP loss is halved.



Stable 7609+fix (06.09.2017)
Stable 7609+AI (r522 11.10.2017)
Improved weapon sounds, Ambient sounds, LoadScreenHints for Ja2+AI
Youtube channel
Win8+ fix


Re: New Feature: ballistic shields[message #350574 is a reply to message #350573] Sun, 13 August 2017 09:04 Go to previous messageGo to next message
ratpaz

 
Messages:132
Registered:April 2015
Location: Italy
More than the AP loss is the change of stance that is annoying
i don't know if this is related to suppression effectiveness
but this happens very often
Re: New Feature: ballistic shields[message #350578 is a reply to message #350574] Sun, 13 August 2017 15:08 Go to previous messageGo to next message
Flugente

 
Messages:3158
Registered:April 2009
Location: Germany
The change to stance (from standing to crouched, from crouched to prone) is part of the suppression mechanic.

Note that with a shield, suppression is already halved effectively. A moving bullet causes suppression on the tile it currently is and all surrounding tiles. So if a bullet hits a shield (and does not pierce it), it only adds suppression once instead of the usual twice.

Of course, a merc fully utilizing a shield would take a lot more fire than usual, so it may be that an additional suppression reduction may be in line. Personally I always tune down suppression because I find the default values way too high for my taste.



Saren threw his head back and screamed in impotent fury, before falling to his throne, head in his claws, trembling in horrified disbelief.

Then he heard a faint chime as Sovereign subscribed to her ECHO channel.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: New Feature: ballistic shields[message #350598 is a reply to message #350578] Tue, 15 August 2017 13:27 Go to previous messageGo to next message
Bananarepublic

 
Messages:38
Registered:October 2013
Wow, amazing feature!
It's good that we don't need perfect animations for everything happy
Re: New Feature: ballistic shields[message #350800 is a reply to message #350598] Wed, 30 August 2017 22:34 Go to previous messageGo to next message
Flugente

 
Messages:3158
Registered:April 2009
Location: Germany
As of r8467, moving while wielding a shield is now slightly less awkward. Not perfect by any means, but less awkward.



Saren threw his head back and screamed in impotent fury, before falling to his throne, head in his claws, trembling in horrified disbelief.

Then he heard a faint chime as Sovereign subscribed to her ECHO channel.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: New Feature: ballistic shields[message #351095 is a reply to message #350413] Sat, 23 September 2017 11:52 Go to previous messageGo to next message
vota dc

 
Messages:53
Registered:August 2006
Great I have already in my mod a guy that uses an umbrella, I guess umbrella could work both as shield and as a melee weapon!
Re: New Feature: ballistic shields[message #351098 is a reply to message #351095] Sat, 23 September 2017 21:29 Go to previous message
ratpaz

 
Messages:132
Registered:April 2015
Location: Italy
I doubt umbrella can protect from steel bullets, but it will be certainly useful against water guns!

[Updated on: Sat, 23 September 2017 21:31]

Previous Topic: New Feature: drag people & corpses
Next Topic: New feature: Covert operations
Goto Forum:
  


Current Time: Tue Oct 17 16:02:53 EEST 2017

Total time taken to generate the page: 0.01231 seconds