Description

Adds a hotkey to attach/detach suppressors so you don't have to open the inventory.

Preview
Suppressor Hotkey 1.01 [1.5]
Comments
DoctorX01
DoctorX01

This is one of those things I would have never thought to do, then when it's done, wonder why I never thought of doing that.

Nice job.

Reply Good karma Bad karma+18 votes
Lоnerboner
Lоnerboner

Should've been standard from the very start. Well done once more TKPG. Your addons always get a place in my gamedata

I only lost the code you gave me on /sg/ 2 years ago where if I'd loot a body, a crow sound would be played and I would be blessed with Vodka instead of RU, I miss that

Reply Good karma Bad karma+5 votes
Lоnerboner
Lоnerboner

I can't even arrange 4 characters in the right order.

Sorry, TKGP*

Reply Good karma Bad karma+2 votes
ColonelRH
ColonelRH

Interesting ;) great job mate :D !!

Reply Good karma Bad karma+3 votes
CzechDeath
CzechDeath

FU***CKING genious ! =D

Reply Good karma Bad karma+3 votes
ΤWiST3D
ΤWiST3D

This is a really good idea, nice job.

Reply Good karma Bad karma+1 vote
Merc-
Merc-

Jesus christ thanks!

Reply Good karma Bad karma+1 vote
Gkirmathal
Gkirmathal

Nice addon :)

Btw, could you add a configurable delay on mounting/demounting the suppressor?
'Screwing' on a suppressor takes few seconds, even with the newer non threaded mounting systems.

Reply Good karma Bad karma+2 votes
Mihzvol
Mihzvol

The animation would be awesome too

Reply Good karma Bad karma+1 vote
TKGP Author
TKGP

Sure, I guess. Uploaded a new version.

Reply Good karma+1 vote
Emmet.Otter
Emmet.Otter

Sorry if im gonna sound stupid here but, whats the great benefit to this?

Reply Good karma Bad karma+1 vote
TKGP Author
TKGP

Instead of pressing a few buttons to do something, you press one button to do something.

Reply Good karma+4 votes
daftestofpunks
daftestofpunks

Is it possible at all to create a 1.4.22 version? I know that it probably is a lot more complicated than I realize, but I have too many mods that only function on that version presently.

Reply Good karma Bad karma+1 vote
TKGP Author
TKGP

Unfortunately it relies on features added in 1.5 to not be totally janky.

Reply Good karma+2 votes
daftestofpunks
daftestofpunks

Alright! Thanks for the answer regardless.

Reply Good karma Bad karma+2 votes
ParanoidCommie
ParanoidCommie

Have my rating

Reply Good karma Bad karma+2 votes
GhostOfSierra117
GhostOfSierra117

is there any chance you could port this to the "last day" mod?

Reply Good karma Bad karma+1 vote
TKGP Author
TKGP

No, Last Day uses an older version of CoC that isn't compatible.

Reply Good karma+1 vote
Ivanovich_s
Ivanovich_s

Need your help please.
I installed it exactly to your instructions onto 1.5R6 and it creates a short cut-scene of the rifle dropping down, but the suppressor is still
on the rifle.
I have OWR for 1.5R6 installed as well.
Thanks.

Reply Good karma Bad karma+1 vote
TKGP Author
TKGP

Which weapon are you using?

Reply Good karma+1 vote
Ivanovich_s
Ivanovich_s

Sorry for the late reply. The weapon of choice, and the one I'm
referring to, is an AN-94.
The short-cut key played the cut-scene, but the silencer was still there.
(1.5R6 and OWR)

Reply Good karma Bad karma+1 vote
Thejeherx
Thejeherx

What about the same idea but with the Scopes and the Grenade launchers?

Reply Good karma Bad karma+2 votes
TKGP Author
TKGP

I could add GLs, but I didn't think anyone would have a need to be taking it on and off that often. Scopes are more complicated since you might have multiple valid scopes and I'm not sure the best way to prioritize them.

Reply Good karma+1 vote
sLoPpYdOtBiGhOlE
sLoPpYdOtBiGhOlE

Thank you,
I always wondered how to detach a silencer via script.
Looks nice and easy.

The only other thing I think that would be good with your addon is if you added the key config to Main Menu -> Options -> Controls menu.
(requires editing an xml)

If it's a case of your not wanting to edit the vanilla files, then add a key config using a list control under the Main Menu -> Options -> Game
(this can be done without editing any vanilla scripts or xmls)

Once again, thank you for sharing.

Reply Good karma Bad karma+1 vote
drowners
drowners

For CoC 1.4.22 please

Reply Good karma Bad karma+2 votes
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

Voland33
Voland33

Please please please make a 1.4.22 version...1.5 has no addons and is seemingly in development hell forever :(

Reply Good karma Bad karma+3 votes
irekprzybylski96
irekprzybylski96

you are Suppressor God , may the zone be grateful to you

Reply Good karma Bad karma+1 vote
Guest
Guest

Oh dang wtf This is for CoC but it works for Anomaly huh.

If you're still seeing this, your mod somehow works for anomaly so thanks for that. Ut works to attach a silencer on a gun with the hotkey, it works to detach it.

But upon detaching, the silencer is removed from the inventory. This might be an anomaly only problem which you didn't even create the mod for. Anyway, since this mod feels like such a must have, is it possible to alter it so the silencer doesn't get removed from the inventory upon detaching with the hotkey?

Reply Good karma Bad karma+1 vote
renard162
renard162

In the line 48 of this script, just change:

weapon:weapon_addon_detach(info.section)

to

weapon:weapon_addon_detach(info.section, true)

and this addon will work fine on Anomaly.

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.

Tags

Suppressor Hotkey 1.01 [1.5] has not been tagged yet.