Post Reply 
Scripts
20 Apr 12, 04:38AM
Post: #991
RE: Scripts
could someone please tell me why my rewind script isn't working ahhhhhhhhh, !!:(
Find all posts by this user
Quote this message in a reply
20 Apr 12, 12:42PM
Post: #992
RE: Scripts
(21 Mar 12 06:03AM)Spicy_Orange1 Wrote:  hey, im pretty.. im mean mega.. noob, and i was wondering how to use the script, cause that switch to pistl when out of ammo one sounds really neat
That script doesn't work in this version anymore.
Find all posts by this user
Quote this message in a reply
20 Apr 12, 01:01PM (This post was last modified: 20 Apr 12 01:47PM by DES|OpenSource.)
Post: #993
RE: Scripts
You can use other stuff/script to change to pistol.
Not automatically when out of ammo but still...

cubescript code :
pistolera = [
  if (|| (= (curmode) 10) (= (curmode) 11)) [ if (= (curweapon) (currentprimary)) melee primary ] [
    if (= (curweapon) (currentprimary)) secondary primary
  ]
]


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.
Visit this user's website Find all posts by this user
Quote this message in a reply
20 Apr 12, 10:33PM (This post was last modified: 20 Apr 12 10:34PM by #M|A#Wolf.)
Post: #994
RE: Scripts
I think this script does the same thing OS, and it's much smaller.
cubescript code :
bind KEY [if (= (curweapon) 0) [primary] [weapon 0]]
Find all posts by this user
Quote this message in a reply
21 Apr 12, 01:18AM (This post was last modified: 21 Apr 12 07:47PM by VenteX.)
Post: #995
RE: Scripts
Wolf, you forgot about the pistol functionality! D:

But...
cubescript code :
bind MOUSE3 [secondary; primary; melee; grenades]
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 code :
bind Q [ if $editing [ domodifier 1 ] [primary; secondary; melee; grenades] ]
autoreload 0
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.
Find all posts by this user
Quote this message in a reply
12 May 12, 07:46PM (This post was last modified: 12 May 12 07:48PM by Boomhauer.)
Post: #996
RE: Scripts
Why is my rewind script not working anymore? :( It just skips the demo and stops. Hey! Wake up peeps! bump bump bump bump
Find all posts by this user
Quote this message in a reply
12 May 12, 09:59PM (This post was last modified: 12 May 12 10:03PM by Bukz.)
Post: #997
RE: Scripts
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. :)
Find all posts by this user
Quote this message in a reply
15 May 12, 01:23AM (This post was last modified: 15 May 12 07:41AM by tempest.)
Post: #998
RE: Scripts
// "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 code :
 
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
 
 




This is the Script obviously...and i already deleted saved.cfg once when i installed the script

Mod edit: put code into cubescript tags.
Find all posts by this user
Quote this message in a reply
15 May 12, 03:02AM
Post: #999
RE: Scripts
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. :)
Find all posts by this user
Quote this message in a reply
Today, 02:15AM (This post was last modified: Today 02:17AM by Boomhauer.)
Post: #1000
RE: Scripts
(15 May 12 03:02AM)Bukz Wrote:  
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. :)

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. :(
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)