Welcome to PlagueFest.com! Log in or Sign up to interact with the Plague Fest community.
  1. Welcome Guest! to interact with the community and gain access to all the site's features.

My Scripts (some usefull)

Discussion in Tutorials started by Moltard, Mar 31, 2013

  1. Mar 30, 2013
    Posts
    I share you, scripts, I made recently:
    - Crosshair color script
    - Auto-Pistol
    - Autobunny
    - Script for the map Paranoid
    - Script On/Off

    Crosshair Script

    Code:
    // ================ Crosshair color switch ================
    //
    // Script to switch between 20 colors of crosshair
    // Press f1 to change the color of crosshair
    // The color is write in the Console, when it change
    // You can replace f1 by the key you want
    alias "colorcrosshair" "colorcrosshair_0"
    alias "colorcrosshair_0" "alias colorcrosshair colorcrosshair_1; cl_crosshaircolor 0; echo **CROSSHAIR IS GREEN**"
    alias "colorcrosshair_1" "alias colorcrosshair colorcrosshair_2; cl_crosshaircolor 1; echo **CROSSHAIR IS RED**"
    alias "colorcrosshair_2" "alias colorcrosshair colorcrosshair_3; cl_crosshaircolor 2; echo **CROSSHAIR IS BLUE**"
    alias "colorcrosshair_3" "alias colorcrosshair colorcrosshair_4; cl_crosshaircolor 3; echo **CROSSHAIR IS YELLOW**"
    alias "colorcrosshair_4" "alias colorcrosshair colorcrosshair_5; cl_crosshaircolor 4; echo **CROSSHAIR IS TURQUOISE**"
    alias "colorcrosshair_5" "alias colorcrosshair colorcrosshair_6; cl_crosshaircolor 5; cl_crosshaircolor_r 0; cl_crosshaircolor_g 0; cl_crosshaircolor_b 0; echo **CROSSHAIR IS BLACK**"
    alias "colorcrosshair_6" "alias colorcrosshair colorcrosshair_7; cl_crosshaircolor 5; cl_crosshaircolor_r 84; cl_crosshaircolor_g 84; cl_crosshaircolor_b 84; echo **CROSSHAIR IS GREY**"
    alias "colorcrosshair_7" "alias colorcrosshair colorcrosshair_8; cl_crosshaircolor 5; cl_crosshaircolor_r 168; cl_crosshaircolor_g 168; cl_crosshaircolor_b 168; echo **CROSSHAIR IS LIGHTGREY**"
    alias "colorcrosshair_8" "alias colorcrosshair colorcrosshair_9; cl_crosshaircolor 5; cl_crosshaircolor_r 255; cl_crosshaircolor_g 255; cl_crosshaircolor_b 255; echo **CROSSHAIR IS WHITE**"
    alias "colorcrosshair_9" "alias colorcrosshair colorcrosshair_10; cl_crosshaircolor 5; cl_crosshaircolor_r 138; cl_crosshaircolor_g 43; cl_crosshaircolor_b 226; echo **CROSSHAIR IS BLUEPURPLE**"
    alias "colorcrosshair_10" "alias colorcrosshair colorcrosshair_11; cl_crosshaircolor 5; cl_crosshaircolor_r 72; cl_crosshaircolor_g 61; cl_crosshaircolor_b 139; echo **CROSSHAIR IS DARKBLUE**"
    alias "colorcrosshair_11" "alias colorcrosshair colorcrosshair_12; cl_crosshaircolor 5; cl_crosshaircolor_r 0; cl_crosshaircolor_g 78; cl_crosshaircolor_b 138; echo **CROSSHAIR IS SKYBLUE**"
    alias "colorcrosshair_12" "alias colorcrosshair colorcrosshair_13; cl_crosshaircolor 5; cl_crosshaircolor_r 139; cl_crosshaircolor_g 69; cl_crosshaircolor_b 19;  echo **CROSSHAIR IS BROWN**"
    alias "colorcrosshair_13" "alias colorcrosshair colorcrosshair_14; cl_crosshaircolor 5; cl_crosshaircolor_r 255; cl_crosshaircolor_g 165; cl_crosshaircolor_b 0; echo **CROSSHAIR IS ORANGE**"
    alias "colorcrosshair_14" "alias colorcrosshair colorcrosshair_15; cl_crosshaircolor 5; cl_crosshaircolor_r 255; cl_crosshaircolor_g 105; cl_crosshaircolor_b 185; echo **CROSSHAIR IS HOTPINK**"
    alias "colorcrosshair_15" "alias colorcrosshair colorcrosshair_16; cl_crosshaircolor 5; cl_crosshaircolor_r 191; cl_crosshaircolor_g 62; cl_crosshaircolor_b 25; echo **CROSSHAIR IS PURPLE**"
    alias "colorcrosshair_16" "alias colorcrosshair colorcrosshair_17; cl_crosshaircolor 5; cl_crosshaircolor_r 255; cl_crosshaircolor_g 215; cl_crosshaircolor_b 0; echo **CROSSHAIR IS GOLD**"
    alias "colorcrosshair_17" "alias colorcrosshair colorcrosshair_18; cl_crosshaircolor 5; cl_crosshaircolor_r 255; cl_crosshaircolor_g 0; cl_crosshaircolor_b 255; echo **CROSSHAIR IS MAGENTA**"
    alias "colorcrosshair_18" "alias colorcrosshair colorcrosshair_19; cl_crosshaircolor 5; cl_crosshaircolor_r 255; cl_crosshaircolor_g 192; cl_crosshaircolor_b 203; echo **CROSSHAIR IS PINK**"
    alias "colorcrosshair_19" "alias colorcrosshair colorcrosshair_0; cl_crosshaircolor 5; cl_crosshaircolor_r 0; cl_crosshaircolor_g 100; cl_crosshaircolor_b 0; echo **CROSSHAIR IS DARKGREEN**"
    bind "f1" "colorcrosshair"
    Place this script in your autoexec.cfg

    Script for Paranoid

    - The first for those who play with W; S; A; D
    - The second for those who play with arrows

    Code:
    // ================ Paranoid Script ================
    //
    // Script for the command "inverse control"
    // Press f2 when the command "inverse control" of the map Paranoid (Rezurrection or Ultimate) is enabled.
    // This script will inverse all your control, so when the command of the map is enable, you can go forward normally.
    // When the command is stopped, press f2 again, you will re-take your key of the beggining.
    alias "parabind" "parabind_on"
    alias "parabind_on" "alias parabind parabind_off; bind s +forward; bind w +back; bind a +moveright; bind d +moveleft; echo **SV_AIRACCELERATE BINDS ENABLED**"
    alias "parabind_off" "alias parabind parabind_on; bind w +forward; bind s +back; bind a +moveleft; bind d +moveright; echo **SV_AIRACCELERATE BINDS DISABLED**"
    bind f2 "parabind"
    Code:
    // ================ Paranoid Script ================
    //
    // Script for the command "inverse control"
    // Press f2 when the command "inverse control" of the map Paranoid (Rezurrection or Ultimate) is enabled.
    // This script will inverse all your control, so when the command of the map is enable, you can go forward normally.
    // When the command is stopped, press f2 again, you will re-take your key of the beggining.
    alias "parabind" "parabind_on"
    alias "parabind_on" "alias parabind parabind_off; bind downarrow +forward; bind uparrow +back; bind leftarrow +moveright; bind rightarrow +moveleft; echo **SV_AIRACCELERATE BINDS ENABLED**"
    alias "parabind_off" "alias parabind parabind_on; bind uparrow +forward; bind downarrow +back; bind leftarrow +moveleft; bind rightarrow +moveright; echo **SV_AIRACCELERATE BINDS DISABLED**"
    bind f2 "parabind"
    Autopistol Script

    Code:
    // ================ Autopistol Script ================
    //
    // A Script auto-pistol that work with digital keypad.
    // Press "0" (kp_ins), to activate the script, then press and hold the attack key (mouse1), to shoot automatically.
    // Press "." (kp_del) to disable the script.
    alias "+elite" "elite_on; shoot"
    alias "-elite" "elite_off; -attack"
    alias "shoot_command" "+attack; wait; wait; wait; -attack; wait; wait; shoot"
    alias "elite_on" "alias shoot shoot_command"
    alias "elite_off" "alias shoot"
    bind kp_ins "bind mouse1 +elite; message1"
    bind kp_del "-elite; bind mouse1 +attack; message2"
     
    alias "message1" "echo Autopistol Enabled. Press "." (kp_del) to Disable it."
    alias "message2" "echo Autopistol Disabled. Press "0" (kp_ins) to re-Enable the script."
    // Be warn, this script can crash your game.
    Autobunny Script

    Code:
    // ================ Autobunny Script ================
    //
    // A Script auto-bunny that work with digital keypad.
    // Press "1" to activate the script, then hold the Space Bar to jump automatically.
    // Press "2" to disable the script.
    alias "+bhop" "bhop_on; jump"
    alias "-bhop" "bhop_off; -jump"
    alias "bhop_command" "+jump; wait; wait; -jump; wait; wait; jump"
    alias "bhop_on" "alias jump bhop_command"
    alias "bhop_off" "alias jump"
    bind kp_end "bind space +bhop; bhopmessage1"
    bind kp_downarrow "-bhop; bind space +jump; bhopmessage2"
     
    alias "bhopmessage1" "echo AutoBunny Enabled. Press "2" (numérique keypad) to Disable it."
    alias "bhopmessage2" "echo AutoBunny Disabled. Press "1" (numérique keypad) to re-Enable the script."
    // Be warn, this script can crash your game
    // You can replace "1" and "2" (kp_end & kp_downarrow) by keys you want.



    Scripts On/Off

    Code:
    // Alias to speak in the mic without holding a key
    alias "micro" "micro_on"
    alias "micro_on" "alias micro micro_off; +voicerecord; echo **MICRO ENABLED**"
    alias "micro_off" "alias micro micro_on; -voicerecord; echo **MICRO DISABLED**"
    Code:
    // Alias to hide and display the tchat
    alias "tchat" "tchat_on"
    alias "tchat_on" "alias tchat tchat_off; hud_saytext_time 12; echo **TCHAT ON**"
    alias "tchat_off" "alias tchat tchat_on; hud_saytext_time 0; echo **TCHAT OFF**"
    Code:
    // Alias to hide and display the crosshair
    alias "viseur" "viseur_on"
    alias "viseur_on" "alias viseur viseur_off; crosshair 1; echo **CROSSHAIR ON**"
    alias "viseur_off" "alias viseur viseur_on; crosshair 0; echo **CROSSHAIR OFF**"
    Code:
    // Alias to hide and display the Hud
    alias "hud" "hud_on"
    alias "hud_on" "alias hud hud_off; cl_drawhud 1; echo **HUD ON**"
    alias "hud_off" "alias hud hud_on; cl_drawhud 0; echo **HUD OFF**"
    Code:
    // Alias to hide and display FPS, pings, etc..
    alias "fps" "fps_on"
    alias "fps_on" "alias fps fps_off; net_graph 1; echo **NET_GRAPH ON**"
    alias "fps_off" "alias fps fps_on; net_graph 0; echo **NET_GRAPH OFF**"
    Code:
    // Alias to hide and display the radar.
    alias "radar" "radar_on"
    alias "radar_on" "alias radar radar_off; drawradar; echo **RADAR ON**"
    alias "radar_off" "alias radar radar_on; hideradar; echo **RADAR OFF**"
    Code:
    // Alias to activate and desactivate voices
    alias "voice" "voice_on"
    alias "voice_on" "alias voice voice_off; voice_enable 1; echo **VOICES ACTIVATED**"
    alias "voice_off" "alias voice voice_on; voice_enable 0; echo **VOICES DESACTIVATED**"
    Code:
    // Alias to show and hide death
    alias "dead" "dead_on"
    alias "dead_on" "alias dead dead_off; hud_deathnotice_time 1; echo **DISPLAY OF DEATH ON**"
    alias "dead_off" "alias dead dead_on; hud_deathnotice_time 0; echo **DISPLAY OF DEATH OFF**"
    Code:
    // Alias to hide and display names
    alias "name" "name_on"
    alias "name_on" "alias name name_off; hud_showtargetid 1; echo **DISPLAY OF NAMES ON**"
    alias "name_off" "alias name name_on; hud_showtargetid 0; echo **DISPLAY OF NAMES OFF**"
    For all these script On/Off, you can bind the first word (ex: bind f10 "voice").
    Or type the word in the console when you want.


    That's all for the moment :smile:
    Dont hesitate to share your scripts, if you made them.
    • Like Like x 1
      Moltard, Mar 31, 2013 Last edited by Moltard, Apr 21, 2013
    • May 14, 2011
      Posts
      I heard they disabled/took away the "wait" command and that's why bhop scripts didn't work. :shock:
    • Mar 30, 2013
      Posts
      Yes, if the command: sv_allowwaitcommand is set to 0, the script bunny and the script autopistol don't work (and in this case can crash your game).
      But in LAN, both work. I dont know server with the command set to 1 or maybe some russian server :wink:
    • May 17, 2011
      Posts
      bhop scripting is gay
      autopistol scripting is gay
      hyperscrolling is gay

      fuck you i'm mad

      voteban
      • Agree Agree x 3
      • May 14, 2011
        Posts
        Whats wrong with hyperscroll? It doesn't help with bhop.
      • Mar 30, 2013
        Posts

        Skins by Kirby



        Skins by Leo



        Skins by Panf3



        Skins by Hhp227



        Skins by Other People

        Moltard, Apr 21, 2013 Last edited by Moltard, Dec 29, 2013
      • Sep 6, 2010
        Posts
        Well, as far as I know you can get banned on pF servers for using bhop script so I would just delete it off your post. Thanks for the info though.
      • Mar 30, 2013
        Posts
        Ok, i strike it but not delete to show that its not allowed.
        and you say "you can get banned on pF servers for using bhop script", not only bhop script, also bhop :wink:
        • Agree Agree x 1
        • Jul 14, 2010
          Posts
          His script won't work because it uses wait and the servers are set to disallow the wait command so not really a big deal.
        • Mar 30, 2013
          Posts
          Yes and its the same for the Autopistol Script. There is not a lot of server with wait command allowed :frown:
        • May 17, 2011
          Posts

          It did before pF set a minimum fps and everybody fps capped.

          voteban Moltard

          :grin: