(20 Jun 10, 04:48PM)a_slow_old_man Wrote: Post your scripts here (with a short explanation what it does).
"Credit goes to original autor"
To use this scripts copy&paste them in your "autoexec.cfg" you can find it in the "config"-section of you Assaultcube.
1. Quick knife script:
[cubescript]
alias quickknife [
if (!= (curweapon) 6) [melee]
attack
onrelease [ sleep 1 [ if (= (curweapon) 0) [weapon (prevweapon)] ] ]
]
bind Q quickknife
[/cubescript]
To activate this script you have to press and hold "q" ingame. You will draw your knife and attack. When you stop pressing "q" you'll automaticly change back to your previous weapon.
2. Knifeattack script:
[cubescript]alias knifeattack [
if (= (currentprimary) (curweapon)) [
weapon 0
] [
primary
]
]
bind Q knifeattack[/cubescript]
This script will make you change to kinfe/primary weapon everytime you press "q"
3. Zoom script by stef:
[cubescript]//zoom script by stef with fog 1024 trick added, a must for a sniper
alias adjustsens [
scopefov 40
scopesensscale = (divf $scopefov $fov)
]
alias altaction_4 [ alias oldfog $fog;fog 1024
adjustsens; domodifier 1; zoom 1;
onrelease [ zoom 0; adjustsens; fog $oldfog ]
]
alias delta_game_1 [
if (= $arg1 1) [
if (> $scopefov 5) [scopefov (- $scopefov 5) ]
][
if (< $scopefov 60) [scopefov (+ $scopefov 5) ]
];
sensitivity (divf (*f (*f $oldsens $scopesensscale) $scopefov) 40)
][/cubescript]
With this script you can zoom with your sniper. Just scroll with your scrollwheel while you scope.
4. Out of ammo script:
[cubescript]// out of ammo -> pistol
alias noprimammo [
if (= curweapon [currentprimary]) [sleep 100 [if (= (magcontent (currentprimary)) 0)[ weapon 1]]]]
bind MOUSE1 [attack;noprimammo][/cubescript]
With this script you will automaticly change to the pistol when your primary weapon is out of ammo. (To use it with the SMG/AR you may have to set "autoreload" off or press the mousebutton again when you are out of ammo)
5. Teamchange script:
[cubescript]alias swapteams [sleep 100 [autoteam 0]; sleep 200 [forceteam 0]; sleep 300 [forceteam 1]; sleep 400 [forceteam 2]; sleep 500 [forceteam 3]; sleep 600 [forceteam 4]; sleep 700 [forceteam 5]; sleep 800 [forceteam 6]; sleep 900 [forceteam 7]; sleep 1000 [forceteam 8]; sleep 1100 [forceteam 9]; sleep 1200 [forceteam 10]; sleep 1300 [forceteam 11]; sleep 1400 [forceteam 12]; sleep 1500 [forceteam 13]; sleep 1600 [autoteam 1]][/cubescript]
You need to be admin for this script.
When you type "/swapteams" ingame (or bind it to a key/in a menu) every player will change the team.
(For some reason it doesn't work properly for me. If the author of this script could have a look at this and tell me if it's wrong or something, I'd be very happy :) )
6. "Get rid of suckers" - script aka force script
[cubescript]alias force_cn -1;
alias forceloop_o [
callvote 5 $force_cn;
sleep 5000 forceloop;
]
alias forceloop [];
alias start_force [
alias forceloop $forceloop_o;
forceloop;
]
alias stop_force [
alias forceloop [];
]
alias force [
if (< $numargs 1) [
echo "Error: FORCE needs a ClientNumber!";
] [
alias force_cn $arg1;
start_force;
]
]
bind F8 [ stop_force;echo "Force Stopped!" ]
[/cubescript]
You need to be admin for this script.
When you type "/force cn" ingame the player with the choosen cn will get changed to the enemy team ever 5 second or something, till you press F8 or he leaves.
This is a nice altanative to kick/ban :)
Mod Edit: Upgraded [noparse][code] tags to [cubescript][/noparse] tags
Cmon autor's, right a damn script. This was at one time a scripts thread... I'll try...
[cubescript]Assaultcube = [ yumad ] [ yunoob ]
if yunoob = Assaultcube [ Bind Alt + F4 ]
if yumad = jamz [ Auto Perma Ban ]
Format getnoobalais [ yumad ] [ yunoob ] [ jamz ]
if 3/8/2013 [ RELEASE A FRIGGIN NEW VERSIONS AND GIVE US ALL SOMETHING TO REALLY DISCUSS ] [/cubescript]
I think I win, you may need to compile the compiler to get my scripts to work properly. wp gg