13 Mar 11, 10:52PM
Most operators in cubescript only take two arguments. So, parenthesize everything. Example:
//1 AND 2 AND 3, equivalent to 1 && 2 && 3
(&& (&& 1 2) 3)
//1 AND 2 AND 3, equivalent to 1 && 2 && 3
(&& (&& 1 2) 3)
Scripts
|
13 Mar 11, 10:52PM
Most operators in cubescript only take two arguments. So, parenthesize everything. Example:
//1 AND 2 AND 3, equivalent to 1 && 2 && 3 (&& (&& 1 2) 3)
13 Mar 11, 11:07PM
Thank You, now it works ^^
14 Mar 11, 02:58AM
Love the nade timer
execpt it doesn't work for me...
14 Mar 11, 02:59AM
It's the same for me. When I try to launch the game with the script, I get an AssaultCube fatal error.
14 Mar 11, 03:25AM
For the nade timer? o_O
Do you have tools.cfg installed?
14 Mar 11, 03:52AM
(This post was last modified: 14 Mar 11, 03:53AM by BarricadeX75.)
Properly installed.
CrossHair Anim works fine.
Yeah, V-man, something is definitely funny with that script. It took me an hour or two of messing around with it to get it working properly.
Anyway: Update (should be last one) for multiXhair: [SELECT ALL] Code: //Multiple Crosshair Script by Lantry New script: I'm really surprised no one has thought of this yet, It is really helpful. It was requested some time ago, but once again, I am the only person who actually knows how to cubescript around here, so i have to do everything! [SELECT ALL] Code: //YAIYAIYAIYAIYAIYAI by Lantry If anyone complains about 'spam' or stupid stuff like that, just change [say "YAIYAIYAI"] to [echo "YAIYAIYAI"], and just pretend you are screaming at the top of your lungs. Stay classy, AC.
Fatal error though??
augh. Linux ftl? * V-Man dodges rotten tomatoes
14 Mar 11, 03:33PM
If you ask V-Man, we made a YAIYAIYAI script a loooonggg time ago.
14 Mar 11, 06:17PM
Lantry, what changes did you make to the nade timer script that made it stable for you? Perhaps the changes will benefit others.
i would post the code, but i got rid of it cause it conflicted with my multixhair. I will try to remember the changes i made, but i am on windows, and was not receiving any fatal errors or anything.
[SELECT ALL] Code: // nadetimer by V-Man (bastardized by Lantry)
14 Mar 11, 11:18PM
Linux, I knew it. :(
I wonder what about Linux makes this script throw an exception??
Brush up on your math skills while you get nade spammed xD:
Random math quiz script with correct/incorrect counters... http://pastebin.com/rEm27aH0 <- ^ URL here, in case you didn't see it up there. ^
17 Mar 11, 04:19AM
Is there a script for finding logs (common)?
17 Mar 11, 09:25PM
Not yet, but that's a great idea.
18 Mar 11, 02:25AM
(This post was last modified: 18 Mar 11, 11:22PM by Yarukinasu.)
EDIT:
(17 Mar 11, 04:19AM)Viper Wrote: Is there a script for finding logs (common)? [SELECT ALL] Code: div=f = [ $arg1 = (divf (getalias $arg1) $arg2) ] EDIT: This returns the common logarithm, log10 n, of a given n value, and n should be greater than zero. Binary logarithm can also be used: log2 n, and n should be greater than zero.
18 Mar 11, 02:27AM
And what does this gem do?
Simple editing binds creator w/ examples...
Example usage: [SELECT ALL] Code: /editbind KEY [code block to be executed if in edit mode] [code block to be executed if not] If you don't plan on having any actions for either of the final two arugments, you should still provide a empty set of brackets to indicate to the script that you want it to "do nothing" in that case. Do plan on beefing this one up and making it more user-friendly in the near future, planning on trying to make optional "high-level" keywords to replace cubescript's daunting syntax and command naming conventions/arguments/w/e, maybe will throw in some menus as well. :) For now most users that are comfortable with cubescript should be able to work well with this "skeleton". That's right Gibbeh, format4life. \:D
18 Mar 11, 03:44AM
How high level can you get, when Cubescript is already high level?
18 Mar 11, 04:03AM
Not high level enough, I bet most newbies look at a basic keybind that uses more than 1 if and dies a little inside. :P
I'd like to make it easier on them to get proper binds is all.
18 Mar 11, 09:41AM
(This post was last modified: 18 Mar 11, 10:05AM by BarricadeX75.)
[SELECT ALL] Code: cd-axis = 0 Generates a computer on a desktop, with clip depending of the axis. Useful for mapping =D Note : You have to put /cd-axis = 0(or 1) in the console to change the axis.
OH MY F***ING GOD!!! love those scripts :DD definetely that sniper scope zoom :D are you some kind of official AC-developer man!? Thanks,man!
But one question :S When in autoexec file read that: // This file gets executed every time you start AssaultCube. // This is where you should put any scripts you may have created for AC. <- should i remove that text before pasteing those scripts!? help :S
No you don't have to remove that text, in almost all AssaultCube configuration files (.cfg) anything after the double backslashes "//" on a line is ignored:
[SELECT ALL] Code: echo Hi there... ...you'll only see "Hi there..." once because the second one is commented out (i.e. has "//" before it)
18 Mar 11, 11:18AM
oh, so i just paste a scritp on the next line?
18 Mar 11, 11:28AM
That'll do it, or you can take the line out assuming you can remember that the autoexec.cfg is a good place to put scripts that you want to be automatically executed upon starting AC.
That comment there is just to explain to newbies what the purpose of that specific file is. One day you're going to want to clean up your autoexec.cfg a little because of the amount of scripts you'll be using, when that time comes, consider setting up an automatically executed scripts folder. :) HTH
18 Mar 11, 11:37AM
Thanks :D but i'm not very good with computers, i just like the game and love to see it developed :D so i think i wont do so much of these script-changes
19 Mar 11, 05:19AM
Mega Binds script:
http://pastebin.com/XFBFJsPg Supposed to replace all the delta_edit, delta_game, etc. stuff from scripts.cfg - Allows you to bind a key to many different actions all with 1 command and without needing any aliases. :D Example usage: [SELECT ALL] Code: megabind O [
20 Mar 11, 02:05PM
@Yarukinasu:
May I include your binary logarithm script in my next tools.cfg release? :D I may modify it to accept negative numbers (more for dummy-proofing than anything), but I find your method elegant.
21 Mar 11, 02:01AM
(This post was last modified: 27 Mar 11, 09:40PM by Yarukinasu.)
(20 Mar 11, 02:05PM)V-Man Wrote: @Yarukinasu: Of course, you may. Also, check out math.cfg... I know there is not much, and I ran out of ideas. I know, some of the aliases defined are useless. Change the names of the aliases to appropriate names if possible... Thank you. http://pastebin.com/XWRu6Ufp
23 Mar 11, 06:25PM
? I may have asked this question b4 but how can I have auto-reload JUST for pistol ?
|
« Next Oldest | Next Newest »
|