Hi guys,
I am making a kingdom inspired mod for l4d2, (not a single asset being used from kingdom bytheway) all costum and L4D2 only.
And i have a problem with the "math_counter"!
I use the math_counter as the main goldbag / coins counter.
So if you chop down a tree the math_counter gets= add 1
And if you spend a single coin the math_counter gets = substract 1
commands
Ive set in the math_counter = initial value 1 , minimum legal 1, maximum legal 0 (no clamping).
outputs math_counter = on hit max = spend coins // on hit min = cant spend coins.
problem is = even if you chop down 11 trees wich gives + 11 in math_counter, once you spend a single coin, the output go's straith to = cant spend coins.... even tho i should be able to spend another 10 coins..... somehow it gos straith to hit min output.
very anoying, ive already tried different values (min, max,initial) but the porblem persists....
anyknow know how to fix this, or a good work around or a nice vscript to use for good counting and output??? (i cant script myself)
thnx
here is a video to get a better idea =
https://www.youtube.com/watch?v=JzsaRU9c20o
but in that video the coins is unlimited (just for showing off)