Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.18 KB | None | 0 0
  1. //////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. //  Master Scroll Controller                                                                                //
  3. //////////////////////////////////////////////////////////////////////////////////////////////////////////////
  4.  
  5. msc_multiplier = 8
  6.  
  7. msc_delta = [
  8.     cond $editing [
  9.         if $.followplayer [ follownext $arg1 ] [
  10.             cond [&& $enthavesel [||iskeyheld "1" "2" "3" "4" "5"]] [
  11.                 loop i 5 [ if (iskeyheld (+ $i 1)) [ entattrdelta $i $arg1 ] ]
  12.             ] [iskeyheld "G"] [                                                       // Change grid power
  13.                 gridpower (max 0 (min 12 (+ $arg1 $gridpower) (- $mapscale 1)))
  14.             ] [iskeyheld "R"] [                                                       // Selection rotate / blend brush rotate
  15.                 if $blendpaintmode [ rotateblendbrush $arg1 ] [ editrotate $arg1 ]
  16.             ] [iskeyheld "Q"] [                                                       // Push corner closest to the cursor
  17.                 editfacewsel $arg1 2
  18.             ] [iskeyheld "F"] [                                                       // Push selected face/corners
  19.                 editfacewsel $arg1 0
  20.             ] [iskeyheld "Y"] [                                                       // Change MRU textures
  21.                 edittex $arg1
  22.             ] [iskeyheld "Z"] [                                                       // Change floatspeed
  23.                 floatspeed (clampf (+ $floatspeed (* 50 $arg1)) 50 5000)
  24.             ] [&& $hmapedit [iskeyheld "H"]] [                                        // Change heightmap brush
  25.                 selecthbrush $arg1
  26.             ] $blendpaintmode [                                                       // Change blendmap mode / blend brush
  27.                 if (iskeyheld "B") [
  28.                     arg1 = (+ $blendpaintmode $arg1)
  29.                     cond [< $arg1 1] [ blendpaintmode = 5 ] [> $arg1 5] [ blendpaintmode = 1 ] [ blendpaintmode $arg1 ]
  30.                 ] [ nextblendbrush $arg1 ]
  31.             ] [ editfacewsel $arg1 1 ]
  32.         ]
  33.     ] $mainmenu [
  34.         // NOTHING HERE YET
  35.     ] [isspectator $getclientnum] [
  36.         if $thirdperson [
  37.             loop i 10 [ sleep (* $i 10) [
  38.                 thirdpersondistance (clampf (+f $thirdpersondistance (*f $arg1 0.25)) 10 50)
  39.             ] ]
  40.         ] [ nextfollow $arg1 ]
  41.     ] [ nextweapon $arg1 ]
  42. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement