Jump to content
Sign in to follow this  

[TUT] Disable KNOCK OUT in SafeZones

Recommended Posts

I thought people could use this on their server against people trolling the function KNOCK-OUT.
Pleas if you re-share this don't forget to write the credits.

Tested on: 4.4r4 but should work for everyone.

Me (LeventHAN) (and KLM for his corrections via Discord)

# DIFFICULTY : Easy Peasy Lemons Squeezy #



1) Open: core\civilian\fn_knockoutAction.sqf 

2) Find: 

#include "..\..\script_macros.hpp"

   2.1) Add under that code snippet this: (Change the markers names for your favor.)

#define SAFETY_ZONES_knockout    [["Safe_Kavala", 425], ["Safe_Athira", 300], ["Safe_Pyrgos", 425], ["Safe_Sofia", 250], ["Safe_Zaros", 250], ["Safe_Vip", 190], ["Safe_Rebel_1", 140], ["Safe_Rebel_2", 140], ["Safe_Rebel_3", 140], ["marker_241", 30], ["Safe_sakir", 450], ["spawnsafe", 425]]


3) Now find this code: 

life_knockout = true;


   3.1) And now add UPSIDe that code snipped this:

if ({((position player) distance (getMarkerPos (_x select 0))) < (_x select 1)} count SAFETY_ZONES_knockout > 0) exitWith {};


Done! Now civilians can't use KNOCK-OUT action when they are on a safezone.
PS: Sorry for bad england :D 

Edited by LeventHAN

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.