Useful scripts

Forum for Skins, Maps, Configs etc.

Moderators: Moderators, Mappers

Post Reply
Caracol
was picked off
Posts: 1152
Joined: Wed Sep 01, 2004 8:11 am
Location: cl
Contact:

Useful scripts

Post by Caracol »

Would be nice to gather some useful and practical scripts. I will start with one I already pasted in #aq2world.

Code: Select all

bind 7 "sky1"
alias sky1 "sky storm ; bind 7 sky2"
alias sky2 "sky koldmars_ ;bind 7 sky3"
alias sky3 "sky drksky ; bind 7 sky4"
alias sky4 "sky bluesky ; bind 7 sky1"
Also some simple but, who knows, maybe can give them good use.

Code: Select all

alias fpshigh "set cl_maxfps 120;set cl_maxpackets 40;echo FPS [120];bind l fpslow"
alias fpslow "set cl_maxfps 60;set cl_maxpackets 20;echo FPS [60];bind l fpshigh"
bind l "fpslow"

alias vsyon "set gl_swapinterval 1;echo VSYNC [ON];bind k vsyoff"
alias vsyoff "set gl_swapinterval 0;echo VSYNC [OFF];bind k vsyon"
bind k "vsyoff"
And for the graph.

Code: Select all

alias graph_on "set netgraph 1;echo Graph ON...;wait;bind F2 graph_off"
alias graph_off "set netgraph 0;echo Graph OFF...;wait;bind F2 graph_on"
bind F2 graph_on

alias lagom_on "set scr_drawlagometer 2;wait;bind F5 lagom_off"
alias lagom_off "set scr_drawlagometer 0;wait;bind F5 lagom_on"
bind F5 lagom_on
And the rainbow creator.

Code: Select all

alias ctfr "teamskin male/ctf_r;bind KP_DOWNARROW ctfb"
alias ctfb "teamskin male/ctf_b;bind KP_DOWNARROW ctfy"
alias ctfy "teamskin male/ctf_y;bind KP_DOWNARROW ctfg"
alias ctfg "teamskin male/ctf_g;bind KP_DOWNARROW ctfr"
bind KP_DOWNARROW "ctfr"
NOTE: Sniper scripts have already a thread. Check here.

C.
Ne quid nimis.
Clown
unpossible??!?!!
Posts: 1750
Joined: Sun Jul 27, 2003 7:38 am
Location: en

Post by Clown »

Your first stickied thread. Congratulations.
I don't give a shit.
Beavisss
loses a vital chest organ
Posts: 531
Joined: Sun Jan 04, 2004 5:27 pm
Location: ru
Contact:

Post by Beavisss »

I believe aliases are easier to use for skins. I have ctfb,r,y,g for skins. And its faster :) But good thread. Really would like to see some scripts..

Here is mine usefull script. Ignore script. It has "side effects" but you'll be able to ignore all players at your server with 1 alias.

Code: Select all

alias w2 "wait;wait;wait;wait;wait;wait;wait;wait"
alias ignoreall "ignorenum 0;ignorenum 1;ignorenum 2;ignorenum 3;ignorenum 4;ignorenum 5;echo [ Ignore 1-5 ]" 
alias ignoreall1 "ignorenum 6;ignorenum 7;ignorenum 8;ignorenum 9;ignorenum 10;ignorenum 11;echo [ Ignore 6-11 ]" 
alias ignoreall2 "ignorenum 12;ignorenum 13;ignorenum 14;ignorenum 15;ignorenum 16;echo [ Ignore 12-16 ]" 
alias "ignall"   "say [ Ignore ALL ];ignoreall;w2;ignoreall1;w2;ignoreall2"
As you can see, you just need to write ignall in ur console and push enter :)

If you need to bind it, just add

Code: Select all

bind space ignall
and you will be happy.
L0ki
didn't throw its grenade far enough
Posts: 323
Joined: Sat Aug 16, 2003 8:43 am
Location: de

Post by L0ki »

Code: Select all

alias reset "lens 1; m_pitch 0.07; m_yaw 0.09; bind mwheelup snipe2a;"
alias snipe2a "lens 2; m_pitch 0.06; m_yaw 0.07; bind mwheelup snipe2b; bind mwheeldown reset;"
alias snipe2b "lens 2; m_pitch 0.04; m_yaw 0.05; bind mwheelup snipe4; bind mwheeldown reset;"
alias snipe4 "lens 4; m_pitch 0.025; m_yaw 0.025; bind mwheeldown reset;"     

sensitivity 1

bind mwheelup "snipe2a"
bind x "bandage; reset"
bind y "use throwing combat knife; reset"
Description
Quad|Haui gave me the basic idea with sensitivity 1 and usage of m_pitch and m_yaw a few years ago. Based on that I made this this sniper script. What it does:

Sniper sensitivity (=mouse movement) is no longer set by changing the sensitivity but m_pitch and m_yaw while sensitivity is fixed "1".

Advantages:
+ (At least in my case) sniper sensitivity seems to be more "stable"
+ You can set horizontal and vertical movement of the mouse differentiated; use m_yaw for horizontal axis and m_pitch for vertical; as you can see in the example script I prefer less vertical mousemovement; try to find your own setup

Disadvantages:
- You have to get used to the new mouse feeling

Furthermore...
I made the script that way that I have 3 different scope settings:
mousewheelup once: 2x scope, higher sensitivity values (close combat sniping)
mousewheelup a second time: 2x scope, lower sensitivity values (mid-range sniping, more stable)
mousewheelup a third time: 4x scope, lowest sensitivity values (long-distance sniping)

Mousewheeldown for instant sniping- and sensitivityvalue-reset. Add alias "reset" to any binds that break out of scope view (like bandage, weapon switch, etc.).

Have fun testing it,

-L0ki
sanity
was in the wrong place
Posts: 267
Joined: Sun Aug 29, 2004 1:15 pm
Location: se
Contact:

Post by sanity »

Code: Select all

set num "0" // begins with setting the variable to 0
alias enemyd "enemyd$num " // executes the current enemy down alias (e.g enemyd3)
alias enemyd1.000000 "radioteam enemyd;say_team Pain... [%K]" // enemyd1
alias enemyd2.000000 "radioteam enemyd;say_team Suffering... [%K]" // enemyd2
alias enemyd3.000000 "radioteam enemyd;say_team Misery... [%K];set num 0" // enemyd3 also the LAST enemydown will reset the variable to 0 again so it will loop
trigger "inc num 1;enemyd" "*head from $name$*" // trigger will increase the variable (3 to 4) and execute the enemyd alias
trigger "inc num 1;enemyd" "*organ thanks to $name$*" // same
trigger "inc num 1;enemyd" "*lunch to $name$*" // same
trigger "inc num 1;enemyd" "*legless because of $name$*" // same
so when you kill someone it'll execute alias enemyd1
next person you kill, executes enemyd2
and third, executes enemyd3
fourth: executes enemyd1 again :)


now why the aliases are called: enemyd1.000000 and enemyd2.000000 is because for some reason "inc var 1" will increase 0 to 1.000000 and 2 to 2.000000, probably this can be fixed, but who cares, it works

apr v1.18 needed
Image
Image
maGro
blew itself up
Posts: 365
Joined: Mon Jul 28, 2003 9:34 am
Location: de
Contact:

Post by maGro »

Code: Select all

bind m initiate

alias initiate "echo dancing the yattamagro;centerview;cl_yawspeed 900;dance"

alias dance "sidestepdance;rightjump;right360;jumpdrop;straightstepdance;tornado"

alias text1 "I feel good!"
alias text2 "I knew that I would, now!"
alias text3 "So good..."
alias text4 "So good!"
alias text5 "I got you..."
alias text6 "Whoa!"

alias sidestepdance "text1;rightstepdance;leftstepdance;rightstepdance;leftstepdance"
alias rightstepdance "+moveright;midwaiting;+movedown;midwaiting;shot;-movedown;midwaiting;-moveright"
alias leftstepdance "+moveleft;midwaiting;+movedown;midwaiting;shot;-movedown;midwaiting;-moveleft"

