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

Board Index

|
 |
#1131: weapon switching |
|
by Thalion
on 01/09/2003 17:56
|
 |
|
Will there ever be normal weapon switching in Cube? =)
I mean, I want my mouse wheel to change weapons to next/prev, not to some weird combinations. Also it would be nice to have shotgun always at 2 (and nothing else there!), minigun at 3 etc.
I've tried to write a script for this, but failed. So far the only thing that works is:
bind 2 "weapon 1 0"
bind 3 "weapon 2 0"
...
And no idea how to make the mousewheel work as usual. But maybe I'm just too dumb to code it? =) Help please!
Otherwise, it would be great to have console commands like "nextweap", "prevweap" and "selweap" in Cube, for those of us who are simply too used to traditional controls
reply to this message
|
 |
#1132: #1131: weapon switching |
|
by spentron@PP
on 01/09/2003 19:14
|
 |
|
"Will there ever be normal weapon switching in Cube? =)"
Dunno, is a rather strong influence to get to like it :) .. but I don't use the mousewheel for it.
"not to some weird combinations"
Your mission here is to find some combinations not so weird to you...
I like..
3 2 4 1 0 best gun (SP anyway)
1 4 2 3 least gun (conserve best ammo)
Those could be good on the wheel .. with optionally..
0 1 4 2 fist/least
2 4 1 0 best nonexplosive
It does seem like the following should work different:
bind 2 "weapon 2 2 0 0"
reply to this message
|
 |
#1133: Re: #1131: weapon switching |
|
by Piglet
on 01/09/2003 19:59, refers to #1132
|
 |
|
it should be fairly easy to script, email me if you want some help
reply to this message
|
 |
#1134: Re: #1131: weapon switching |
|
by Thalion
on 01/09/2003 20:38, refers to #1132
|
 |
|
You see, I don't want it to choose a "best" weapon for me - I want to select it _myself_! =) I just hate all these best-weapon "intellectual" switchers!
reply to this message
|
 |
#1135: Re: #1131: weapon switching |
|
by Thalion
on 01/09/2003 20:45, refers to #1133
|
 |
|
Piglet, I've tried. But I don't see how you can check from the script if you have some gun or not - and this is needed.
reply to this message
|
 |
#1136: Re: #1131: weapon switching |
|
by spentron@PP
on 01/09/2003 22:49
|
 |
|
A challenge, I can't help it... can't test it now but this should work:
bind 1 "specweap 1"
...etc...
alias specweap [
alias currweap $weapon
if (= $currweap $arg) [ ] [
weapon $arg1 0 1 4 2
alias chkweap (+ (= $weapon $arg1) (= $weapon $currweap) )
if (= $chkweap 0) [weapon $currweap 0 1 4 2]
alias chkweap (+ (= $weapon $arg1) (= $weapon $currweap) )
alias chkweap (+ $chkweap (= $weapon 0) )
if (= $chkweap 0) [weapon 0]
]
The script can only see if you have a specific weapon by trying it. This will flicker between weapons while searching for the best choice if there is no ammo for the selected weapon (I've tried to make sure it doesn't flicker to rockets, since 1 shot could occur). If it can't do the selected weapon, it then tries to go back to the previous weapon. If that has no ammo, then it finally gives up and selects fist (there is no way to keep with a weapon with no ammo). With mousewheel, can use a counter thingie on alias delta_game_0 to call specweap $desiredweap . This will fill in all clicks for weapons without ammo with the substitutes, for example going from 2 to 4 with no ammo 3, you'll be on 2, first click will give (flicker) 2, second click will be weapon 4. A seperate script, not using specweap, could be written to skip weapons without ammo (1 click to weapon 4 in the above).
Quite a mess ;) .
reply to this message
|
 |
#1137: RE: #1136 |
|
by spentron@home
on 01/10/2003 05:49
|
 |
|
There is no $weapon, so the previous does not work.
reply to this message
|
 |
#1138: Re: #1131: weapon switching |
|
by Aardappel
on 01/10/2003 10:52, refers to #1135
|
 |
|
I don't see your problem... if you want to select the shotgun so press "1", and you don't have any shotgun shells, what do you want it to do? do nothing and get you killed? I'd rather have it select another weapon which I have ammo for.
for the mousewheel, browsing through all weapons is inherently slower than the current default (2 weapon toggle on up, two other weapon toggle on down).
reply to this message
|
 |
#1139: Re: #1131: weapon switching |
|
by Thalion
on 01/10/2003 17:33, refers to #1138
|
 |
