Report Mod
Melee Cuff by Cop
Version 1.2b | Last Updated: 01-15-2018, 08:00 PM
Status: Public
Views: 300
Downloads: 28
6 0

Shortlink:
**Note: Due to my modding skill. This is the best thing I could do now. Sorry if you feel that this game is unplayable from using my mod :P
Note 2: This mod required BLT2.0 **

Melee Cuff by Cop
(MCbC)
Source code: MCbC from GitHub
[Image: Tqj88fT.png]

What does this mod do?
- Give a chance around 20% that a player will get cuffed by any cops when they use a melee attack.
- If you got tased and then got meleed too then you can get cuffed instantly.
- Only Counterstrike skill that can help you prevent getting cuffed. (for now)
The original idea came from here and I have the same idea and agreed with his idea so I tried to make one.
And this mod was born. Though it's not the same but meh... with my skill. This is the closet one I could make I guess...
[Image: YI7XLrn.gif]

How to install it?
1. Download the file
2. Extract the file using a program, for example, WinRAR, 7-Zip etc.
3. Move the folder's name "MeleeCuffbyCop" to \SteamLibrary\steamapps\common\PAYDAY 2\mods
4. Enjoy :)

How to change the chance of getting cuffed from cops' melee?
By changing the line in PAYDAY 2\mods\MeleeCuffbyCop open MeleeChance.lua file using a notepad program or notepad++
Change the number on the 5th line below from 0 to 100 up to you (default setting is around 20%)
[Image: tIPWqCB.png]

Known Bugs
  • Sometimes a player with counterstrike skill can auto counter most enemies without pressing e to hold melee weapon... I'll try to fix it again.
  • If you got tased and got cuffed at the same time, there won't be a timer to uncuff yourself so your teamate or your AI have to help you directly.
Future plan
  • Fixed some serious bugs. (no timer if you got cuffed while you got tased at the same time)
  • Make it works both client side and a host side. (now it works only if you have this mod)
  • I may add an option to enable-disable this mod.
  • I may add a voice line (Voice ID: "i03" that cop says "It's over", "This ends now", "Scumbag") considered it as a tuant. | Still didn't work so I'll try to fix it again.
  • If possible I may chance the lib/units/enemies/cop/logics/coplogicarrest like more than 1 cop can perform an action or when a player got flashed then cops will charge at a player to cuff him/her.
  • Repolish my shitty coding :P 
  • Some other things I guess... gonna try harder with my shitty coding skill...
Suggestion
  • Make counterstrike skill lower the chance of getting cuffed by cops
  • Make it better :P (I'm trying)
  • etc.
Note 
  • This is my second mod so as you can see, It's still buggy as ***** 
  • If anyone wants to help, please do since my coding skill is so ****** up. Send me a pull request so I can check and push it on my Github.
16 Jan 2018
MeleeCuffbyCop version 1.2b
  • Remove left over codes and fixed crashed issue
  • Deleted the unwanted lines
  • Remove leftover sound codes as it didn't work for now
15 Jan 2018
MeleebyCop version 1.2
  • Added enemies types that can cuff a player. 
  • Made Counter Strike skill effects other excluded units too.
11 Jan 2018
MeleebyCop version 1.1
Temporary fixed Counterstrike skill.
  • Added a check for counterstrike skill though it's still buggy as hell :P since 
  1. Sometimes, cops will get auto countered from a player and you don't have to hold e to prepare a counter.
  2. Luckily cloaker still can down you so be on your guard when facing him.
8 Jan 2018
MeleebyCop version 1.0
MeleebyCop Reborn!!! 
  • Added a working mod.
  • Prevent getting cuffed when a player is on swansong, bleed out or incapacitated state.
  • Added an ability that cops can cuff a player instantly if a player got tased.
Do not steal and give me a credit if you want to use it in your mod :)

[-]
Leave a comment
To leave a comment you must log in.

01-11-2018, 01:24 PM
@NewPJzuza , no,the mod is really good . but it hinders if you play Crimespree . alas

01-10-2018, 08:38 PM
Jarey_
Ikr :) but well with my skill... I don't think I can deliver every concepts I have planned unless we have got a real mod creator to help doing this little mod project to become a useful gameplay changing mod and a challenge gameplay one. 

01-10-2018, 05:33 PM
Can't wait for it to apply to all members of the lobby, even if you need to bring some other modders on board to help you.
Best of luck and really look forward to the expansion of this awesome mod. So simple yet it adds a breath of fresh air into the chaos.

01-10-2018, 11:31 AM
Quote:#zadiraka_zeis ?
it does not work with vanilla client  right 
Quote:
Quote: Wrote:Phyxia
Does this apply to all players?
Currently, it will apply to the user who has this mod and it works both client side and a host side but only if you have the mod. 


01-10-2018, 08:24 AM
it does not work with vanilla client  right 

01-10-2018, 07:57 AM
I understand it wouldn't be easy, perhaps you could look into cuffing immunity when you are the Last Man Standing? Similar to how Cloakers will no longer use kick attacks when only 1 person is on their feet.

01-09-2018, 06:22 PM
Ok. It has a bug with Counterstrike skill. I'll try to fix this serious issue first.

01-09-2018, 01:59 PM
Quote:Phyxia
Does this apply to all players?
Currently, it will apply to the user who has this mod and it works both client side and a host side but only if you have the mod. 

01-09-2018, 07:12 AM
CQC  technic *metal gear solid flashbacks

01-09-2018, 06:51 AM
Does this apply to all players?

01-08-2018, 11:02 PM
Quote:Iron Predator
That one skill that reduces your damage taken by melee strikes should also gain the ability to decrease the cuff chance and im not sure if its been done yet but I hope this doesn't negate Counterstrike
Right. I've completely forgotten that we have this skill :P 

I'll recheck if the mod causes the problem or not. If so, then I'll have more work to do. Thank you very much for a good warning and great information.

01-08-2018, 09:50 PM
That one skill that reduces your damage taken by melee strikes should also gain the ability to decrease the cuff chance and im not sure if its been done yet but I hope this doesn't negate Counterstrike 

01-08-2018, 09:01 PM
That makes them more effective than the Cloaker himself.

01-08-2018, 08:43 PM
Now THIS should test if you're as good as the Cloaker was told, because his colleagues overestimated the Payday Gang.

01-08-2018, 07:30 PM
Now THIS adds some difficulty to the game. I'll be testing this out.