alias straightstepdance "frontstepdance;frontstepdance;backjump"
alias frontstepdance "+forward;midwaiting;+movedown;midwaiting;-movedown;midwaiting;-forward"
alias backstepdance "+back;midwaiting;+movedown;midwaiting;-movedown;midwaiting;-back"

alias rightjump "text2;+moveright;midwaiting;+moveup;midwaiting;+left;longwaiting;longwaiting;-left;-moveup;-moveright;longwaiting"
alias backjump "+back;midwaiting;+moveup;text5;midwaiting;drop weapon;longwaiting;longwaiting;-moveup;-back;longwaiting"
alias jumpdrop "+moveup;longwaiting;drop item;text4;longwaiting;-moveup;longwaiting"

alias shot "+attack;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;-attack"

alias right360 "+movedown;longwaiting;+attack;+right;longwaiting;text3;longwaiting;-right;-attack;-movedown"

alias tornado "+right;drop weapon; use throwing combat knife;tornado1;tornado2;shot;tornado3;-right;text6"
alias tornado1 "cl_yawspeed 100;longwaiting;cl_yawspeed 200;longwaiting;cl_yawspeed 300;longwaiting;cl_yawspeed 400;longwaiting"
alias tornado2 "cl_yawspeed 500;longwaiting;cl_yawspeed 600;longwaiting;cl_yawspeed 700;longwaiting;cl_yawspeed 800;longwaiting"
alias tornado3 "cl_yawspeed 900;longwaiting;cl_yawspeed 1000;midwaiting"

alias waiting "wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait"
alias longwaiting "waiting;waiting;waiting;waiting;waiting;waiting;waiting"
alias midwaiting "waiting;waiting;waiting;waiting;waiting;waiting"
Here you go.. dance the night away! (actually i think the waits depend on the systemperformance, so it might be messed up if you pc is slower/fast than mine :))
Director of #E-Reality :: Sprayer of #koksnutten
stan0x
killed itself
Posts: 407
Joined: Sun Aug 29, 2004 4:17 pm
In-game Name: stan0x
Location: Netherlands
Operating System: Windows 7, linux
Processor model/speed: i7 2600K
Memory: 16GB DRR3
Hard drive: 1 x 240GB SSD 5 x 2 TB
Graphics card: GTX470
Monitor: LG
Mouse: MX
Keyboard: Steelseries G7
Location: nl

Post by stan0x »

Code: Select all

// -[ volume]----------------------------------------------------------------


bind = 						"vup"
bind - 						"vdn"

alias vup "volume_1" 
alias vdn "volume_0" 


alias volume_0 "play parasite/paratck4;set s_volume 0 ;set vu 1 ;set vd w ; alias vup volume_1; alias vdn volume_0;echo VOL |---------- 0" 
alias volume_1 "play parasite/paratck4;set s_volume 0.1 ;set vu 2 ;set vd 0 ; alias vup volume_2; alias vdn volume_0;echo VOL -|--------- 1" 
alias volume_2 "play parasite/paratck4;set s_volume 0.2 ;set vu 3 ;set vd 1 ; alias vup volume_3; alias vdn volume_1;echo VOL --|-------- 2" 
alias volume_3 "play parasite/paratck4;set s_volume 0.3 ;set vu 4 ;set vd 2 ; alias vup volume_4; alias vdn volume_2;echo VOL ---|------- 3" 
alias volume_4 "play parasite/paratck4;set s_volume 0.4 ;set vu 5 ;set vd 3 ; alias vup volume_5; alias vdn volume_3;echo VOL ----|------ 4" 
alias volume_5 "play parasite/paratck4;set s_volume 0.5 ;set vu 6 ;set vd 4 ; alias vup volume_6; alias vdn volume_4;echo VOL -----|----- 5" 
alias volume_6 "play parasite/paratck4;set s_volume 0.6 ;set vu 7 ;set vd 5 ; alias vup volume_7; alias vdn volume_5;echo VOL ------|---- 6" 
alias volume_7 "play parasite/paratck4;set s_volume 0.7 ;set vu 8 ;set vd 6 ; alias vup volume_8; alias vdn volume_6;echo VOL -------|--- 7" 
alias volume_8 "play parasite/paratck4;set s_volume 0.8 ;set vu 9 ;set vd 7 ; alias vup volume_9; alias vdn volume_7;echo VOL --------|-- 8" 
alias volume_9 "play parasite/paratck4;set s_volume 0.9 ;set vu 10 ;set vd 8 ; alias vup volume_10;alias vdn volume_8;echo VOL ---------|- 9" 
alias volume_10 "play parasite/paratck4;set s_volume 1 ;set vu w ;set vd 9 ; alias vup volume_10;alias vdn volume_9;echo VOL ----------| 10" 

:bday: control your sound's
#clan.fubar #narf #heks #aq2world
cloN
joined the game
Posts: 47
Joined: Mon Nov 07, 2005 10:41 am
Location: kr

Post by cloN »

Code: Select all

// ---- Smiley


alias smile6                 "say ^_^;bind z smile6"
alias smile                  "say :);bind z smile1"
alias smile1                 "say :);bind z smile2"
alias smile2                 "say B>;bind z smile3"
alias smile3                 "say B);bind z smile4"
alias smile4                 "say :D;bind z smile5"
alias smile5                 "say B>;bind z smile"
bind z smile
Smiley script..
Proto
saw the light
Posts: 243
Joined: Sat Dec 25, 2004 5:15 pm
Location: no
Contact:

Post by Proto »

As the name indicates, to avoid bandage-spam.

Code: Select all

//Bandage flood protect script
//============================
alias bandage1 "bandage;sensitivity $normal;bind r sniper;bind q bandage2"
alias bandage2 "bandage;sensitivity $normal;bind r sniper;say_team [BANDAGING] %H%;radioteam im_hit;bind q bandage1"
bind q "bandage1"
Yet again, the name says it all.. (stuck in a door? hold 'n' a few secounds)

Code: Select all

//GET FREE FROM DOORS AND OTHER STICKY PLACES
//===========================================
alias +nofps "set cl_maxfps 0"
alias -nofps "set cl_maxfps 66"
bind n +nofps
you also have the good ol'

Code: Select all

bind m timerefresh
if you want to keep spinning for hours..

And as the grand finalé, the walking-script..

Code: Select all

