---------------------Adds the quick melee attack------------------------
Port of an old addon to Anomaly 3.0 update 2 that adds the quick melee attack from the Dead Air mod to Anomaly.
UPD: must work with update 4, but if you get any CTD with this addon pls send log file in comments.
To activate quick attack press "V"
New game not needed
there are 2 versions in archive:
- no equip (allows to use quick attack without equiping knife in knife/pistol slot)
- normal (quick attack can be used only with equiped knife)
Demonstration
also check this
UPD1: added fix for 4:3 aspect ratio, put it over original addon (ONLY IF USING 4:3 ASPECT RATIO (or other SQUARE ratio ) )
P.S. to change hotkey open quickdraw.script in gamedata\scripts and change line "if (key == 47) then --V"
number after "key ===" is key code, key code table can be found here :
or check this Geck.bethsoft.com
<3
Awesome work.
Is there a way to make it work from the inventory, without equiping a knife in the slot?
I second this, that would be great!
done
Strelok as 9S and Sidorovich as Eve is the best thing i've ever seen. ******* amazing.
New game not needed like in previous one?
yeap
So, the dmg will be Knife dmg or it have it own dmg ?
own, you can change it in items_animations.ltx if you want, at the bottom of file
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
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.
Idk try google your mouse key codes, by mouse name
Did you found out the keycode for mouse? I have been trying for a day now with no luck
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
Sadly it did not work for me, but thanks for trying!
Not working :(
long time passed but, try to change the whole line to
if (key == DIK_keys["MOUSE_4"])
where MOUSE_4 can be any MOUSE button
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.
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
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:
I guess u modified items_animations.ltx by yourself or some other mod, or installed only fix for 4:3 ratio without main mod
Thanks! Yeah,it was the latter cause.
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. :)
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```
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.
idk, when I use quick attack with gun in hands it draws after animation automatically, can u provide a video with problem u get? )
Done
Weird, animation is too long, try to reduce anm_time in quickdraw.script
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 !
oups
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.
if u screen ratio isn't 16:9 then try to install fix
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!
Saw this in Dead Air, never could forget it. Thanks for this.
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.
Can confirm. Couldn't harvest crows with the addon, removed the file you mentioned and it worked again without any other bugs occurring.
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?
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
Не могу поменять кнопку, хотя строку с биндом нашел. Поменял на клавишу Z, а в игре срабатывает все равно на стандартную.
function on_key_press(key)
if (key == 44) then --Z
hit_key()
end
Это работает в 1.5.1???
anyway to make this work with 1.5.1?