tModLoader Directional Melee — Aim your swings and stabs

Liburia

Terrarian
Directional Melee is a simple mod that strives to improve melee combat.
The mod makes every swinging and stabbing weapon aim towards the mouse cursor.
Works in multiplayer. Last tested on TML v0.11.6.2

Previews:

Hasn't been tested with every weapon, so if any issues arise(the worst that can happen is the weapon not working correctly) you can post here.

You need to call Mod.Call with the first parameter being "excludeItem" and the second parameter — id of the item to exclude.
C#:
public override void PostSetupContent()
{
    Mod directionalMelee = ModLoader.GetMod("DirectionalMelee");
    if (directionalMelee != null)
    {
        directionalMelee.Call("excludeItem", ModContent.ItemType<Items.BasicSword>());
    }
}


0.3.0
Fixed Directional Melee messing up custom weapon style hitboxes (WeaponOut)
Added an ability for other mods to exclude items from being affected by Directional Melee

0.2.0
Can now place chairs and other directional objects as normal instead of always forward.

0.1.0
Initial Release

Download:
tModLoader mod browser
or
GitHub Repository
 
Last edited:
Thanks a lot for doing this, it will greatly improve my experience for future plays (although i'm using Terraria Overhaul, but it's a nice addition to have a separate mod)
 
When placing furniture that has different directional sprites(e.g. chair) character turns towards the cursor, placing the furniture one-sided, regardless of what direction character faces. To actually change placement you need to move around so the placed furniture will be on the other side of screen, where as by default you need only to tap into any of directions, without moving around.
Maybe there's a way to implement check of what character using and limit it to only weapons?
 
When placing furniture that has different directional sprites(e.g. chair) character turns towards the cursor, placing the furniture one-sided, regardless of what direction character faces. To actually change placement you need to move around so the placed furniture will be on the other side of screen, where as by default you need only to tap into any of directions, without moving around.
Maybe there's a way to implement check of what character using and limit it to only weapons?
Good point. Now the mod doesn't affect player direction when placing directional objects.
 
When used with WeaponOut, all of the fist weapons from the mod are broken. Maybe you could somehow exclude the WeaponOut's fists from the directional melee?
 
Version 0.3.0
Fixed Directional Melee messing up custom weapon style hitboxes (WeaponOut)
Added an ability for other mods to exclude items from being affected by Directional Melee
 
fargo's soul mod's tungsten enchantment breaks all swords that swing. it uses the normal weapon size and the the 150% increased size. ive tested it with only a few swords but im sure its like that for all
 
Back
Top Bottom