Description

---------------------Adds the quick melee attack------------------------

Preview
QuickMelee addon
Post comment Comments
fridgebro
fridgebro - - 199 comments

<3

Reply Good karma Bad karma+3 votes
Kuez
Kuez - - 171 comments

Awesome work.
Is there a way to make it work from the inventory, without equiping a knife in the slot?

Reply Good karma Bad karma+4 votes
Wang_Laoshi
Wang_Laoshi - - 328 comments

I second this, that would be great!

Reply Good karma Bad karma+3 votes
Feel_Fried Author
Feel_Fried - - 496 comments

done

Reply Good karma+6 votes
Zilla8844
Zilla8844 - - 13 comments

Strelok as 9S and Sidorovich as Eve is the best thing i've ever seen. ******* amazing.

Reply Good karma Bad karma+3 votes
Mich_Cartman
Mich_Cartman - - 3,795 comments

New game not needed like in previous one?

Reply Good karma Bad karma+2 votes
Feel_Fried Author
Feel_Fried - - 496 comments

yeap

Reply Good karma+3 votes
Wuach
Wuach - - 115 comments

So, the dmg will be Knife dmg or it have it own dmg ?

Reply Good karma Bad karma+1 vote
Feel_Fried Author
Feel_Fried - - 496 comments

own, you can change it in items_animations.ltx if you want, at the bottom of file

Reply Good karma+4 votes
Dapix
Dapix - - 3 comments

reposting reply, logged in, sorry for spam

hey man, which line do we need to change exactly?

for me it shows like this

animation_hit_wpn_knife
hit_power
hit_power2

animation_hit_wpn_knife_hud
hit_power
hit_power2

and then 5 more rows of hit_wpn_knife# and hit_wpn_knife_hud#

# is an integer from 2 to 5

the question is which hit power should I change and for which hit_wpn_knife/hit_wpn_knife_hud ?

hope my question makes sense

Reply Good karma Bad karma+1 vote
SilentEagle
SilentEagle - - 103 comments

I'm a big dumb. What are the codes for a 5-button mouse? I cannot for the life of me find them.
I use the mouse for melee and pro tip don't knife or even shoot Monolith face to face; if they go into "downed" state even when they've not even fallen to the ground yet they just blow up instantly because you're already right there.

Reply Good karma Bad karma+1 vote
Feel_Fried Author
Feel_Fried - - 496 comments

Idk try google your mouse key codes, by mouse name

Reply Good karma+1 vote
Guest
Guest - - 690,459 comments

Did you found out the keycode for mouse? I have been trying for a day now with no luck

Reply Good karma Bad karma0 votes
Feel_Fried Author
Feel_Fried - - 496 comments

try this, but I'm not sure if it works
259 Mouse Button 3
260 Mouse Button 4
261 Mouse Button 5
262 Mouse Button 6
263 Mouse Button 7
264 Mouse Wheel Up
265 Mouse Wheel Down

Reply Good karma+3 votes
Guest
Guest - - 690,459 comments

Sadly it did not work for me, but thanks for trying!

Reply Good karma Bad karma+1 vote
Juraszka
Juraszka - - 46 comments

Not working :(

Reply Good karma Bad karma+1 vote
Feel_Fried Author
Feel_Fried - - 496 comments

long time passed but, try to change the whole line to

if (key == DIK_keys["MOUSE_4"])

Reply Good karma+1 vote
Feel_Fried Author
Feel_Fried - - 496 comments

where MOUSE_4 can be any MOUSE button

Reply Good karma+2 votes
manzmnl
manzmnl - - 485 comments

This doesn't work either. Also keycode 261 (Mouse button 5) doesn't work...

Does the entire line has to be :

if (key == DIK_keys["MOUSE_5"])
hit_key()

or like this:

if (key == DIK_keys["MOUSE_5"]) then --mouse btn 5
hit_key()


I found out some other codes for directx that can be used for mouse:

STR_INPUT_DEVICE_MOUSE_4 //Mouse button 5

But none of them work...
What about HEX codes? The game itself has no problems to recognize my mouse buttons, when I set them for another keybind. There must be a way.

Reply Good karma Bad karma+2 votes
turdjabroni
turdjabroni - - 1 comments

I finally figured it out. The codes up there are incorrect for the XRay engine past the main alphanumerics. Mouse button 4 is code 340 not 260. if you make it "if(key == 340 ) then --mouse button 4" then it works perfectly

The annoying thing is that DIK_keys["MOUSE_3"] works but not DIK_keys["MOUSE_4"]. Fortunately just inputting this 340 directly works fine. The bit after the -- is just a commented out section to label what number the key is evaluated against.

i got the code from this coc github Github.com

here's the relevant excerpt.

const MOUSE_1 = 337
const MOUSE_2 = 338
const MOUSE_3 = 339
const MOUSE_4 = 340
const MOUSE_5 = 341
const MOUSE_6 = 342
const MOUSE_7 = 343
const MOUSE_8 = 344

Reply Good karma Bad karma+1 vote
onestalkyboi
onestalkyboi - - 6 comments

got instant ctd, did i do anything wrong here?

FATAL ERROR

[error]Expression : <no expression>
[error]Function : CInifile::r_section
[error]File : Xr_ini.cpp
[error]Line : 530
[error]Description : fatal error
[error]Arguments : Can't open section 'animation_hit_wpn_knife'. Please attach [*.ini_log] file to your bug report

stack trace:

Reply Good karma Bad karma+1 vote
Feel_Fried Author
Feel_Fried - - 496 comments

I guess u modified items_animations.ltx by yourself or some other mod, or installed only fix for 4:3 ratio without main mod

Reply Good karma+1 vote
onestalkyboi
onestalkyboi - - 6 comments

Thanks! Yeah,it was the latter cause.

Reply Good karma Bad karma+1 vote
LoneWolfLazarus
LoneWolfLazarus - - 264 comments

Hey, dunno if your still on here Fry or updating the addon? But I'd like to suggest a compatibility patch between Boomsticks and Sharpsticks and Quick Melee, I really wanna either know how to add more knives to the script or without sounding lazy, have it done for me (and everyone else too of course). By updating the mod with a compatibility patch? Just a thought, good day all. :)

Reply Good karma Bad karma+1 vote
Feel_Fried Author
Feel_Fried - - 496 comments

as I know he did comp patch long ago )```===Update 17-Sep-2019:

Some really good addons was adapted for B&S:

1. The "T.H.A.P Anomaly 3.0 pack" by ICHICROW .

2. The "QUICKMELEE ADDON" by Feel_Fried```

Reply Good karma+1 vote
Sorincrow
Sorincrow - - 17 comments

Soo when I use quick melee- actor hides gun and when quick attack ends I need to press button to draw weapon again.
Can u fix this?
It will be much better when attack ends actor take gun again
automatically without pressing weapon button.

Reply Good karma Bad karma+1 vote
Feel_Fried Author
Feel_Fried - - 496 comments

idk, when I use quick attack with gun in hands it draws after animation automatically, can u provide a video with problem u get? )

Reply Good karma+1 vote
Sorincrow
Sorincrow - - 17 comments

Done

Reply Good karma Bad karma+1 vote
Feel_Fried Author
Feel_Fried - - 496 comments

Weird, animation is too long, try to reduce anm_time in quickdraw.script

Reply Good karma+1 vote
BitoOblib
BitoOblib - - 249 comments

Can't believe it's not "vanilla" =) Hope to find a same mecanic for throwing grenades soon ^^
You should put that key scancode table picture in the folder along the readme =3
Nice work ! Thanks !

Reply Good karma Bad karma+1 vote
BitoOblib
BitoOblib - - 249 comments

oups

Reply Good karma Bad karma+1 vote
olegtt82
olegtt82 - - 3 comments

Hello! Installed clean without mods anomalies 1.5. beta 3 update 4 fix 8. Installed your mod (no equip). The animation is played but there is no knife in the hand and no NPC damage is done. In any case, thank you for your work.

Reply Good karma Bad karma+1 vote
Feel_Fried Author
Feel_Fried - - 496 comments

if u screen ratio isn't 16:9 then try to install fix

Reply Good karma+1 vote
GabeCPB0
GabeCPB0 - - 354 comments

Hey Feel_Fried, thank you for the addon!

I guess I already downloaded another mod of yours before.

Tried other quick meele add-on that didn't worked. Yours runs fine on my game.

I'm using version 1.5, with hotfix 8 and the 1.4 update, with Generic Mod Enabler, version 2.6.0.157.

I'm a big fan of Stalker, and rediscovered the game after so many years. And I keep finding these gems, like Call of Chernobyl before and now, Anomaly and its add-ons. Yours, it helps with the immersion, at least for me. So thanks again!

Reply Good karma Bad karma+2 votes
sganon
sganon - - 239 comments

Saw this in Dead Air, never could forget it. Thanks for this.

Reply Good karma Bad karma+1 vote
dexter136
dexter136 - - 6 comments

Hello Fell Fried. I am loving your mod!

I noticed that there is a very small change to /gamedata/scripts/bind_crow.script in your mod. From what I can tell only a single line is different between the file in this mod and the original and your version prevents crows from being harvested.

Removing this file added by your mod doesn't seem to affect the quick melee, but does allow crows to be harvested again.

Reply Good karma Bad karma+2 votes
freedomer
freedomer - - 255 comments

Can confirm. Couldn't harvest crows with the addon, removed the file you mentioned and it worked again without any other bugs occurring.

Reply Good karma Bad karma+1 vote
Guest
Guest - - 690,459 comments

hello Fell Fried, i have an issue with the animation, i have instaled B.A.S, but for some reason the quick atack just shows a very far fov from the hands, making it super weird, is there ani fix that can solve this issue?

Reply Good karma Bad karma+1 vote
0ne_jellyfish
0ne_jellyfish - - 16 comments

Nu privjeť. When I press V, animation shows but no damage at all, just no reaction when I hit box or npc, I´ve installed the no equip version, if that helps

Reply Good karma Bad karma+1 vote
Guest
Guest - - 690,459 comments

Не могу поменять кнопку, хотя строку с биндом нашел. Поменял на клавишу Z, а в игре срабатывает все равно на стандартную.
function on_key_press(key)

if (key == 44) then --Z
hit_key()
end

Reply Good karma Bad karma0 votes
batonmax228
batonmax228 - - 49 comments

Это работает в 1.5.1???

Reply Good karma Bad karma+1 vote
SparksTheUnicorn
SparksTheUnicorn - - 69 comments

anyway to make this work with 1.5.1?

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: