better AR approximation
and some fixes
This commit is contained in:
@@ -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
|
||||
]
|
||||
|
||||
@@ -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.
@@ -779,7 +779,7 @@ COMMANDF(sound, "i", (int *n)
|
||||
});
|
||||
|
||||
COMMANDF(applymapsoundchanges, "", (){
|
||||
audiomgr.applymapsoundchanges();
|
||||
if(m_coop || !multiplayer("applymapsoundchanges")) audiomgr.applymapsoundchanges();
|
||||
});
|
||||
|
||||
COMMANDF(unmuteallsounds, "", () {
|
||||
|
||||
Reference in New Issue
Block a user