better AR approximation

and some fixes
This commit is contained in:
ac-stef
2016-12-03 14:54:18 +01:00
parent ee7f75cc10
commit 206cbdcbd1
4 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -362,7 +362,7 @@ push __getar [
if (>= $n 0) [
n = (at [5:4 4:3 16:9 16:10] $n)
][
n = (at ["" ~5:4 ~4:3 ~16:9 ~16:10] (+ (findlist [125 133 177 160] (div (* 100 $arg1) $arg2)) 1))
n = (at (concat (concatword "~16:" (div (+ (div (* 160 $arg2) $arg1) 5) 10))) ~5:4 ~4:3) (+ (findlist [125 133] (div (* 100 $arg1) $arg2)) 1))
]
pop n
]
+1 -1
View File
@@ -48,7 +48,7 @@ tempalias doublemodels [
push iee (editentity $ii)
if (&& (= (at $iee 2) (at $oee 2)) (&& (strcmp (mapmodelslotname (at $iee 5)) (mapmodelslotname (at $oee 5))) (= (at $iee 6) (at $oee 6)))) [
echo $ii : $iee --- $oi : $oee
addtodoentity $oi (concat double model $ii : $iee --- $oi : $oee) ]
addtodoentity $oi (concat double model $ii : $iee --- $oi : $oee)
+= res 1
]
pop iee
Binary file not shown.
+1 -1
View File
@@ -779,7 +779,7 @@ COMMANDF(sound, "i", (int *n)
});
COMMANDF(applymapsoundchanges, "", (){
audiomgr.applymapsoundchanges();
if(m_coop || !multiplayer("applymapsoundchanges")) audiomgr.applymapsoundchanges();
});
COMMANDF(unmuteallsounds, "", () {