11 Sep 11, 12:13AM
Verse: I made a similar script a little while back, and found it was much easier just to use conloop.
Scripts
|
11 Sep 11, 12:13AM
Verse: I made a similar script a little while back, and found it was much easier just to use conloop.
Hm, perhaps weapon change can be an event hook for a future release?
Or, if you still want to go the bind route, "findbind" in tools.cfg is your friend. (10 Sep 11, 08:02PM)tempest Wrote: Well, with that code, you don't set crosshairsize anywhere. Did you mean to writeYes Tempest, I didn't include that in the snipit of code I was quoting, thus the '...' at the beginning and the end. If you wanted to search the entire script, I use it once at the end of all the logic. (11 Sep 11, 12:13AM)Lantry Wrote: Verse: I made a similar script a little while back, and found it was much easier just to use conloop. Lantry I don't doubt you are correct, this is my first script to have any type of logic and I have a lot to learn. What is a conloop anyway... * Verse searches the forums and documentation V-Man I'm researching before I reply to you.
11 Sep 11, 03:13AM
My heart is full of joy.
"conloop" is a tool crafted specifically for use in polling the conline (see the URL in my user title). However, some things can go into the conloop (via add2conloop) that merely need to be checked out on a continuous basis, such as what weapon you currently have. One drawback is that the values are constantly being polled, even (especially) when they aren't needed. Heavy (ab)use of this has caused some FPS drops in different clients; severe abuse (installing every script that uses conloop, as well as a few test ones I had lying around) on my computer (1.5 GHz 2 MB RAM Intel Express 128 MB video) caused a drop of around 3-5 FPS average. Others have reported significantly steeper drops, though I suspect other things are affecting those systems. (11 Sep 11, 05:11AM)V-Man Wrote: My heart is full of joy.Ah yes, I could've done that, although I would've implemented it using a continuous while loop or never ending recursion (Verse waves at RR) that polls the current weapon every 50ms (which has already been done). My goal was to create an event triggered version. It made the script more complex, but since it is event triggered, i.e. it waits for you to press a key or mouse button, it only runs about 40 times every 50 ms after each time you switch a weapon or attack. Thus it is very efficient. The biggest draw back that I see is that this script won't play nice with other script that also triggered by such events. It wouldn't be that hard to combine those scripts if you know what you're doing though, giving a super script. And I assume it has been done many times.
11 Sep 11, 06:37AM
tools.cfg:
add2bind :D
11 Sep 11, 07:20AM
11 Sep 11, 07:56AM
Ahhh, I knew I was forgetting something when giving some feedback!
Have a gander at tools.cfg, it may open your eyes to what CS can do.
11 Sep 11, 09:47AM
add2bind is great, it ensures that a block of code exists within a specific keybind.
In fact it's "built-in" in the next version of AC in /config/scripts.cfg. Thanks V-Man. :)
12 Sep 11, 05:03PM
Auto-sorry & auto-thanks-man voicecoms script:
[SELECT ALL] Code: // Auto-sorry & auto-thanks-man script for AssaultCube 1.1.0.4 or greater by Bukz. Auto-sorry is pretty self explanitory, it will automatically send the sorry voicecom and a custom message to your teammate when you team kill them. Auto-thanks-man is meant to automatically respond to people who send you a "nice shot" message after you kill them. So if you kill "unarmed" and they send you a "nice shot" message within a certain time frame, the script will automatically send the "thanks man" voicecom and a custom message: for instance "Thanks unarmed!". This script needs tools.cfg to work. Be sure to read the comments towards the top and make edits to the script where necessary. Please report any problems you have with the script, because a few people have had problems getting it to work (especially curious about linux/mac users). Enjoy! :)
12 Sep 11, 05:35PM
As I say to people in-game when I see it, automatic apology is no apology at all. :/
(12 Sep 11, 05:35PM)jamz Wrote: As I say to people in-game when I see it, automatic apology is no apology at all. :/ Ur absolutely right jamz, i take all the responsibility for that script cause i asked Bukzy to make one for me ;), lets admire the work, and I'll accept all the consequences for not being honest when i tk someone ;) P.S. jk guys, but sometimes in the middle of a match stopping to write down "sry" means losing a flag XD
13 Sep 11, 12:14AM
I can jump off a ledge, and type a few things while still in the air. These things are XD, sorry, and :P
Yes, I practice.
13 Sep 11, 12:59AM
You're probably right jamz, but I rather do it that way than attempt at typing sorry, or the voice com and get killed or anything. So sorry D:
13 Sep 11, 02:17AM
Try not to kill teammates and make the issue a moot point?
13 Sep 11, 04:10AM
I'd love to see the record for most games played without any TKs.
* V-Man near the bottom...
V-Man, congratz on the 888th post on this thread.
http://en.wikipedia.org/wiki/Numbers_in_...ture#Eight btw happy mid-autumn festival. EDIT: Since I feel bad that I didn't post anything on topic or of actual substance... [SELECT ALL] Code: addcheck_msa connectwrite
15 Sep 11, 01:57PM
hello guys :)
im writting a simple script and i was wondering if there is a way that another command gets executed upon 1 vote pass? i noticed in doc something like onVoteEnd but that doesn't really seem to work? thanks :)
That is in the SVN.
You can get the SVN and experiment with it. Getting the SVN on Linux Getting the SVN on Windows Mac SVN binary from Ronald_Reagan
15 Sep 11, 04:56PM
Yes, be careful with the documentation available at http://assault.cubers.net/docs/, and especially http://assault.cubers.net/docs/reference.xml, since it's the SVN's version.
You can get the online documentation for AC 1.1.0.4 here : http://actiongame.svn.sourceforge.net/vi...ision=5882
16 Sep 11, 06:33AM
(15 Sep 11, 01:57PM)Milandrag Wrote: hello guys :) You can use "conline" and search the world "Vote pass" . If the word "vote pass" is detected ,you use a command
16 Sep 11, 09:46AM
True, if you can't bother to get the SVN or wait until the next release. Conline looping is the next best thing! :D
Auto-Auto-Screenshot Script :D
This script will automatically toggle the autoscreenshot tool depending on which mastermode the server is in. This is useful if you (like me) always forget to take screenshots of cms or inters, but don't want to leave autoscreenshot on all the time. [cubescript]//AutoAutoScreenShot by Lantry lastmastermode = 0 autoautoss = [ autoscreenshot 0 if (!= $lastmastermode (curmastermode)) [ if (= (curmastermode) 0) [ //when open autoscreenshot 0 //autoscreensshot is on (1) or off (0) echo "Mastermode 0 detected" ] if (= (curmastermode) 1) [ //when private autoscreenshot 1 echo "Mastermode 1 detected" ] if (= (curmastermode) 2) [ //when match autoscreenshot 1 echo "Mastermode 2 detected" ] ] lastmastermode = (curmastermode) sleep 300000 [ autoautoss ] ] addcheck_msa [ autoautoss ][/cubescript] By default, it will turn autoscreenshot on in private and match, and turn it off in open, but it is easily modifiable! Simply change the argument for "autoscreenshot" to 1 (on) or 0 (off) under the proper if statement. To install, simply put it in your autoexec .cfg or scripts folder!
AC Booster 2.0
New version, some corrections in the size of the screens and modified a few lines. before fps 108 after fps 210 [SELECT ALL] Code: //AC Booster by Stupp* Do not expect the same result for everyone, but I'm sure will benefit many.
09 Oct 11, 10:10PM
(This post was last modified: 10 Oct 11, 04:36AM by Ronald_Reagan.)
[SELECT ALL] Code: bind KP4 [say % <---- Left <----] Thanks to: B}Verse (For helping me understand how to do this) B}Ronald_Reagon (For Being Awesome and Helping him) All -dyH| Members. V-Man and DES|Cleaner for Inspiring me! Working on some more scripts now :) Mod edit: No DES|V-Man
11 Nov 11, 09:36PM
Is it possible to make a script or something to set your fog to a certain amount when you load up the map, without typing /fog 1024?
Add this to your /config/autoexec.cfg:
[cubescript]if (! (checkalias mapstartalways)) [ mapstartalways = "" ] if (! (strstr $mapstartalways [ fog 1024 ])) [ add2alias mapstartalways [ fog 1024 ] ] [/cubescript]
11 Nov 11, 10:24PM
Thanks a lot Bukz.
|
« Next Oldest | Next Newest »
|