//MAKE LESS NOISE
=============`

alias run "set cl_run 1;echo Run Bitch! RUUUUN!!;bind mouse3 walk"
alias walk "set cl_run 0;echo Stealthmode activated;bind mouse3 run"
bind mouse3 "walk"
Notice the descrete echos..
Plummet is my middle name..
pauhi
melted
Posts: 152
Joined: Wed Aug 27, 2003 4:38 pm
Location: fi
Contact:

Post by pauhi »

It's not really useful but I use it :p If you want to change crosshair easily while playing.

Code: Select all

	alias ch ch1

	alias ch1 "alias ch ch2;crosshair 1;echo crosshair 1"

	alias ch2 "alias ch ch3;crosshair 2;echo crosshair 2"

	alias ch3 "alias ch ch4;crosshair 3;echo crosshair 3"

	alias ch4 "alias ch ch5;crosshair 4;echo crosshair 4"

	alias ch5 "alias ch ch6;crosshair 5;echo crosshair 5"

	alias ch6 "alias ch ch7;crosshair 6;echo crosshair 6"

	alias ch7 "alias ch ch8;crosshair 7;echo crosshair 7"

	alias ch8 "alias ch ch1;crosshair 8;echo crosshair 8"

	bind k "ch"
Also I like to use aliases while connecting to different (public, and why not cw.. my list is just a bit out of date, too lazy to update it) servers.


Like this:

Code: Select all

	alias ateam1 "connect ateam.q2.peliportti.net:27910"

	alias ateam2 "connect ateam2.q2.peliportti.net:27910"

	alias ateam3 "connect ateam3.q2.peliportti.net:27920"

	alias ateam4 "connect ateam4.q2.peliportti.net:27920"

	alias ateam5 "connect ateam5.q2.peliportti.net:27910"

	alias edomea "connect aqteam.q2.edome.net:27910"

	alias edomeb "connect aqteam.q2.edome.net:27920"

	alias 3team "connect threeteam.q2.peliportti.net;27910"

	alias clan1 "connect clan.q2.peliportti.net:27910"

	alias clan2 "connect clan2.q2.peliportti.net:27910"

	alias clan3 "connect clan3.q2.peliportti.net:27910"

	alias clan4 "connect clan4.q2.peliportti.net:27910"

	alias eclan1 "connect clan.q2.edome.net:27910"

	alias eclan2 "connect clan.q2.edome.net:27920"

	alias eclan3 "connect clan.q2.edome.net:27930"

	alias eclan4 "connect clan.q2.edome.net:27940"

	alias tutka "connect q2clan.pelitutka.net:27910"

	alias tutka1 "connect aq2.pelitutka.net:27910"

	alias tutka2 "connect aq2.pelitutka.net:27920"

	alias tnx "connect 193.213.112.73:34001"

	alias tnx2 "connect 193.213.112.73:34000"

	alias silmu "connect silmu.intef.net"
›› pauhi ››
Spill the blood of the fucking lamb
skmz
didn't throw its grenade far enough
Posts: 324
Joined: Thu Mar 03, 2005 4:59 pm
Location: se

Post by skmz »

This first script is very useful, while you have more servers than your menu-serverlist is allowed to have. You can use this simple thing below to add your favourite servers in the lists, then you push F9 for the servers at List #1, and you push F10 for List #2, while you are in-game.

You can also have even more lists, actually as many as you prefer. It's also possible to add an alias so you only need to push one button, but I prefer it this way.

Code: Select all

//IP server list script
	alias servulist1a "adr0 $servlist10;adr1 $servlist11;adr2 $servlist12;adr3 $servlist13"
	alias servulist1b "adr4 $servlist14;adr5 $servlist15;adr6 $servlist16;adr7 $servlist17;adr8 $servlist18"
	alias servulista1 "servulist1a;servulist1b;menu_joinserver"
	alias servulist2a "adr0 $servlist20;adr1 $servlist21;adr2 $servlist22;adr3 $servlist23"
	alias servulist2b "adr4 $servlist24;adr5 $servlist25;adr6 $servlist26;adr7 $servlist27;adr8 $servlist28"
	alias servulista2 "servulist2a;servulist2b;menu_joinserver"

        //List #1
	set servlist10 "angra.se:27910"                  //angra junkyard #1
	set servlist11 "angra.se:27920"                 //angra junkyard #2 
	set servlist12 "angra.se:27930"                //angra junkyard #3
	set servlist13 "193.69.8.154:27920"          //catch-gamer.no #1
	set servlist14 "193.69.8.154:27921"         //catch-gamer.no #2
	set servlist15 ""    	      
	set servlist16 ""       
	set servlist17 ""         
	set servlist18 ""

        //List #2
	set servlist20 "217.112.240.96:26000"        //duraworks #1
	set servlist21 "217.112.240.96:27000"        //duraworks #2
	set servlist22 "217.112.240.96:28000"        //duraworks #3
	set servlist23 "217.112.240.96:29000"        //duraworks #4
	set servlist24 "137.163.30.131:27910"          //clanunited.org #1 
	set servlist25 "137.163.30.131:27920"         //clanunited.org #2 
	set servlist26 "137.163.30.133:27910"         //clanunited.org #3
	set servlist27 "137.163.30.133:27920"         //clanunited.org #4
	set servlist28 ""

	bind F9                                 "servulista1" //serverlist #1
	bind F10                                "servulista2" //serverlist #2
These servers are up-to-date btw. My favourite clanwar servers.

Next is only aliases, for the lazy ones, just like me. Very simple but useful ones, some of you may not use kind of aliases, so these are for you. I may have missed lots of maps, so feel free to add more.

Code: Select all

	alias .tj "votemap teamjungle"
	alias .ac2 "votemap actcity2"
	alias .ac3 "votemap actcity3"
	alias .j1 "votemap jungle1"
	alias .u1 "votemap urban"
	alias .u2 "votemap urban2"
	alias .u3 "votemap urban3"
	alias .u4 "votemap urban3"
	alias .dc "votemap deepcanyon"
	alias .city "votemap city"
	alias .beer "votemap beer"
	alias .cloud "votemap cloud"
	alias .riot "votemap riot"
	alias .rok "votemap rok"
	alias .mesto "votemap mesto"
	alias .airport "votemap airport"
	alias .c "votemap cliff"
	alias .c2 "votemap cliff2"
	alias .murder "votemap murder"
	alias .pier "votemap pier"
	alias .aqnitro "votemap aqnitro"
	alias .sc "votemap simplicity"
	alias .rt "votemap rooftops"
        alias .s1 "votemap sludge1"
I can see that all useful simple scripts are already mentioned here, so I stick with one last but very useful script, and it's so you can claim RCON on some of the clanwar servers, for own purposes when having clanwar.
Here it is (currently created for the clanunited servers);

Code: Select all

alias rconuni "rcon_password clanunited;rcon rcon_password putsomethinghere;rcon_password putsomethinghere;rcon roundtimelimit 2.5;rcon map cloud;rcon dmflags 756"
(I'm not sure about the currently default dmflags, but just feel free to change it.)

This code will set the password for the currently server, and change it to one you prefer, so you are the master of the server at the moment.

If you wish to also reset the server's settings to the default, you can use the code below;

Code: Select all

 
alias resetuni "rcon_password putsomethinghere;rcon rcon_password clanunited;echo Server's password set to default."
Enjoy.
PENSIONERAD cat
#AMF @ IRLNet - AMFpension.se[/b]
Image
korsakoff
is connecting
Posts: 15
Joined: Thu Sep 08, 2005 5:23 pm
Location: fi

Post by korsakoff »

maGro wrote:

Code: Select all

bind m initiate...

I accidentally turned it on in a cw =D, could'nt turn it off, quake crashed..
And I could'nt get back to the srv because my clone was still there dancing.

Funny script, but I should be more careful with my binds. O_o
indey
plummets to its death
Posts: 51
Joined: Tue Sep 09, 2003 9:25 am
Location: jm
Contact:

Post by indey »

skmz wrote: (I'm not sure about the currently default dmflags, but just feel free to change it.)
Yep, it sure in hell aint 756 :), you were probably looking for 768 there, but i dunno, i personally still like 256 the best =).
Synchrony - www.huhtimo.com/sync
#Synchrony - @ QuakeNET
Aq2 with attitude.
V34
tried to put the pin back in
Posts: 283
Joined: Tue Aug 31, 2004 12:22 pm
Location: dk
Contact:

Post by V34 »

Code: Select all

bind l "inven;wait;invuse;wait;invuse;wait;choose sniper rifle;wait;choose kevlar vest;wait;echo SNIPER!"
Quick Joiner. (:

Code: Select all

bind f5 "captain;lock;teamname V34's team;ready"
Quick Captain. (:

And....

Code: Select all

alias wait2 "wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait"
alias wait3 "wait2;wait2;wait2;wait2;wait2;wait2;wait2;wait2"

wait3;clear;ec1;ec2;ec3;ec4;ec5;ec6;ec7;ec8;ec8;ec8;ec8;ec8;

Console Cleaner. (:
( The ec1-7 is my name been echo'ed, and the ec8 is a empty line. )

Actually i also have my version of Magro's dance script. Hehe had a funny time dancing while recording "The Ecape"

Code: Select all

set yaw cl_yawspeed
bind kp_5 wspin
alias "wspin" "set cl_yawspeed 1300;+left;drop item;wait3;drop weapon;-left;set cl_yawspeed $yaw"
alias wait2 "wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait"
alias wait3 "wait2;wait2;wait2;wait2;wait2;wait2;wait2;wait2"
But i cant still get the event command working. Go ahead Snt, call me a newbie.
Image
sanity
was in the wrong place
Posts: 267
Joined: Sun Aug 29, 2004 1:15 pm
Location: se
Contact:

Post by sanity »

you newbie!
Image
Image
Post Reply