mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
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.
This commit is contained in:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user