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) |
RE: Scripts - 1Cap - 07 Mar 13 I just discovered the wheel. Using the command / dbgtiles 1. Just make a script and/or use bind. Example: When you're with the flag and defending, you can give the command /dbgtiles1 and see through the wall if the kevlar, helmet, ammunition, akimbo, are in place. Then you pick up and return. You can see through the wall if your enemy took something without going there. - Does it change the gameplay? - we will divide the Ac on two levels: 1) Script clan/players pró 2) no-script clan/player pró RE: Scripts - #M|A#Wolf - 07 Mar 13 (07 Mar 13, 11:04PM)1Cap Wrote: ...For me it just works for helmets. It literally picks off every single mapmodel in the map as well, and it's incredibly annoying. RE: Scripts - Luc@s - 08 Mar 13 (07 Mar 13, 11:04PM)1Cap Wrote: I just discovered the wheel. No relation with damage scripts. dbgtiles was obviously introduced for debugging purposes only and using it to gain an advantage /could/ be considered as cheating. By the way, this command was removed from the game a few months ago. RE: Scripts - BarricadeX75 - 08 Mar 13 (07 Mar 13, 11:04PM)1Cap Wrote: Using the command / dbgtiles 1. Yeah sure, binding a command to a key makes you a hardcore scripter. RE: Scripts - vern - 08 Mar 13 (20 Jun 10, 04:48PM)a_slow_old_man Wrote: Post your scripts here (with a short explanation what it does). 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 RE: Scripts - #M|A#Wolf - 08 Mar 13 (08 Mar 13, 07:31AM)vern Wrote: 3/8/2013You must be American. RE: Scripts - jamz - 11 Mar 13 No, he's happy to wait until the 3rd of August. RE: Scripts - InitialSAW - 12 Mar 13 (08 Mar 13, 07:44AM)#M|A#Wolf Wrote:Is this bad? :P(08 Mar 13, 07:31AM)vern Wrote: 3/8/2013You must be American. RE: Scripts - CharlyMurphie - 12 Mar 13 If you know some people fromr Boston its harrrible J/K :P RE: Scripts - BarricadeX75 - 14 Mar 13 [SELECT ALL] Code: //By BarricadeX75/Frenzy, with help from Bukz :D This script will display the amount of time it took you to score each time you score a flag in CTF. (It starts counting as soon as you pick up the enemy flag) Note that the chronometer will reset if you die or drop the flag by yourself. This script requires tools.cfg :P EDIT: updated with the new color tags :P RE: Scripts - PhaNtom - 14 Mar 13 (14 Mar 13, 12:44AM)BarricadeX75 Wrote: [cubescript] We can't see that binary character ;) Edit your post to use this: [cubescript] //By BarricadeX75/Frenzy, with help from Bukz :D fcchrono = 0 startedcounting = 0 alias fccincrement [if (= 0 $stplp) [+= fcchrono 1; sleep 100 [fccincrement]]] add2conloop [ if (= 5 $gamemode) [ if_conline_has concatword (c 2) "you have the enemy flag" [ stplp = 0 if (= 0 $startedcounting) [fccincrement] sleep 20 [startedcounting = 1] echo concatword (c 3) "Chrono started!" ] if_conline_has concatword (c 2) "you scored" [ fctime = (divf $fcchrono 10) echo (concatword (c 7) "Time taken to score: " (c 3) $fctime (c 7) "seconds") sleep 20 [fcchrono = 0; startedcounting = 0; stplp = 1] ] if_conline_has concatword (c 2) "you dropped the flag" [ echo concatword (c 3) "You failed at scoring" fcchrono = 0 startedcounting = 0 stplp = 1 ] if_conline_has concatword (c 2) "you lost the flag" [ echo concatword (c 3) "You failed at scoring" fcchrono = 0 startedcounting = 0 stplp = 1 ] ] ] [/cubescript] That should work. RE: Scripts - Bukz - 14 Mar 13 Almost @ PhaNtom, you need to wrap parenthesis around the concatword statements though. [cubescript]if_conline_has (concatword (c 2) "you lost the flag") [[/cubescript] RE: Scripts - BarricadeX75 - 14 Mar 13 (14 Mar 13, 02:03AM)PhaNtom Wrote:(14 Mar 13, 12:44AM)BarricadeX75 Wrote: [cubescript] Try copy/pasting this script somewhere else and it'll be here ;) EDIT: but anyway, I'm updating it using those tags right now :P RE: Scripts - RandumKiwi - 03 Dec 13 Three new scripts from myself: http://ac-akimbo.net/search.php?action=results&sid=a2048b87c7d5182a9edf77a6e863e08e RE: Scripts - bballn45 - 04 Dec 13 Maybe a script where if i click say mouse button 4, my automatic gunfire would change to three round burst fire. If anyone can please do this, it would me much appreciated. RE: Scripts - PhaNtom - 04 Dec 13 @bballn45: [cubescript]burston = 0 bind MOUSE4 [ if (= $burston 0) [ echo "Mode: burst" burstshots (curweapon) 3 burston = 1 ] [ echo "Mode: automatic" burstshots (curweapon) 0 burston = 0 ] ][/cubescript] RE: Scripts - Speedbomb00 - 21 Dec 13 (20 Jun 10, 05:34PM)Andrez Wrote: 7. AFK Script This didn't work completely for me, so I wrote a modified version. Credits are in the script. I feel like I'm kinda wasting my time posting this, but if anyone wants it, have fun. If you just want to download the .cfg file and add it straight to your "scripts" folder, click -->here<--. [SELECT ALL] Code: //Credits to CiD's AFK Script http://forum.cubers.net/thread-38.html (posted by Andrez) RE: Scripts - 1Cap - 27 Jan 14 ty kcolspac10 RE: Scripts - MykeGregory - 05 Feb 14 Could someone write me a script that gives me a 5 second countdown to respawn? the normal countdown isn't there when your speccing someone. RE: Scripts - DeafieGamer - 10 Feb 14 Could someone write me a script that automatically place teamkiller in spect if TOSOK round is finished? How to use Universal Deltas - Thrawn - 28 Mar 15 How to use universal delta and domodifier (How to use your mouse scroll wheel in scripts without rebinding the scroll wheel itself. This is especially useful if you have more than one script that you want to use with the mouse scroll wheel): Overview: Usage: RE: Scripts - _DucK_ - 04 Apr 15 (19 Nov 12, 06:24PM)888 Wrote: Auto respaw (no need bind )Added menu checkbox [cubescript] alias respawx alias mapstartalways [sleep 100 [spaw]] alias spaw [ if (= 1 (respawx) ) [ if (= 1 (alive) ) [sleep 500 [spaw]] [sleep 5000 [attack;sleep 500 [spaw]] ] ] [sleep 2000 [spaw] ] ] [/cubescript] ((This goes to autoexec.cfg)) [cubescript]menuitemcheckbox [Auto respawn: ] "$respawx" [ respawx = $arg1 ][/cubescript] ((This goes to whatever menu you would like to put this (I put in misc settings))) UPDATE:::AFK SCRIPT + MENU::: the afk script is by "TheKiller" (basic script). I added the menu and the back online message The system has Menu (By me, Which allows the following: ) Enable/disable afk system Enable/disable afk message Enable/disable back online message Set Suffix for your nick when AFK Set time to AFK (in seconds, from 10 to 180) Now, to install: 1) Add the following line under any menu you would like (my fav is under "gameplay") [cubescript]menuitem [AFK settings...] [ showmenu [AFK settings] ] [/cubescript] 2) Add this anywhere on menu config files (I added under gampley menu in menus_settings.cfg) [cubescript]newmenu [AFK settings] menuitemcheckbox [Enable afk: ] "$afkenable" [ afkenable = $arg1 ] menuitemcheckbox [Show afk message: ] "$afkshowmessage" [ afkshowmessage = $arg1 ] menuitemcheckbox [Show online message: ] "$afkshowback" [ afkshowback = $arg1 ] menuitemtextinput [Set afk name caption: ] "result $afkstr" [ afkstr = $arg1 ] menuitemtextinput [Set afk message: ] "result $afkmessage" [ afkmessage = $arg1 ] menuitemtextinput [Set online message: ] "result $backmessage" [ backmessage = $arg1 ] menuitemslider [Set seconds until afk: ] 10 180 "$timeuntilafk" 10 [] [ timeuntilafk = $arg1 ][/cubescript] 3) Add this on the file "defaults.cfg" [cubescript]afkstr = "|afk" afkshowmessage = 0 afkshowback = 0 backmessage = "is available again." afkmessage = "is no longer avilable." timeuntilafk = 30 afkenable = 0[/cubescript] 4) Add this on autoexec.cfg file [cubescript] //AFK Script by TheKiller edited and menued by _DucK_ //DO NOT EDIT BELOW HERE curafk = 0 afktime = 0 alias afk [ if (= ($afkenable) 1 ) [ if $arg1 [ if (= $curafk 0) [ oldname = $curname name (concatword $oldname $afkstr) curafk = 1 echo "You are now set to: AFK" if $afkshowmessage [say (concat "AFK Message:" $oldname $afkmessage )] ] ] [ if $curafk [ name $oldname curafk = 0 echo "You are now set to: ONLINE" if $afkshowback [say (concat "AFK Message:" $oldname $backmessage )] ] ] ] ] alias notafk [ if (= $afktime 0) [afkcheck] afktime = 0 if (= $curafk 1) [afk 0] ] alias afkcheck [ afktime = (+ $afktime 5) if (= 2 (+ (> $afktime (* $timeuntilafk 1000)) (= $curafk 0))) [afk 1] sleep 5 afkcheck ] bind w [forward;notafk] bind a [left;notafk] bind s [backward;notafk] bind d [right;notafk] bind MOUSE4 [universaldelta 1;notafk] // this line was added by me bind MOUSE5 [universaldelta -1;notafk] // this line was added by me bind MOUSE1 [attack;notafk] // this was added by me bind MOUSE2 [altaction;notafk] // by me bind MOUSE3 [weapon;notafk] // by me[/cubescript] *I am not quite sure if Thekiller is actually the author. if not, my apologies and credit goes to the original author RE: Scripts - Thrawn - 14 Apr 15 A script to show who the teamkillers are, and how many teamkills they have. NOTE: Unintentional teamkills happen all the time! Please consider that some teamkills are accidental before kicking people! [SELECT ALL] Code: bind J [show_teamkillers] RE: Scripts - greatwhite - 14 Apr 15 @ Thrawn: Nice! Useful. Thank you. *Edit: Anyone have a script to automatically F2 any kick or ban vote against yourself? RE: Scripts - Mhtsos - 16 May 15 [SELECT ALL] Code: persistidents 0 Gema respawn script - Mash - 21 Jun 15 I know there's already a script which makes you respawn on the same team as before but this one is event based... the idea is that you don't have to sleep for 500ms or something just to make sure the sleep time is larger than the ping so you actually went to spectate. Instead it switches back as soon as you're in spectate which results in a much faster respawn. fireEvent was a more general approach so it also counts the milliseconds passed since waiting to fire but for sure you can't let two events race each other the second one will always kill the first one. As a hint though fireEvent is also really usefull for claiming and releasing admin. [SELECT ALL] Code: alias nop [] . - Céd|FR| - 06 Sep 15 I'm search without success a script for know automatically when my akimbo disappear , i have see the scipt by 888 but only the manual timer run for me. RE: Scripts - RaverZ - 15 Sep 15 Hello, I'd love to have auto vote auto change team thing. Thanks to everyone who might be able to help me! RE: Scripts - Bukz - 12 Jun 23 [SELECT ALL] Code: // Smooth sniper rifle scope zoom (using mouse wheel) script for AC 1.3+ by Bukz RE: Scripts - Bukz - 13 Jun 23 Mouse sensitivity finder menu for AC 1.3+: [SELECT ALL] Code: // Sensitivity finder menu for AC 1.3+ by Bukz |