Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bind MOUSE1 [hitmsg; attack]
- bind MOUSE2 [hitmsg; altaction]
- hitmsg = [
- nadedmg = 0
- if (= (curweapon) 8) [nadedmg = 1] [
- bullets = (magcontent (curweapon))
- bullets_magres = (magreserve (curweapon))
- onrelease [if (= $hits 0) [] [
- if (&& (= $shotsf 0) (= (curweapon) 0)) [shotsf = 1] [
- if (= $bullets_magres (magreserve (curweapon))) [shotsf = (- $bullets (magcontent (curweapon)))] [shotsf = (+ (- $bullets (magcontent (curweapon))) (- $bullets_magres (magreserve (curweapon))))]]
- shotsm = (- $shotsf $hits)
- echo (concatword "1SHOTS: " $shotsf " 3MISSED: " $shotsm " 2HITS: " $hits " 0DAMAGE: " $hitdmg)
- ]]]
- ]
- onHit = [
- hits = 0; hitdmg = 0
- if (= $arg1 (findcn $curname)) [
- hitdmg = (+ $hitdmg $arg3); hits = (+ $hits 1)
- if $nadedmg [echo "GRENADE DAMAGE: " $hitdmg]
- ]]
Add Comment
Please, Sign In to add comment