Version 0.995

Watchflags
This commit is contained in:
Christian Franz
2022-03-24 17:42:24 +01:00
parent 95e809b85c
commit 6d1e992037
22 changed files with 474 additions and 73 deletions

View File

@@ -1,5 +1,5 @@
xFlags = {}
xFlags.version = "1.0.0"
xFlags.version = "1.0.1"
xFlags.verbose = false
xFlags.ups = 1 -- overwritten in get config!
xFlags.requiredLibs = {
@@ -11,6 +11,8 @@ xFlags.requiredLibs = {
Version History
1.0.0 - Initial version
1.0.1 - allow flags names for ops as well
modelled on cfxZones.testFlagByMethodForZone()
--]]--
xFlags.xFlagZones = {}
@@ -99,7 +101,6 @@ function xFlags.evaluateFlags(theZone)
-- we must preserve the order of the array
local flagName = theZone.flagNames[i]
currVals[i] = cfxZones.getFlagValue(flagName, theZone)
end
-- now perform comparison flag by flag
@@ -109,6 +110,11 @@ function xFlags.evaluateFlags(theZone)
local firstChar = string.sub(op, 1, 1)
local remainder = string.sub(op, 2)
local rNum = tonumber(remainder)
if not rNum then
-- interpret remainder as flag name
-- so we can say >*killMax
rNum = cfxZones.getFlagValue(remainder, theZone)
end
for i = 1, #theZone.flagNames do
local lastHits = hits