SHOW:
|
|
- or go back to the newest paste.
| 1 | - | bind p [showgui pstats; onrelease cleargui] |
| 1 | + | bind p [showgui stats; onrelease cleargui] |
| 2 | ||
| 3 | - | newgui pstats [ |
| 3 | + | newgui stats [ |
| 4 | - | pst = [result (concat (getfrags) (getdeaths) (getaccuracy) (getflags) (substr (min 999999 (gettotaldamage)) 0 6) (substr (min 999999 (- (gettotalshots) (gettotaldamage))) 0 6) (substr (divf (maxf 0.0 (getfrags)) (max 1 (getdeaths))) 0 4) (substr (minf 999999 (divf (gettotaldamage) (max 1 (getdeaths)))) 0 6))] |
| 4 | + | local tmp |
| 5 | tmp = (concat (getfrags) (getdeaths) (getaccuracy) (getflags) ( | |
| 6 | substr (min 999999 (gettotaldamage)) 0 6 | |
| 7 | ) ( | |
| 8 | substr (min 999999 (- (gettotalshots) (gettotaldamage))) 0 6 | |
| 9 | ) ( | |
| 10 | - | if (m_ctf (getmode)) [guitext "^f7Flags Scored" 0] |
| 10 | + | substr (divf (max 0 (getfrags)) (max 1 (getdeaths))) 0 4 |
| 11 | ) ( | |
| 12 | substr (minf 999999 (divf (gettotaldamage) (max 1 (getdeaths)))) 0 6 | |
| 13 | )) | |
| 14 | guilist [ | |
| 15 | guilist [ | |
| 16 | guitext "^f7Kills" 0 | |
| 17 | guitext "^f7Deaths" 0 | |
| 18 | guitext "^f7Accuracy" 0 | |
| 19 | - | guitext (concat "^f7 :^f2" (at (pst) 0)) 0 |
| 19 | + | cond (m_ctf (getmode)) [ |
| 20 | - | guitext (concat "^f7 :^f2" (at (pst) 1)) 0 |
| 20 | + | guitext "^f7Flags Scored" 0 |
| 21 | - | guitext (concatword "^f7 :^f2 " (at (pst) 2) "^%") 0 |
| 21 | + | ] (m_collect (getmode)) [ |
| 22 | - | if (m_ctf (getmode)) [guitext (concat "^f7 :^f2" (at (pst) 3)) 0] |
| 22 | + | guitext "^f7Skulls Collected" 0 |
| 23 | ] | |
| 24 | - | guitext (concat "^f7 :^f2" (at (pst) 4)) 0 |
| 24 | + | |
| 25 | - | guitext (concat "^f7 :^f2" (at (pst) 5)) 0 |
| 25 | + | |
| 26 | guitext "^f7Damage Wasted" 0 | |
| 27 | - | guitext (concat "^f7 :^f2" (at (pst) 6)) 0 |
| 27 | + | |
| 28 | - | guitext (concat "^f7 :^f2" (at (pst) 7)) 0 |
| 28 | + | |
| 29 | guitext "^f7DDpD" 0 | |
| 30 | ] | |
| 31 | guilist [ | |
| 32 | guitext (concat "^f7 :^f2" (at $tmp 0)) 0 | |
| 33 | guitext (concat "^f7 :^f2" (at $tmp 1)) 0 | |
| 34 | guitext (concatword "^f7 :^f2 " (at $tmp 2) "^%") 0 | |
| 35 | if (|| (m_collect (getmode)) (m_ctf (getmode))) [ | |
| 36 | guitext (concat "^f7 :^f2" (at $tmp 3)) 0 | |
| 37 | ] | |
| 38 | guibar | |
| 39 | guitext (concat "^f7 :^f2" (at $tmp 4)) 0 | |
| 40 | guitext (concat "^f7 :^f2" (at $tmp 5)) 0 | |
| 41 | guibar | |
| 42 | guitext (concat "^f7 :^f2" (at $tmp 6)) 0 | |
| 43 | guitext (concat "^f7 :^f2" (at $tmp 7)) 0 | |
| 44 | ] | |
| 45 | ] | |
| 46 | ] "Personal Stats" |