The stand-alone mod S.T.A.L.K.E.R. Anomaly aims to be the most stable and customizable experience for fans of the S.T.A.L.K.E.R. games. It's powered by the Monolith 64-bit engine, a custom fork of the X-Ray engine.

Add addon Quick Melee Attack for Anomaly 1.5.1 - Ver 1.1
Filename
Quick_Melee_Attack_v1.1.zip
Category
Prefabs
Uploader
nVy
Added
Size
66.46kb (68,057 bytes)
Downloads
373 (7 today)
MD5 Hash
82ca99010ae0d7380e02cc19cde6fcd3
Embed Button
Embed Widget
Description

Quick Meele addon by r3zy, pryviet, feel-fried and most likely the BaS team updated for Anomaly 1.5.1

Preview
Quick Melee Attack for Anomaly 1.5.1 - Ver 1.1
Comments
HellblaueHoelle
HellblaueHoelle

The new animation makes sense, and I love that I can have my grenade launcher bind back! 10/10!

Reply Good karma Bad karma+2 votes
manzmnl
manzmnl

The included quick attack in BaS is kinda slow, compared to earlier versions. And I made sure it's not caused by some conflict. Is that the case here too?

Reply Good karma Bad karma+2 votes
nVy Author
nVy

I felt the original animation was kinda fast imo so i even slowed it down by half here, but you can increase the speed yourself if you like.
Inside the "quickdraw.script" search for "local anm_time" and change the number behind it to something lower like 150 that should increase the speed of the animation.

But remember you can't use this mod here with BaS, since BaS has some additional knife models who are not covered in this version here. But the change described above can be applied to the version in BaS as well.

Reply Good karma+1 vote
manzmnl
manzmnl

Thx, yes I know it's aleady featured in BaS. Also I forgot that it became slower after an update for FDDA, and there was a file overwritten because I didn't pay enough attention when merging and copying. It's not the mod's fault. But I've increased speed now :)

Reply Good karma Bad karma+2 votes
sganon
sganon

Thanks for bringing this back, also great job with that forward-compatible ui_keybinding.xml.

Reply Good karma Bad karma+2 votes
nVy Author
nVy

Well if enemies can sneak up on me i need a proper panic-mode defense mechanism. It's only fair to bring this feature back. :D

Reply Good karma+1 vote
vulkodlac
vulkodlac

Great work, thank you. This is pretty minor, but do you have any idea how to make crows lootable with this? I've tried different things with the bind_crowscript, and whatever I do the game still says "need a knife" when I have a knife out and am looking at a dead crow.

Reply Good karma Bad karma+2 votes
nVy Author
nVy

You kinda fixed the problem yourself. :D
When i updated the mod i just glanced through the bind_growscript without really asking why it's there.
Turns out it's not even necessary for the mod to function. In fact it's also the root of the "Need a Knife" problem, so you can remove it and everything should be back to normal.

However it seems that crows don't really have any loot or the drop chance is super low, since every time i got one down it turned out empty.

Anyway thanks for the report, i'll update the mod and let people know. :)

Reply Good karma+2 votes
vulkodlac
vulkodlac

Dude, that's great, thanks! I've been using an old janky version of this mod from long ago and updating it myself, and even in the recent versions the game would crash without bind_crow. You're right -- as far as I know, they drop their beaks with an absurdly low chance.

Also, nice pic. RIP DOOM.

Reply Good karma Bad karma+2 votes
vulkodlac
vulkodlac

I forgot about this one... the crash is actually when you quick knife a dead crow, not when you loot. Not that you need to be able to do that, but I think that's why bind_crow was even there. And i tested it to confirm: quick knifing after they've been looted is fine, it's only if they haven't. Oh well, as long as nobody tries to put the crows out of their misery after a blowout that way xD

FATAL ERROR

