Advertisement
Yarukinasu

listen_for_hit

Mar 27th, 2011
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. listen_for_hit = [
  2.   my_pstat_weap = (pstat_weap (findcn $curname))
  3.   if (checkalias old_pstat_weap) [
  4.     if (! (strcmp $my_pstat_weap $old_pstat_weap)) [
  5.       curweapindex = (+ (* (curweapon) 2) 1)
  6.       if (> (at $my_pstat_weap $curweapindex) (at $old_pstat_weap $curweapindex)) [
  7.         loadcrosshair dot_wide-hit.png // replace this with the "hit" crosshair
  8.         sleep 100 [
  9.           loadcrosshair dot_wide.png // the default crosshair
  10.           loadcrosshair teammate.png teammate
  11.           loadcrosshair red_dot.png scope ] ] ] ]
  12.   old_pstat_weap = $my_pstat_weap
  13.   sleep 0 listen_for_hit ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement