Advertisement
RaZgRiZ

EFP

May 20th, 2012
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.13 KB | None | 0 0
  1. bind Q [
  2.     if (= (getmode) 1) [
  3.         edittoggle
  4.         efp
  5.     ] [prevweap]
  6. ]
  7.  
  8. editbind Q [
  9.     if $_efp_trigger [edittoggle] [domodifier 3]
  10. ]
  11.  
  12. editbind DELETE [
  13.     if $_efp_trigger [delbot] [editdel]
  14. ]
  15.  
  16. _efp_trigger = 0
  17. _efp_cn = ""
  18.  
  19. createine _efp_chs $crosshairsize
  20.  
  21. editbind mouse4 [
  22.     if $_efp_trigger [
  23.         if (> (listlen $_pol) 1) [
  24.             _efp_cn = (mod (+ (indexof $_pol $_efp_cn) 1) (+ (listlen $_pol) 1))
  25.             _efp_cn = (at $_pol $_efp_cn)
  26.         ]
  27.     ] [universaldelta 1]
  28. ]
  29.  
  30. editbind mouse5 [
  31.     if $_efp_trigger [
  32.         if (> (listlen $_pol) 1) [
  33.             _efp_cn = (mod (- (indexof $_pol $_efp_cn) 1) (+ (listlen $_pol) 1))
  34.             _efp_cn = (at $_pol (? (< $_efp_cn 0) (- (listlen $_pol) 1) $_efp_cn))
  35.         ]
  36.     ] [universaldelta -1]
  37. ]
  38.  
  39. efp = [
  40.     _pol = []
  41.     looplist a (listclients) [
  42.         if (! (isspectator $a)) [
  43.             append _pol $a
  44.         ]
  45.     ]
  46.     if (< (indexof $_pol $_efp_cn) 0) [
  47.         _efp_cn = (at $_pol 0)
  48.     ]
  49.     if (&& $editing [= (getmode) 1]) [
  50.         _efp_trigger = 1
  51.         if (> $crosshairsize 0) [
  52.             _efo_chs = $crosshairsize
  53.             crosshairsize 0
  54.         ]
  55.         sleep 1 [
  56.             goto $_efp_cn
  57.             efp
  58.         ]
  59.     ] [
  60.         _efp_trigger = 0
  61.         crosshairsize $_efp_chs
  62.     ]
  63. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement