home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


please share your configuration tips

by mikshaw on 11/26/2004 23:33, 51 messages, last message: 07/01/2005 04:01, 24720 views, last view: 05/18/2024 22:04

Maybe this has been discussed, though a search didn't come up with much and I have yet to read the 3000+ posts in the general thread (just finished the mapping thread after 3 days).

I've been playing with Cube for only a couple of months, and so far have only a few handy edits to autoexec.cfg:

// toggle weapon visibility
alias showweapon [
if (= $hudgun 0) [ hudgun 1 ] [ hudgun 0 ]
]

// switch to and fire rifle with middle mouse button.
// On release, switch back to another weapon.
bind MOUSE3 [
weapon 4 2 3;
attack;
onrelease [ weapon 1 2 4 ]
]

// Zoom in
alias myfov 90
bind E [
fov 20;
onrelease [ fov $myfov ]
]

// Apparently there is no undo for the delent command.
// This is a confirmation for delent.
bind KP_MINUS "showmenu delete"
newmenu delete
menuitem "delete entity" "delent"
menuitem "cancel" "echo"

   Board Index    Go to next 20 messagesGo to last 20 messages

#1: ..

by elky10 on 11/27/2004 00:29

I think those are great. Things like this really help a lot of people out, and make the game more fun for everyone.

I don't have anything of my own to add, I just figured out my own way of zooming in. Mine was a toggle, though, not a hold/release version.

reply to this message

#2: ..

by makkE on 11/27/2004 01:08

this is my favourite :

bind mouse2 [weapon 0;attack;onrelease [weapon 1 2 4]]

and these are very helpul while mapping:

bind kp7 "entproperty 0 1"
bind kp4 "entproperty 0 -1"
bind kp8 "entproperty 1 1"
bind kp5 "entproperty 1 -1"
bind kp9 "entproperty 2 1"
bind kp6 "entproperty 2 -1"
bind kp_minus "entproperty 3 1"
bind kp_plus "entproperty 3 -1"

note that kp4 and kp7 are usually upper walls texture change, I have them on up and downarrow...

Also useful:

bind f1 "servermenu"
bind f2 "disconnect"
bind f3 "updatefrommaster"
bind f4 "showmenu gamemode"
bind f5 "team red;echo team ist RED"
bind f6 "team blue;echo team ist BLUE"
bind f7 "saycommand /ffa "
bind f8 "saycommand /insta "
bind KP_MINUS "conskip 1"
bind KP_PLUS "conskip -1"
bind KP_MULTIPLY "conskip -1000"

bind KP_DIVIDE "connect 192.168.0.1"
bind KP0 "saycommand /password "
bind right "saycommand /connect "

reply to this message

#3: zoom

by A.T.O.M. on 11/28/2004 02:05

should you wish to adjust your sensitivity when zooming...

alias zoom [ sensitivity 10; fov 60; onrelease [ sensitivity 20; fov 120 ] ]

reply to this message

#4: ..

by makkE on 11/28/2004 13:32

Yes that´s important, though I personally don´t see a point in zooming in Cube...

reply to this message

#5: To show that i know some coding.

by jean pierre on 11/28/2004 17:45

I can do it a Zooming effect for Cube

bind RSHIFT [ fov 10; onrelease [ fov 100 ] ]

Cool Huh :)

reply to this message

#6: Re: ..

by Pxtl on 11/28/2004 19:06, refers to #4

Hell yes there's a point. Cube can support some freaking huge maps, and the sniper rifle makes for awesome fun on those if you've got a zoom set up.

reply to this message

#7: ..

by mikshaw on 11/28/2004 23:36

Each time you start cube, pick a random skin for each monster type....

