Mods / Better Attack

Tags:
QoL Accessibility Immersive Combat Clientside
Author:
CRTXScyNet
Side:
Client
Created:
Sep 26th at 12:42 PM
Last modified:
21 hours ago
Downloads:
458
Recommended download (for Vintage Story 1.22.7):
betterattack_1.2.2.zip  1-click install

Tired of hunting down enemy pixels while they fly around?


This mod helps with that, though you still need to at least see the enemy to land a hit.
I created this mod for myself and my friends so we could play comfortably without feeling like we were playing an FPS.

Now you can too!

Description

 

Hits are now registered within a cone-shaped area in front of you.
Priority is given to the enemy closest to the crosshair within that area.

By default, the detection angle is 45 degrees from your crosshair.
If the crosshair turns red, it means you can hit the target.

The character also turns toward the target of the attack.
By default it's ON

How to change

To change the angle, simply type the command ".betterattack #" into the chat. Replace "#" with any value from 0 to 45 degrees.
If you enter the command without a number, the current angle will be displayed.
"0" means playing as if the mod were disabled, while "45" covers practically the entire visible area, so there is no point in going any wider. It's just a slight aiming assist.

The specified angle will be saved only for the current world.

To turn off/onn rotation, enter ".barotate #" and replace "#" with 0 or 1.
0 – OFF, 1 – ON.
If you enter it without a number, the current state will be displayed.

As with the angle, the value is preserved only for current world.

Config

 

After first launch you can find the config file at "C:\Users\[your user name]\AppData\Roaming\VintagestoryData\ModConfig\betterattack.json"

  "setDefaultAngle": 45,
  "setDefaultRotating": 1


The values ​​are set as previously described.

 


Please note that targeting does not apply to tamed animals, animals of the first generation or higher, or players.

If you discover any issues or bugs, please let me know

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
1.2.2 betterattack 67 21 hours ago betterattack_1.2.2.zip 1-click install

Added the ability to set default values ​​(angle, rotation) in the betterattack.json file within the ModConfig folder.

1.2.1 betterattack 132 6 days ago betterattack_1.2.1.zip 1-click install

One more exception
Animals of 1 and higher generations are no longer selected as targets.

1.2.0 betterattack 58 Oct 3rd at 2:13 PM betterattack_1.2.0.zip 1-click install

Exceptions have been added. Targeting will no longer lock onto tamed animals or other players.
Targeting is also disabled when the cursor is not locked to the center.
If no, let me know.

1.1.0 betterattack 121 Sep 29th at 1:51 AM betterattack_1.1.0.zip 1-click install

Added character rotation towards the target being attacked. The mod is now immersive.

1.0.0 betterattack 80 Sep 27th at 5:03 PM Empty betterattack_1.0.0.zip 1-click install

Disclaimer

By downloading a mod you consent to our Terms of Use.

We tell you this specifically because we want to make sure you are aware that we cannot validate every mod, and you are responsible for any damages you might incur by installing or loading mods.

This prompt will not be shown to you again (for the current browser session) if you proceed.


26 Comments (oldest first | newest first) (threaded | flat)

Getsune, 12 hours ago

Hello, great mod! there is one incompatibility with betterentityinteraction when both mods are enable cant no longer click entities through the grass to grab them like animals to get them to the butchering table from the butchering mod.

catKnignt, 2 days ago

does this affect the vertical angle as well?

catKnignt, 2 days ago

can you add a setting to change what the default world angle gets set to?

CRTXScyNet , 1 day ago
@catKnignt: can you add a setting to change what the default world angle gets set to?

dont know why is it matter, but shure)
i can add it to betterattack.json into ModConfig folder if you want
let me know if it's still necessary

catKnignt, 23 hours ago
@CRTXScyNet: dont know why is it matter, but shure)i can add it to betterattack.json into ModConfig folder if you wantlet me know if it's still necessary

i only want minor attack help, and having a setting like that will streamline making new worlds.

im not sure what the difference would be, so do what ever is easiest ig

EnglishBob, 6 days ago

Can you please consider excepting any animal with generation 1 or higher?

I'm trying to remove troughs and fences and I keep smacking the boars, lol.

CRTXScyNet , 6 days ago
@EnglishBob: Can you please consider excepting any animal with generation 1 or higher? I'm trying to remove troughs and fences and I keep smacking the boars, lol.

If fence is closer than boar, and you looking at the fence it should work correctly

But I'll give it a try.
I don't think it will be difficult.

EnglishBob, 6 days ago
@CRTXScyNet: It should work the way you suggest now.

You are awesome.Thank you!

This will also be a huge help when attempting to cull 40 males out of a herd of 200, lol.

DUCATISLO, Sep 29th at 12:15 PM

minecraft combat gg

CRTXScyNet , Sep 29th at 12:41 PM
@DUCATISLO: minecraft combat gg

.notminecraft
dk how it was there.

Michaloid , Sep 27th at 5:47 PM

This mod is good, but without any animation changes, the hits make no sense. A swipe attack would do great.

Goplit, Sep 27th at 5:59 PM
@Michaloid: This mod is good, but without any animation changes, the hits make no sense. A swipe attack would do great.

Idk, it's just better hit detection than pixel-perfect one in the vanilla, it seems.

CRTXScyNet , Sep 27th at 9:06 PM
@Michaloid: But muh immersion... ;(

Well, this mod doesn't have the "Immersive" tag, so...
If you decide to install any attack animation mod, they’ll work together without any issues. I just want to help those who’ve run into the same annoyance I did.

Besides, I’ve never done animation before, so I have no intention of producing low-quality work.

Michaloid , Sep 29th at 4:04 PM (modified Sep 29th at 4:06 PM)
@CRTXScyNet: Maybe you'll like it now, after the latest update. ;)

:O Wow, i didn't expect this. It looks super good now! Thank you so much!

CRTXScyNet , Sep 29th at 4:23 PM (modified Sep 29th at 4:23 PM)
@Michaloid: :O Wow, i didn't expect this. It looks super good now! Thank you so much!

Thank you for the idea

OpaqueBlaque, Sep 27th at 5:07 PM

Those shiver hotboxes. I have a grudge against those. Does it work with arrows too? I imagine the cone only works for melee swings

CRTXScyNet , Sep 27th at 5:34 PM (modified Sep 27th at 5:36 PM)
@OpaqueBlaque: Those shiver hotboxes. I have a grudge against those. Does it work with arrows too? I imagine the cone only works for melee swings

Yeah, the cone is only for melee attack, but for every melee attack based on the range of the item held in hand.