20 Apr 12, 04:38AM
could someone please tell me why my rewind script isn't working ahhhhhhhhh, !!:(
Scripts
|
20 Apr 12, 04:38AM
could someone please tell me why my rewind script isn't working ahhhhhhhhh, !!:(
20 Apr 12, 12:42PM
20 Apr 12, 01:01PM
(This post was last modified: 20 Apr 12, 01:47PM by OpenSource.)
You can use other stuff/script to change to pistol.
Not automatically when out of ammo but still... [cubescript]pistolera = [ if (|| (= (curmode) 10) (= (curmode) 11)) [ if (= (curweapon) (currentprimary)) melee primary ] [ if (= (curweapon) (currentprimary)) secondary primary ] ][/cubescript] [SELECT ALL] Code: bind "mouse3" [pistolera] This lets you press mousewheel to change from primary weapon to pistol. Pressing it when having pistol will change back to primary weapon. Playing T/OSOK will let you change from sniper to knife and back - still by pressing mousewheel of course. This script is not made by me, so no credits goes this way.
I think this script does the same thing OS, and it's much smaller.
[code=cubescript]bind KEY [if (= (curweapon) 0) [primary] [weapon 0]][/code]
Wolf, you forgot about the pistol functionality! D:
But...[cubescript]bind MOUSE3 [secondary; primary; melee; grenades][/cubescript]This works in every mode. Plus, you can change the order of the "primary", "melee", etc. commands as a sort of "priority" ordering. If the first weapon from left to right can be switched to (i.e. it isn't disabled by the current game mode and you aren't already holding it) it will switch to it. If not, it will try the next one, and so on. I personally prefer this: [cubescript]bind Q [ if $editing [ domodifier 1 ] [primary; secondary; melee; grenades] ] autoreload 0[/cubescript]and I leave MOUSE3 for the knife (MOUSE2 is obviously still nades) This way, I can access every weapon without scrolling or using 1-4... except when I'm using sniper in a non-OSOK mode. Damn scoping.
Why is my rewind script not working anymore? :( It just skips the demo and stops. Hey! Wake up peeps! bump bump bump bump
Post the script you're using or try backing up and deleting your /config/saved.cfg and trying the script again, maybe its messing with one of the variables used by the script - theres no way of knowing unless you post it though :p
EDIT: DON'T post your saved.cfg (as it could have private information, passwords and whatnot), post the rewind script that you are using. :p Also note that /rewind and /setmr (set minutes remaining) are hardcoded for the next version of AC, no scripts needed anymore. :)
// "Rewind" workaround by V-Man
// rewind x, where "x" is the number of minutes back to rewind // setmr x, where "x" is the "minutes remaining" mark to skip to [cubescript] alias rewind [ if (watchingdemo) [ alias rewindtime (*f $arg1 60000) alias timemark (* $minutesremaining 60000) alias mapstartonce [ alias mapstartonce [ alias demosleeplength (- (* $minutesremaining 60000) (+ $rewindtime $timemark)) gamespeed 1000 tmp = $soundvol soundvol 0 sleep $demosleeplength [gamespeed 30; soundvol $tmp]] demo $_demofile)] stopdemo ] [echo Not currently watching a demo.]] alias setmr [ if (watchingdemo) [ alias millisrem (*f $arg1 60000) alias mapstartonce [ alias mapstartonce [ alias demosleeplength (- (* $minutesremaining 60000) $millisrem) gamespeed 1000 tmp = $soundvol soundvol 0 sleep $demosleeplength [gamespeed 30; soundvol $tmp]] demo $_demofile)] stopdemo ] [echo Not currently watching a demo.]] // Thanks to GeneralDisarray for saving our ears: // tmp = $soundvol; soundvol 0 and afterwards soundvol $tmp [/cubescript] This is the Script obviously...and i already deleted saved.cfg once when i installed the script Mod edit: put code into cubescript tags.
15 May 12, 03:02AM
Quote:demo $_demofile)] I have a suspicion this is the problematic line. Looks like an extra ")" snuck its way in there. Change it to: Quote:demo $_demofile] and try again. :) (15 May 12, 03:02AM)Bukz Wrote:Quote:demo $_demofile)] believe it or not Bukz, this made everything go into slow motion for a Looooong time. idk how long, but it was so weird. Ugh...same script works fine on my laptop with puppy linux. :(
11 Jun 12, 06:24PM
[cubescript]
alias rewind [ if (watchingdemo) [ alias rewindtime (*f $arg1 60000) alias timemark (* $minutesremaining 60000) alias mapstartonce [ alias mapstartonce [ alias demosleeplength (- (* $minutesremaining 60000) (+ $rewindtime $timemark)) gamespeed 1000 tmp = $soundvol soundvol 0 sleep $demosleeplength [gamespeed 100; soundvol $tmp]] demo $_demofile] stopdemo ] [echo Not currently watching a demo.]] alias setmr [ if (watchingdemo) [ alias millisrem (*f $arg1 60000) alias mapstartonce [ alias mapstartonce [ alias demosleeplength (- (* $minutesremaining 60000) $millisrem) gamespeed 1000 tmp = $soundvol soundvol 0 sleep $demosleeplength [gamespeed 100; soundvol $tmp]] demo $_demofile] stopdemo ] [echo Not currently watching a demo.]] [/cubescript] This tested OK on my end. I don't know why we would set gamespeed to 30 at the end so I changed it to 100. Checked the brackets and they're all matched.
10 Jul 12, 01:47PM
Hey guys, I have a problem - my script does not work.
http://pastebin.com/fdYQ1BKg These "sorry" messages work, but "imonyourteamman" don't. Why? Thanks.
10 Jul 12, 06:50PM
Got it. :)
10 Jul 12, 06:53PM
And the problem was?
10 Jul 12, 07:31PM
Actually I do not know. I deleted some keywords that seemed useless and voila, it works!
[SELECT ALL] Code: // This file gets executed every time you start AssaultCube.
12 Jul 12, 04:37PM
OK I have another problem. Is there a way to remove a character (comma) from a string? I tried using strreplace but without any luck in this case
if (strstr $conline "called a vote: kick player")[alias plrname (at $conline 6); say (concatword (at $variable0)) $plrname (concatword (at $variable1 (rnd 5))) (concatword (at $variable2))] When a vote to kick someone pops up, their name is followed by a comma. I need to remove it to use it in the variable $plrname. How to achieve that? Thanks.
12 Jul 12, 07:37PM
@dumbass, you can't do that in the current version. You could compare all the names in the server with $prlname using strstr, but it wouldn't work so good (ex: "unarmed," and someone named with one letter like "a").
12 Jul 12, 08:13PM
Oh, that sucks.
Another issue: I want to remove some conditions if there is a gema map. But not every gema map has the name "gema" in lower cases. Is there a way to lower the (curmap 1) string? I know that there is a function "convertcase" but I do not know how to use it here. if (strstr (curmap 1) "gema")[say "true";][say "false";]
12 Jul 12, 09:33PM
(This post was last modified: 12 Jul 12, 09:36PM by Ronald_Reagan.)
iirc convertcase is one of the new SVN idents. You will probably have to add another condition like this:
[cubescript] if (|| (strstr (curmap 1) "gema") (strstr (curmap 1) "GEMA"))[say "true";][say "false";] [/cubescript] But here is how you would use convertcase: [cubescript] (strstr (convertcase 0 (curmap 1)) "gema") //Add back into the script if (strstr (convertcase 0 (curmap 1)) "gema")[say "true";][say "false";] [/cubescript] Sorry if there is a bug or two in the code, I didn't decide to bugtest it :3
12 Jul 12, 09:40PM
or you can make a list of every possible gema combinations
[cubescript]gema_list = [ gema GEMA G3m@ ...] loop i (listlen $gema_list) [if (strstr (curmap 1) (at $gema_list $i)) [say "this map is a gema"] []][/cubescript]
13 Jul 12, 07:46AM
Thanks.
Ronald_Reagan: I tried the same thing before but it says in the console that command convertcase is unknown... Any idea how to fix that?
13 Jul 12, 07:49AM
convertcase isn't in the current version of AC.
Ronald_Reagan: Is there another function that I can use for this purpose then? Will it be included in the next version?
I also encountered a problem when the player's name cannot be saved as alias when it contains "special" characters, for example parenthesis etc. Is there a way to fix it? ---- BTW, do you use this zoomwheel script by kirin? http://forum.cubers.net/thread-4970-post...l#pid90551 -- When I press MOUSE2 the zoom is set to max but I want the lowest zoom. How to achieve that?
15 Jul 12, 04:08AM
I script request, Can someone make it so every round in a survivor or team survivor mode, my accuracy will reset itself. This would help because i like seeing how many bullets i still need to kill the person.
15 Jul 12, 04:28AM
dumbass, it is in the next version of AC. As far as I know, there is nothing you could use to easily work around it.
15 Jul 12, 04:47AM
EDITFINAL: Everything was resolved. Uploading the script later. Consider this as a sneakpeak. ;)
(and the one below)
Try this
[SELECT ALL] Code: bind KP8 [ showmenu Aliases ]
15 Jul 12, 07:33AM
|
« Next Oldest | Next Newest »
|