|
1) I want it to do what I ask it to do, nothing more. Yes, if there is no ammo, then better leave what I have already rather than switch to, for example, rocket launcher during a close fight in a tight corridor. I hate initiative. =)
2) Traditional mousewheel might be slower, but it is the way I've been playing for 3 years already. Reflexes are hard to change.
All in all, I'm not against this new system. I just think it would be better to provide traditional controls as well.
reply to this message
|
 |
#1140: Cube don\'t show letters/strings |
|
by krx
on 01/10/2003 20:46
|
 |
|
Hi all, I use linux 2.4.19 xfree 4.2.1 kde 3.0.5a with voodoo 3 2000. Cube (binary or compiled) doesn\'t show in the game the strings, instead of it white squares...
How to fix?
reply to this message
|
 |
#1141: Re: weapon switching |
|
by spentron@PP
on 01/10/2003 21:11
|
 |
|
The actual weapon switching is faster with the Cube arrangement but then you get to look and see what it gave you and try again if you really want something different. I guess it depends on what you consider faster, the hand or the eye. This arrangement isn't perfect but it's as good as any for me.
I could see it good being able to script something that, for example, absolutely, positively won't give the rocket launcher.
reply to this message
|
 |
#1142: Re: #1131: weapon switching |
|
by Piglet
on 01/10/2003 21:43, refers to #1135
|
 |
|
hmm i begin to see your problem, and i dont think that a 'true' mouswheel cycling script could be acheived however a pseduo, not quite right but close one might be possible (as in if you dont have ammo then your weapon dosent change and you need to flick it again to get the next weapon)
reply to this message
|
 |
#1143: Weponbeta ready !!! - vers 0.2 |
|
by Darthvim
on 01/10/2003 21:55
|
 |
|
got the beta 0.2 of the weapond finished, there are still things to do on them ..
(the best is i could still stay under 300 polygones :))
please test it and tell me your opinion, in this tread :) ok ?
-------------------------------
http://darthvim.covers.de/downloads/packages.zip
reply to this message
|
 |
#1144: .. |
|
by Darthvim
on 01/10/2003 21:56
|
 |
|
*weapons
reply to this message
|
 |
#1145: #1142: Re: weapon switching |
|
by spentron@PP
on 01/10/2003 22:36
|
 |
|
Presuming there's no way to return the current weapon, the only thing I can think of uses the mousewheel to increase the *likelihood* of predictable results. For example, if the mousewheel is in a position to try to select weapon 2, the next two preferences will be 0 or 4, not 1 or 3. So, when the wheel is then turned to 1 or 3 position from there, it will be less likelyhood of already being on 1 or 3 and switching to something else instead. However, you won't always know if you were at position 2 on the wheel just because weapon 2 is selected, because other positions can also result in weapon 2.
Another idea would be based on this and fist. Every other position would be fist, with the guns between those positions, and juggling of the backup values.
reply to this message
|
 |
#1146: Re: mouse trouble |
|
by netjiro
on 01/11/2003 22:05, refers to #1127
|
 |
|
I've found the problem, sort of...
Turning off Xinerama makes the problem go away.
I checked chromium mouse code, which works fine with xinerama and compared with cube mouse code...
Chromium reads the motion.x and motion.y (making rel internally with last pos) while cube reads motion.xrel and motion.yrel.
I'll check this with the SDL folks and see what's up
Thanks
Jimmy
reply to this message
|
 |
#1147: Big update |
|
by VerbalC
on 01/12/2003 07:09
|
 |
|
Large update with a whole lotta maps and stuff is up: http://cubestuff.hofv.net/ or http://cubestuff.cjb.net/
reply to this message
|
 |
#1148: A Q And A Comment |
|
by pushplay
on 01/12/2003 09:05
|
 |
|
Has anyone built a Fisheye Cube windows binary that they'd be willing to share?
Also, that Starport map is impressive. I look forward to seeing what Mike Doktor comes up with next.
reply to this message
|
 |
#1149: Re: A Q And A Comment |
|
by SysteM_H
on 01/12/2003 10:41, refers to #1148
|
 |
|
I'd also appreciate it if someone put up a windows fisheye binary to download... I tried compiling it myself, but my compiler is crap and won't run it.
and thanks so much for putting my maps on your site verbal, they really needed a new home; bravepages was definitely not working :)
reply to this message
|
 |
#1150: CubeStuff... |
|
by Thalion
on 01/12/2003 13:19
|
 |
|
not working for me. At all. Gives 404, and a lot of banners. Both IE and Opera. WTF?
reply to this message
|
 |
 |
|

Board Index

|
 |