I've downloaded a bunch of skins from polycount and made a few modifications to the included ones. I renamed all the skins in each monster's directory, including the original, to tmpXX.jpg (XX being a number, though it could be anything), and added the following to the cube_unix script (only works for the Linux client, but I'm sure something similar could be done for the bat file):

monsdir="${CUBE_DIR}/packages/models/monster"
for monster in bauul goblin hellpig knight ogro rat rhino slith; do
skinlist=`find "${monsdir}/${monster}/" -iname tmp*.jpg`
pic_array=($skinlist)
num_pics=`ls -l ${monsdir}/${monster}/tmp*.jpg | grep ^- | wc -l | tr -d ' '`
cp -f "${pic_array[$((RANDOM%num_pics))]}" "${monsdir}/${monster}/skin.jpg"
done

reply to this message

#8: Re: ..

by mikshaw on 11/29/2004 04:43, refers to #7

num_pics=`ls -l ${monsdir}/${monster}/tmp*.jpg | grep ^- | wc -l | tr -d ' '`

I just realized this line could be shortened to
num_pics=`ls ${monsdir}/${monster}/tmp*.jpg | wc -l`

It was carried over from another script, and I didn't think to modify it more than just changing paths.

reply to this message

#9: slow motion mode

by jen01 on 11/30/2004 01:01

i have a slow motion toggle not unlike the one in max pane.

bind LSHIFT [ if (= gamespeed 100) [ gamespeed 10; sensitivity 50 ] [ gamespeed 100; sensitivity 30 ] ]

all one line if possible.
one problem though, if you do it too many times or in a bad time, cube gets an error and closes.
i don't know why...

does any one know the numerical value of the guns?

meaning "weapon 1" is "$wep = 1"
and so on. i need it to make another custom edit. thanks

reply to this message

#10: ..

by makkE on 11/30/2004 01:19

jen01:
as stated in the manual, the gamespeed command isn´t really serious ("for entertainment purpose only"

reply to this message

#11: ..

by n00dle on 12/10/2004 06:14

The slow motion command didnt work for me

reply to this message

#12: ..

by n00dle on 12/10/2004 07:00

fixed it

bind LCTRL [ if (= gamespeed 10) [ gamespeed 100; sensitivity 50 ] [ gamespeed 10; sensitivity 30 ]
onrelease [ gamespeed 100 ]
]

Anyone know how to make it so that the "bullettime" is limited to about 3 secs

reply to this message

#13: ..

by e:n:i:g:m:a on 12/10/2004 15:29

I'm using a version of pushplay's config, extremely hacked up by me...

Here are my favorite parts:

alias sp [mode -2; map $arg1]

alias dmsp1 [mode -1; skill 1; map $arg1]
alias dmsp2 [mode -1; skill 2; map $arg1]
alias dmsp3 [mode -1; skill 3; map $arg1]
alias dmsp4 [mode -1; skill 4; map $arg1]
alias dmsp5 [mode -1; skill 5; map $arg1]
alias dmsp6 [mode -1; skill 6; map $arg1]
alias dmsp7 [mode -1; skill 7; map $arg1]
alias dmsp8 [mode -1; skill 8; map $arg1]
alias dmsp9 [mode -1; skill 9; map $arg1]
alias dmsp10 [mode -1; skill 10; map $arg1]

alias ffa [mode 0; map $arg1]
alias duel [mode 2; map $arg1]
alias tffa [mode 3; map $arg1]
alias insta [mode 4; map $arg1]
alias tinsta [mode 5; map $arg1]
alias eff [mode 6; map $arg1]
alias teff [mode 7; map $arg1]
alias iarena [mode 8; map $arg1]
alias tiarena [mode 9; map $arg1]
alias tarena [mode 10; map $arg1]
alias ttarena [mode 11; map $arg1]

// This allows you to type the mode before the map instead of using the mode command
// The number after dmsp is skill level

reply to this message

#14: Erm...

by tentus on 12/20/2004 03:55

This isn't so much of a config trick as it is an SP mapping trick. Perhaps other mappers could pick up on my idea-

I've made a level which intrensically require jumping to finish. However, to make the level different from everyday maps, I've put the following code in the cfg:

bind SPACE echo "Jumping Disallowed"

as well as one the other jumping keys. However, once you find the right trigger, the next code reallows jumping:

bind SPACE "jump"

Naturally, this isn't foolproof- if someone has specialized their keymap it'll really set things out of kilter. but it is a nifty little way of spicing up gameplay.

reply to this message

#15: ..

by tentus on 12/20/2004 03:56

oops, sorry, the second line should read-

alias level_trigger_# [ bind SPACE "jump ]

and remember you have to apply it to all the jumping keys.

reply to this message

#16: ..

by A.T.O.M. on 12/21/2004 02:35

i think messing with the clients config should be considered a no-no. that wouldn't have affected me because i don't use the default keys, or even the keyboard. however, if i did, i would've highly irritated. i'm sure there are better ways of making things interesting.

reply to this message

#17: Re: ..

by tentus on 12/21/2004 03:21, refers to #16

There'll always be better ways to make the level more interesting- but the fact is that this has never been done, and throws a fascinating monkey wrench into the level that the player must overcome, after being confronted with an abrupt and often frustrating change in his comfort zone.

Would there happen to be a way to bind "jump" to an echo? That'd solve the custom keymap issue.

reply to this message

#18: ..

by Drakker_ on 12/21/2004 13:13

How about just increasing the gravity by a lot?

reply to this message

#19: ..

by e:n:i:g:m:a on 01/23/2005 02:06

Here's some music config stuff...

you need to have an alias called musiclist that has all the songs you want to toggle thru...

musiclist is your list of music, cpt is your currently playing track,

--CODE--

// Sound Config
alias oldmvol 150 // 0-255 Music Volume alias, used for mute, CHANGE CONFIGURED MUSIC VOLUME HERE
alias oldsvol 150 // 0-255 Sound volume alias, used for mute, CHANGE CONFIGURED SOUND VOLUME HERE
alias muted 0 // 0-1 Mute on or off, don't change the variable directly, use "mute" command

musicvol $oldmvol Used for mute, DO NOT MODIFY
soundvol $oldsvol Used for mute, DO NOT MODIFY

alias mrandom [
//selects an item at random from the music list and then plays it
//usage: mrandom
alias cpt (rnd (listlen $musiclist));
at $musiclist $cpt;
music $s;
if (= $muted 0) [echo "Currently Playing: " $s]
]

alias mreload [
//reloads the currently playing song
//usage: mreload "arg1 =1 : dipslay current song | =0 : display nothing"
at $musiclist $cpt;
music $s;
if (= $arg1 1) [if (= $muted 0) [echo "Currently Playing: " $s]]
]

alias mtrackplus [
//Cycles through available sound tracks
//usage: mtrackplus That's pretty much it.
alias cpt (+ $cpt 1);
if (> $cpt (- $mlen 1)) [alias cpt 0]
at $musiclist $cpt;
music $s;
if (= $muted 0) [echo "Currently Playing: " $s]
]

alias mtrackminus [
//Cycles throught availble sound tracks backwards
//usage: mtrackminus That's pretty much it.
alias cpt (- $cpt 1);
if (< $cpt 0) [alias cpt (- $mlen 1)]
at $musiclist $cpt;
music $s;
if (= $muted 0) [echo "Currently Playing: " $s]
]

alias mute [
//Toggles a simple mute function
//usage: mute That's pretty much it.
if (= $muted 0) [
alias oldmvol $musicvol; // If mute is not true, mute sound
alias oldsvol $soundvol;
music;
musicvol 0; soundvol 0;
echo "Mute ON";
alias muted 1;] [
musicvol $oldmvol; // If mute is true, restore previous sound levels
soundvol $oldsvol;
echo "Mute OFF";
mreload 1;
alias muted 0;]
]

--CODE--

And here's my bindings (you can use them on any keys)

--CODE--
bind F1 "saycommand /savemap "; // Save map under a typed name
bind F2 "saycommand /savegame "; // Save game under a typed game
bind F3 "saycommand /loadgame "; // Load a previously saved game
bind F4 "savegame quicksave"; // Save a game under the name "quicksave"
bind F5 "loadgame quicksave"; // Load a game under the name "quicksave"
bind F6 "disconnect"; // Disconnect from the current server **
bind F7 "connect localhost"; // Connect to the local server **
bind F8 "mute"; // Mute all sound **
bind F9 "mreload"; // Reload the current track and print the title out **
bind F10 "mtrackminus"; // Change the current track back one in the playlist (see autolist.cfg) **
bind F11 "mtrackplus"; // Change the current track forward one in the playlist (see autolist.cfg) **
bind F12 "mrandom"; // change the current track to a random song in the playlist (see autolist.cfg) **

-- CODE--


reply to this message

#20: ..

by e:n:i:g:m:a on 01/23/2005 02:07

oops, lines wrapped...

VOLUME HERE is supposed to be in the comment,
and the ending ** is also supposed to be in the comment.

reply to this message

   Board Index    Go to next 20 messagesGo to last 20 messages


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
54040419 visitors requested 71821496 pages
page created in 0.040 seconds using 9 queries
hosted by Boost Digital