Repeating blaster attacks restoration 1.0.1

   (2 reviews)

2 Screenshots

About This File

Short story: Repeating blasters were originally intended to give the user an additional attack in every round of combat (like twin-blade melee weapons do). This mod implements that effect. I.e. a character without force speed would normally do 1 attack when using a repeater, 2 when using rapid shot as well. Now, 2 attacks will be done when using the default attack and 3 when using rapid shot.

Long story: After investigating in 2015 what could be the reason for repeaters costing more (500 vs 300) credits while having a worse crit range (5% vs 10%) than blaster rifles while having no advantage whatsoever, I found out that repeaters were originally intended to give the user an additional attack per round, sort of making them the double-blades of the blasters. Sadly, this was never implemented, as one internal item comment even comments on. I didn't know enough about scripting back then and quickly lost interest in fixing this. But now, more than 3 years later, it's finally fixed via scripting, placing the required code in the k_ai_master script.

Known issues: Due to hardcoded mechanics, power blast can never do more than 1 attack, and sniper shot never more than 2. Normal attack appears to usually only do 2, but may rarely do 3 when using force speed as well. Sadly, these cannot be changed without access to the game code. This information turned out to be incorrect, and the user Darg727 made a fix for this. However, this has a downside: It works by making power blast and sniper shot always shoot 4 shots regardless of how many attacks are available, which looks very strange because all shots that don't have a corresponding attack round are auto-misses. For example, using a sniper shot with a blaster rifle or single pistol will cause 4 shots to be fired simultaneously, like a shotgun blast, with 3 of the 4 automatically hitting the floor/ceiling/wall. Using knight speed would allow 2 of those 4 to hit and only 2 would be an auto-miss, etc.... As per Darg727's upload permissions, I have included the responsible file (weapondischarge.2da) as an optional mod in the download for additional visibility for those people that might want to use the feature but would not come across his modification otherwise.

Compatible with any mod that does not edit the k_ai_master.ncs file, and incompatible with any that does. (However, it is easy for any modder to add the compatibility, source is included.)

Note that this fix works for both the player and enemies! This can make some fights of the game slightly more challenging.


What's New in Version 1.0.1   See changelog

Released

Included two optional files based on modifications made by other users:

1. A potential fix for power blast and sniper shot that allows those feats to utilise all possible 4 attacks, with the downside that it makes them always shoot 4 shots, which causes your "sniper shot" to become a shotgun blast of which in regular cases, 3 of 4 shots will always miss.

2. An edit of this mod's script that extends its effect from just repeaters onto all blaster rifle variants (including ion, sonic, bowcaster etc.), for those that might want such an an effect as well. Be advised that like the main mod, this also affects enemies!

  • Like 10
  • Thanks 2
  • Light Side Points 2



User Feedback

Recommended Comments



This mod is no longer compatible with the K1 Community Patch! The 1.9.x version of K1CP now adds a k_ai_master.ncs file override of its own.

Share this comment


Link to comment
Share on other sites

Since source for both are available, this is easily resolvable by yourself. Get k_ai_master.nss from this mod. Extract all the vanilla include files with KTool. Replace k_inc_generic with K1CP's version, available here. Compile.

Share this comment


Link to comment
Share on other sites

HI. can you be a little bit more specific how to do it? I extracted both of this files (k_ai_master.nss from this mod and k_inc_generic) but don't understand what to do next.

Edited by WitcherHammer

Share this comment


Link to comment
Share on other sites

I would also appreciate a K1CP compatibility patch, or more specific instructions on how to manually merge them, I'm not familiar with the tools at all.

Share this comment


Link to comment
Share on other sites

I am unable to make it work for companions after loading the game. Did some tests and it does work at first, but then gets broken. Currently I have 2 saves, one where wookie does double attack with Ordo's blaster after you load the game for the first time since launch. If you then reload, he does not perform second attack. If you save then and exit the game, launch it again and load it back, it is still broken. I have those savefiles if they could help with debugging. I did Full Build installation from reddit post (meaning i have a lot of stuff in the override folder), but as I understand only Community Patch can clash with it. 

I have this problem both on the original version and the one patched by JCarter426. Does anybody made it work correctly after loading the game?

Share this comment


Link to comment
Share on other sites
3 hours ago, xpurbanx said:

Does anybody made it work correctly after loading the game?

Scroll back through the comments, it's a known issue due to the creative way the mod is implemented. It works for the player character, but loading permanently breaks it for party members.

Theoretically you could remove all repeating blasters, wait 6 six seconds, then save in order to make a 'safe' savegame. But you'd have to do that every time.

Share this comment


Link to comment
Share on other sites
On 4/4/2022 at 11:40 AM, TamerBill said:

Scroll back through the comments, it's a known issue due to the creative way the mod is implemented. It works for the player character, but loading permanently breaks it for party members.

Theoretically you could remove all repeating blasters, wait 6 six seconds, then save in order to make a 'safe' savegame. But you'd have to do that every time.

This mod is actually not working for the PC now either. It did at the start of the playthrough but after reentering the game the extra attacks have disappeared for my character as well. 

Share this comment


Link to comment
Share on other sites

Hi, R2-X2 here, I will get to this soon hopefully. Was pretty busy the last years and had the mind elsewhere (though it was always in the back of my head). But I think it can be fixed by coding it more crudely, merely using the OnHeartbeat and probably less than half the code, which would have the negative effect of allowing for weapon switches to malfunction for a few seconds (granting an extra attack still or not granting one for a moment), but I guess unless you actively try to game the system, that shouldn't be an issue.

  • Like 1

Share this comment


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.