General Thread |
by Aardappel
on 01/05/2002 01:55, 15499 messages, last message: 12/08/2021 21:22, 8826911 views, last view: 12/09/2021 06:32 |
 |
|
for questions, announcements etc.
|
 |
|

Board Index

|
 |
#1996: edit |
|
by kerim
on 10/22/2003 10:06
|
 |
|
oh ;O
its clear ..
bind MOUSE2 [ fov 25; sensitivity 2; onrelease [ fov 110; sensitivity 6 ] ]
hudgun 0
this is zooming in and out!
clear !
whats the matter of the others ?
reply to this message
|
 |
#1997: Re: config /autoexec.cfg - problems |
|
by spentron-postcrash2
on 10/22/2003 15:11, refers to #1995
|
 |
|
... bind MOUSE2 [ fov 25; sensitivity 2; onrelease [ fov 110; sensitivity 6 ] ]
This is the only thing not in the regular config I see here. You can also zoom with Q + turning the mousewheel, but when you zoom in the mouse is still as sensitive as if you didn't zoom, which seems MORE sensitive and results in little advantage.
The flaw here is there's no central place to set sensitivity. If you set it the normal place only, that will be overridden as soon as you use the zoom.
... hudgun 0
doesn't display your gun
... bind Q ...
Q, Z, X control the mousewheel function, only Q is used in-game, rest is for editing.
... alias universaldelta ...
central function for different mousewheel functions. MOUSE4 and MOUSE5 are the scroll wheel and call universaldelta.
... if $editing [ alias s "edit" ] [ alias s "game" ]
sets variable "s" to the word edit if in edit mode, otherwise to the word "game."
... concatword delta _ $s _ $modifier
s
Builds a command word. If no QZX, modifier is 0, if game mode, $s is "game", so it makes "delta_game_0" which you see the command for a bit later, switches weapons. The part you wouldn't guess is that concatword puts the result in variable "s" always. The next line, which only has "s" in it, uses the word you just made as a command, which calls the "alias delta_[...]" commands that follow. "$arg1" in those is -1 or 1, which comes all the way from the "bind MOUSE4" and 5 commands.
See also the configs on my site ( http://www.intergate.com/~spentron/cube/cube.html ) which modify the original functions more completely.
reply to this message
|
 |
#1998: A Better Scope |
|
by pushplay
on 10/22/2003 17:25
|
 |
|
bind MOUSE2 "alias oldfov $fov; fov 50; sensitivity (- $sensitivity 1); onrelease [fov $oldfov; sensitivity (+ $sensitivity 1)]";
reply to this message
|
 |
#1999: Re: A Better Scope |
|
by spentron-postcrash2
on 10/23/2003 02:21, refers to #1998
|
 |
|
That's really not enough sensitivity change unless your normal sens is 2. Sensitivity needs to be scaled in direct proportion to zoom, based on reference fov.
Screw it, it's long, but here's my zoom code, without other additions.
Q+mousewheel is zoom, mousewheel button toggles between that setting and normal zoom. If you don't need the mousewheel weapons and don't want to press Q to zoom, delete "alias delta_game_0" etc. and change delta_game_1 to delta_game_0.
Since the normal "sensitivity" command no longer works right ingame, I added means to change it ingame by - and + letter keys (also, change invert by trying to set sens to 0).
---begins next line:---
// this part goes near the beginning and replaces "sensitivity" and "fov" lines:
alias msens 8 // set your preferred mouse sensitivity here
alias preffov 100 // set your preferred fov here
fov $preffov // sets starting fov to pref
// mouse3 is toggle normal zoom & sensitivity:
alias resetfov [if (= $fov $preffov) [ fov $zfov; sensitivity $zsensit] [ fov $preffov; sensitivity $msens ] ]
bind mouse3 resetfov
// (mousewheel during game is zoom)
alias msplus [ if (< $msens 200) [ alias msens (+ $msens 1); chgsens ]
if (= (* (div $sensitivity 11) 11) $sensitivity) [ echo ... use sensitivity 1 for invert ]
]
alias msminus [ if (< $msens 2) [ invmouse (- 1 $invmouse)
echo invmouse $invmouse
echo ... press minus to change invert ] [
alias msens (- $msens 1) ; chgsens ]
if (< $msens 2) [ echo ... press minus to change invert ]
]
alias chgsens [ echo mousesens $msens msinvert $invmouse
// recalc reference fov
alias cmpfov (div (* $preffov $msens) (+ $msens 1))
if (< $cmpfov 90) [ alias cmpfov 90 ] [ alias cmpfov (+ $cmpfov 1) ]
alias zsensit (div (* $msens $zfov) $cmpfov)
if (< $zsensit 1) [ alias zsensit 1 ]
sensitivity $zsensit
]
// mouse sens controls
bind equals msplus // +
bind minus msminus // -
// this part replaces end of config starting at "alias zfov 120":
sensitivity $msens // loads it
alias zsensit $msens
alias zfov $preffov
// calculation of reference fov to avoid changing sensitivity for
// small fov changes (since zoom can result in slight fov variations)
alias cmpfov (div (* $preffov $msens) (+ $msens 1))
if (< $cmpfov 90) [ alias cmpfov 90 ] [ alias cmpfov (+ $cmpfov 1) ] // min is 90
// and the wheel script ...
alias delta_game_1 [
alias zfov (+ $zfov (* $arg1 (div $zfov -5))) // -5 is stock step factor
if (< $zfov 10) [ alias zfov 10 ]
if (> $zfov 120) [ alias zfov 120 ]
fov $zfov
alias zsensit (div (* $msens $zfov) $cmpfov)
if (< $zsensit 1) [ alias zsensit 1 ]
sensitivity $zsensit
echo fov $zfov
]
reply to this message
|
 |
#2000: Re: A Better Scope |
|
by pushplay
on 10/23/2003 03:41, refers to #1999
|
 |
|
Changing the amount sensitivity changes by for that command is trivial. Your script looks awefully complex for such a simple idea.
reply to this message
|
 |
#2001: Yeah, I could have just said ... |
|
by spentron-postcrash2
on 10/23/2003 06:44
|
 |
|
bind MOUSE2 "alias oldfov $fov; alias oldsens $sensitivity; fov 50; sensitivity (div $sensitivity 2); onrelease [fov $oldfov; sensitivity $oldsens]";
I like the mousewheel zoom though, more just because it feels cool to use (basically you have a 3D mouse), although the momentary MOUSE2 zoom is maybe more useful.
reply to this message
|
 |
#2002: Re: Sinsky |
|
by sinsky
on 10/23/2003 16:29, refers to #1972
|
 |
|
I don't know who that person is.
reply to this message
|
 |
#2003: Re: .. |
|
by sinsky
on 10/23/2003 16:36, refers to #1981
|
 |
|
Binary distributions are always best, but you need to be a professional programmer to make things work, and stay that way at least for a while. I was thinking about ActiveX because of.. the opposite :) My idea is very simple, with batch files (or shortcuts) and command line parameters that are executed by links, and no complex programming involved. The more I think about this, the more I become convinced that I should separate the things I understand from the ones I don't, and make two versions. One of them will have all the features I want to include. The other version will be pure html 4.x browser compatible document with low interactivity (like a gamebook) and will be the core component of the version with interactive content.
reply to this message
|
 |
