Scripts - Printable Version +- AssaultCube - Forum (https://forum.cubers.net) +-- Forum: AssaultCube (https://forum.cubers.net/forum-3.html) +--- Forum: Mapping and Modding (https://forum.cubers.net/forum-11.html) +--- Thread: Scripts (/thread-38.html) |
Scripts - a_slow_old_man - 20 Jun 10 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: [SELECT ALL] Code: alias quickknife [ 2. Knifeattack script: [SELECT ALL] Code: alias knifeattack [ 3. Zoom script by stef: [SELECT ALL] Code: //zoom script by stef with fog 1024 trick added, a must for a sniper 4. Out of ammo script: [SELECT ALL] Code: // out of ammo -> pistol 5. Teamchange script: [SELECT ALL] Code: 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]] 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 [SELECT ALL] Code: alias force_cn -1; 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 [code][/noparse] tags RE: Scripts - Brett - 20 Jun 10 I'm the author of the teamchange script and it works well for me and some other people. I don't know what problem you encounter. RE: Scripts - Andrez - 20 Jun 10 7. AFK Script [SELECT ALL] Code: //AFK Script RE: Scripts - a_slow_old_man - 20 Jun 10 Improved swapteams script by Cid: [SELECT ALL] Code: //fixed up swapteams script RE: Scripts - Bukz - 20 Jun 10 "AUTOEXEC Me" - Auto-applied dynamic mode specific settings... RE: Scripts - MacAdresS - 20 Jun 10 by grenadier Quote:// scrolling with use mouse in output console have anyone script for write team message with my healts/armor/ammo ? RE: Scripts - a_slow_old_man - 20 Jun 10 Yes me. But I had to modify my client to do that... :/ There is a script that says your current weapon, ammo and clips to your teammates at the AcWiki. RE: Scripts - LiFe. - 20 Jun 10 1. Quick knife script: Code: alias quickknife [ if (!= (curweapon) 6) [melee] attack onrelease [ sleep 1 [ if (= (curweapon) 0) [weapon (prevweapon)] ] ] ] bind Q quickknife 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. -> about that, there is not something for when i press q, it just take the knife, ataack and come back? i mean, no need to hold, just press. thx RE: Scripts - Bukz - 20 Jun 10 "AUTOEXEC Me v2.0" - Auto-applied dynamic mode AND map specific settings... Worth the update. :P RE: Scripts - Kirin - 21 Jun 10 a slow old man: you ripped some of my scripts i posted on the old forum, it would've been kind to mention the autor, but np RE: Scripts - Gibstick - 21 Jun 10 [SELECT ALL] Code: bind f [ if $editing [solid 1] [quicknadethrow]] Make the 2 key switch to Akimbo by default: [SELECT ALL] Code: bind 2 [ if $editing [ domodifier 7 ] [weapon 7; secondary] ] [SELECT ALL] Code: //Volume script, "cylvol radius height" RE: Scripts - a_slow_old_man - 21 Jun 10 (21 Jun 10, 08:19AM)Kirin Wrote: a slow old man: you ripped some of my scripts i posted on the old forum, it would've been kind to mention the autor, but np Sure, just tell me which are yours. I just skipped through my autoexec.cfg and when there is no "//made by Kirin" or something idk who made it ^^ RE: Scripts - Kirin - 21 Jun 10 the quick knife is mine and the zoom script is the modified version i made (the original version of the script was of stef) and the Out of ammo script those are all fairly simple that's why i didnt add credits, but when posrting them ah "Credit goes to original autor" would have been more than enough RE: Scripts - pwned - 21 Jun 10 lol copyright.... and yes there is a such script that says your gun and ammo to your teammate. i used it before and then i lost it xD. RE: Scripts - Gibstick - 21 Jun 10 Meh, humble GeneralDisarray doesn't care if his name shows in my scripts. Neither does V-Man. RE: Scripts - Kirin - 21 Jun 10 infact i didnt want to be mentioned... but it's rude to let ppl intend you made them :) RE: Scripts - flowtron - 22 Jun 10 I really don't like that "force"-script. It isn't just annoying to the player targeted but to the whole match in progress - especially if the targeted player isn't too well versed in AC you'll start seeing a lot of TKs, just because he notices too late he was switched. This is, in fact, one thing I'm going to try and improve on - making such a switch be more prominent, so's you don't become a TK in the heat of battle because upon spawn you happen to see an old opponent and your reflexes make you hit attack. A potential option here would be to send an offending player to the spectator "team" - of course, only possible once 1.1 is released - but until then I'd really urge you to kick players instead of messing with the ongoing match any more than they already are. RE: Scripts - Viper - 25 Jun 10 Right now I'm working on a "bedtime" script. My problem so far is letting the system continuously check timestring, which causes AC to crash. If anyone has any creative ideas on how to get around this please say so. Basically I can get the game to let you insert a bedtime, but I run into trouble when executing the command, i,e, AC crashes and sometimes the entire computer. I might have crashed idis 8010 last night, lol, by "saying" instead of echoing. XD It crashed my computer. edit: I'm currently using the while command and having an arg for bedtime which is checked to the time. RE: Scripts - #M|A#Wolf - 25 Jun 10 So you want a script where you put the time your bedtime is so AC quits at that time? RE: Scripts - Dreamer - 25 Jun 10 I'm sure it'd be easier to find a program to just shut off your computer at your 'bedtime' :P RE: Scripts - Viper - 25 Jun 10 Well basically you put in your bedtime and at the time you put in, the console echos: GO TO SLEEP!!!!!!!!! GO TO SLEEP!!!!!!!!! GO TO SLEEP!!!!!!!!! RE: Scripts - SplatZ - 25 Jun 10 lol, tell me when the script is done. I'd like that, cause i often lose track of time playing ac RE: Scripts - sja5164 - 25 Jun 10 (25 Jun 10, 02:26PM)Viper Wrote: Well basically you put in your bedtime and at the time you put in, the console echos: I'm not familiar with CubeScript, so I'm no help in actually writing a script, but... Why not have it ask for a length of time to play? (Its 9 now and I want to be in bed by 1, so I'll give it 4 hours) Then it's just a matter of a counter and when it hits 4 hours, GO TO BED!!! RE: Scripts - Bukz - 26 Jun 10 [SELECT ALL] Code: alias aban [ // Take admin, force fail existing votes, whois, Epic ban script - requires grenadier's claimadmin script, also this is a modded version of grenadiers original aban script, modded by myself and GeneralDisarray. Enjoy. :) RE: Scripts - SiL3nT - 26 Jun 10 ...Don't get anything... RE: Scripts - bballn45 - 26 Jun 10 Hey can you show me were to make these? I tried typing /bind q [quickknife] but it doesn't work. RE: Scripts - Bukz - 26 Jun 10 The scrips you see here should be copied and pasted into your autoexec.cfg in the "config" folder of your AC installation. Open it with a text editor (notepad will do), paste, save. Enjoy. NOTE: Not *all* scripts work only from the autoexec.cfg, sometimes they come with special installation instructions that you should always carefully read and follow - to avoid problems. RE: Scripts - flowtron - 26 Jun 10 I decided this "CHECK BEDTIME" script would be a nice demonstration-piece. It actually exposed a minor bug in AC 1.0.4 to me - this makes the script a little less fire-and-forget, since you need to manually trigger it to run once the engine has started up. (KP_PERIOD is used by default for that) It's not completely fool-proof - for example you could hit KP_PERIOD multiple times - but that doesn't change it's effects, just wastes CPU cycles ;-P Get CHECK BEDTIME here and put it into your AssaultCube Home and put the following line into your config/autoexec.cfg: [SELECT ALL] Code: exec send2bed.cfg RE: Scripts - LaNterN - 26 Jun 10 (26 Jun 10, 04:40AM)Bukz Wrote: Epic ban script - requires grenadier's claimadmin script, also this is a modded version of grenadiers original aban script, modded by myself and GeneralDisarray. where is grenadiers claimadmin script? RE: Scripts - Bukz - 26 Jun 10 [SELECT ALL] Code: exec config/admin_passwords_list.cfg
[SELECT ALL] Code: alias adminpasswordslist [ Important: Each server IP and password should be on it's own line within admin_passwords_list.cfg - On windows there MUST be a space after every password, otherwise the script will not work correctly. From now on, /claimadmin will take admin status on any servers listed in admin_passwords_list.cfg - for ease of use, I recommend binding it to a key like so: [SELECT ALL] Code: bind "KEY" [claimadmin] Tip: Pressing your claimadmin keybind a second time, or typing /claimadmin a second time, will drop admin status. |