[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...nstall/anomaly-1.5.1.2\gamedata\scripts\bind_crow.script:46: attempt to compare nil with number

stack trace:

Reply Good karma Bad karma+2 votes
nVy Author
nVy

Damn you're right. This will be a nightmare to debug, especially for me since i'm on Linux and Wine tends to deadlock when this game crashes.:D

Anyway the good thing is the knife function in the bind_monster.script is pretty similar and might explain where the culprit is. Again good catch thanks for that!

And yea it's a shame that another legend left to soon. RIP DOOM!

Reply Good karma+2 votes
vulkodlac
vulkodlac

Agreed - probably better just to not be a psychopath and knife fallen crows, haha. If you ever decide to **** with it though, I'm pretty sure it's the part of the script that checks if it is_knife or is_melee. One produces the crash, and the other makes the crow unlootable. Perhaps defining the quick knife animation item as one or the other? Peace.

Reply Good karma Bad karma+2 votes
nVy Author
nVy

Ok this odd. I've tried to reproduce it by starting an emission and waiting for the crows to fall from the sky, i've quick knifed them out of their misery and it didn't crash for me. Looting them afterwards seems to "work" (still no loot tho). But if i disable/remove FDDA and try to loot them afterwards the game crashes, because it will fail to get the corresponding loot animation.

If it's not too much hassle for you could you check if there is another mod who ships with the bind_crow.script and/or the items_animations.ltx?

Reply Good karma+2 votes
vulkodlac
vulkodlac

No problem! I have a bunch of addons, but i'm like a librarian about my gamedata folder, so i know nothing else uses those two. in fact, thanks to your update, I could get rid of items_animations.ltx, since feel_fried streamlined FDDA. Have you knifed a crow when it's dead? I'm gonna play a bit tonight, so i'll do the same test.

Also, i just looked in bind_crow and I think I got it - line 46 checks the condition of the knife so it can dull it on use, and quick knifing doesn't degrade because it's a transient animation item! If that's what's happening, would it make more sense to try to get the quickknifing to use the knife's condition, or just code around it somehow? Honestly, it's not breaking balance to say a crow's tiny *** body wouldn't damage a steel knife and just remove that check.

Reply Good karma Bad karma+2 votes
Hibiskus
Hibiskus

Just to chime in with my experience:
I've been having the same error as you as of tonight:

[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...t.a.l.k.e.r. - anomaly\gamedata\scripts\bind_crow.script:46: attempt to compare nil with number

Now, the interesting part is that I am not trying to do anything with any crow, in fact there are no crows around, dead or alive.
I simply press the quickmeele bind, staring straight ahead, with no objects ahead of me so the knife strike would not connect with anything.
I tried as per the description to have the knife in the knife slot, and not a pistol, makes no difference.

What is strange about this is that this has not been happening until now. I was happily quick-knifeing boxes, mutants, stalkers - all with a pistol in the knife slot.

Any ideas? I could do more tests tomorrow if that helps.

Reply Good karma Bad karma+2 votes
vulkodlac
vulkodlac

Whoa, that is weird. Did you update the addon today or change anything else?

Reply Good karma Bad karma+2 votes
nVy Author
nVy

Nope, no update since Tuesday.
And it's incredible strange since nothing that has been reported so far happens on my end.
I can quick knife crows, dead or alive, i can knife the air to my hearts content. I can even switch my pistol to my knife slot and quick knife everyone without a crash.
I guess it really boils down to the condition issue because my knife is at 100% condition and there are no crashes. Time to find me a degraded knife and bring it down to ~15% condition and see what we can do about it. Good thing is it's weekend so i have time to dive into it, i'll keep you guys posted. And feel free to let me know whatever else might come up. :)

Reply Good karma+1 vote
DanFirestarter
DanFirestarter

You're a god send, thank you so much!

Reply Good karma Bad karma+2 votes
AkutoDa
AkutoDa

Yo. Here is the correct translation into Russian:
kb_grp_mods - Клавиши модов
kb_quickmeele - Быстрый удар ножом
kb_tp_companion - Телепортировать напарника

Reply Good karma Bad karma+3 votes
nVy Author
nVy

Thanks, i'll include it with the next update. :)

Reply Good karma+1 vote
ImCheekiBreeking
ImCheekiBreeking

Hi, great job, this works great with the "knife/pistol in binoculars slot"!
I wanted to ask you, is there a way to change manually (in the script file itself) the key bind? I have a small issue, i just installed OPFOR_ClearHUD addon, and both yours and OPFOR_'s addon use the same keybinding from the in-game key binding menu (depending on the order of installation, I see only the "Quick Melee" keybind or the "Health Check" keybind to choose a key for).

So basically, I stab the air everytime i try to check my health. I tried messing around a bit, but this got me nowhere. So I wonder if there's a way to have Health Check as an "in-game selectable" bind, and to manually set the Quick Melee keybind from the script file itself.

I don't know if this is helpful (I know jackshit about coding), but I noticed both scripts (for Quick Melee and Health Check) share the same line

"if (bind == key_bindings.kCUSTOM24)"

Thanks in advance!

Reply Good karma Bad karma+2 votes
nVy Author
nVy

Yeah it's a tricky dance when it comes to keybindings since we only have a limited amount to choose from. But you can change it to a predefined key.

In the quickdraw.script go to the "function on_key_press(key)" function at line 46. And change the whole function to the following.

function on_key_press(key)

if key == DIK_keys.DIK_L then
hit_key()
end

end

Sorry it ruins formatting but this will set the quick meele key to "L", if you like to use another key just change the L above to whatever key you like.

Let me know if something is unclear and i'll help. :)

Reply Good karma+1 vote
ImCheekiBreeking
ImCheekiBreeking

My man, it was way more than clear, thanks, it worked perfectly as soon as I tried!
Now I won't be updated on my health status everytime I panic-stab a Monolith jumping on me from around the corner :D

Thank you very much! May I suggest to include what you just explained me in the addon description? Maybe with a "Use at your own risk" disclaimer (I know there's people who mess around with the scripts, f*cks them up, and then comes here complaining that "bUhuU YoUr AdDoN DoeShn'T WoRk!!1!")

Reply Good karma Bad karma+2 votes
Guest
Guest

not compatible with damien's knife animations

Reply Good karma Bad karma+1 vote
nVy Author
nVy

Thanks for the heads up, unfortunately i can't provide a compatible version for that, at least not yet.

Reply Good karma+1 vote
Guest
Guest

also pro tip: do not try to quick melee with a pistol in the knife slot. very bad things happen

Reply Good karma Bad karma+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Profile
Icon
S.T.A.L.K.E.R.: Call of Pripyat
Developer
Anomaly Developers
Contact
Send Message
Homepage
Moddb.com
Release date
Mod watch
Follow
Addon
Browse
Addons
New
Add addon
Share
Community Rating

Average

10

3 votes submitted.

You Say

-

Ratings closed.

Related Games
S.T.A.L.K.E.R.: Call of Pripyat
S.T.A.L.K.E.R.: Call of Pripyat First Person Shooter
Related Groups
Anomaly Developers
Anomaly Developers Developer