#2004: Mac OS X port? |
|
by Eric Dohner
on 10/23/2003 19:26
|
 |
|
Hey, all. I've just found about Cube through Inside Mac Games. The problem is this: the link for the OS X port doesn't seem to work. Anyone know where I can get it? If you do, -please- email me about it, with a subject of "Cube OS X." Thanks. :)
reply to this message
|
 |
#2005: 2001st post! |
|
by Pxtl
on 10/24/2003 18:13
|
 |
|
nt
reply to this message
|
 |
#2006: ??? |
|
by Pxtl
on 10/24/2003 18:15
|
 |
|
funny, it said 2000 in the main forum selector, but 2005 in here. What gives?
reply to this message
|
 |
#2007: Re: ??? |
|
by pushplay
on 10/24/2003 18:21, refers to #2006
|
 |
|
The ID of the posts doesn't match the number of posts because a few were deleted. The reason why isn't all that interesting.
reply to this message
|
 |
#2008: edit question |
|
by rusher
on 10/25/2003 20:38
|
 |
|
Hi all,i got some map edit question,how can i fill a pit with watter,and how u can make objects not so cubing(i reat the readme file about mapping but i saw maps with nice thing)
reply to this message
|
 |
#2009: .. |
|
by Dr. Zin
on 10/26/2003 06:26
|
 |
|
you need to set the water level to a point that it will fill the pit. use the console command "waterlevel X" (without quotes and with the level you want the water to be at {can be a negative value})
to make objects less cube-like you need to use corners and heightfields. corners are explained in the editing tutorial and the commands for using heightfields are given in the reference. you'll need to experiment with heightfeilds to get a real feel for them
good luck in your mapping :)
reply to this message
|
 |
#2010: Heightfield |
|
by pushplay
on 10/26/2003 08:04
|
 |
|
http://www.cursesandepithets.com/tutorials/heightfield/
reply to this message
|
 |
#2011: server? |
|
by rusher
on 10/28/2003 08:07
|
 |
|
how can i set up an internet server to test my maps?
reply to this message
|
 |
#2012: and... |
|
by rusher
on 10/28/2003 15:48
|
 |
|
i found how to set up a server but my next question is..my server is unreachable and in the dos window stais that 'i could ping you' so what to do about that?
reply to this message
|
 |
#2013: Re: and... |
|
by D.plomat
on 10/28/2003 18:59, refers to #2012
|
 |
|
you're probably trying to run it from behind a firewall/nat router/proxy or other (or even windows packet filtering or third party software-firewall).
What's your internet connection? network/machine config? OS? provider?
Make sure that ports 28765 and 28766 of your server machine are reachable from Internet if you want to host a public server. If you want a private server (most likely for tests), add -mblah option to the server command-line and ignore the warning in the console window.
reply to this message
|
 |
#2014: .. |
|
by rusher
on 10/31/2003 09:55
|
 |
|
and what do i need to to to make those ports free then?
reply to this message
|
 |
#2015: So |
|
by pushplay
on 11/01/2003 23:37
|
 |
|
What's the deal with cubeengine.com?
reply to this message
|
 |
 |
|

Board Index

|
 |