From fbffd8e9cbcc854540c9c888fde6f04f8c4f28ef Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Sat, 30 Jul 2016 12:07:26 -0400 Subject: [PATCH] Fix hit_glass setVariable filter @icomrade - In regex character classes only match each single character. So a range with more than one character on one end (20) won't work: http://www.regular-expressions.info/charclass.html You can see that by running this code in-game with your old filter and it will kick you: player setVariable ["hit_glass3",1,true]; Adding the + on the end makes it match the character class one or more times, so now it will match any integer >= 0. --- Server Files/Battleye/setvariable.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server Files/Battleye/setvariable.txt b/Server Files/Battleye/setvariable.txt index c053f5cd4..3fe5666fd 100644 --- a/Server Files/Battleye/setvariable.txt +++ b/Server Files/Battleye/setvariable.txt @@ -3,7 +3,7 @@ 5 ^USEC_!=USEC_(BloodQty|infected|injured|inPain|isCardiac|isDead|lowBlood|Sepsis) 5 ^NORRN_ !=NORRN_(LoadVcl|unconscious|unit_dragged) 5 ^bis_ !=bis_greeted(by(evil|languages|people|times)|languages|people|times) !=BIS_noCoreConversations -5 ^hit_ !=hit_(Pelvis|aimpoint|lelbow|relbow|RightFoot|LeftFoot|neck|pilot|hands|svetlo) !=hit_(hands|legs) !=hit_arms !="hit_(elektronika|engine|fueltank|glass[1-20]|karoserie|(mala|velka) vrtule|motor|munice|netrup|palivo)" !="hit_(pravy (predni|zadni) tlumic|[lp] svetlo|sklo predni [lp]|svetlo l|wheel_[12]_[1-4]_steering|wheel_[12]_damper)" !=hit_telo !="hit_\?" +5 ^hit_ !=hit_(Pelvis|aimpoint|lelbow|relbow|RightFoot|LeftFoot|neck|pilot|hands|svetlo) !=hit_(hands|legs) !=hit_arms !="hit_(elektronika|engine|fueltank|glass[0-9]+|karoserie|(mala|velka) vrtule|motor|munice|netrup|palivo)" !="hit_(pravy (predni|zadni) tlumic|[lp] svetlo|sklo predni [lp]|svetlo l|wheel_[12]_[1-4]_steering|wheel_[12]_damper)" !=hit_telo !="hit_\?" 1=hit_(Pelvis|aimpoint|lelbow|relbow|RightFoot|LeftFoot|neck|pilot) // Bleeding Limbs (optional) 1=hit_(hands|legs) // Breaking Limbs (optional) 1 USEC_