weaps script in sticky doesnt appear to work

Locked
shiznit
Posts: 1244
Joined: Fri Jul 01, 2005 4:39 pm

Post by shiznit »

try just impulse6?
dzjepp
Posts: 12839
Joined: Wed Mar 28, 2001 8:00 am

Post by dzjepp »

Try looking in quake4config.cfg and see a mention of it. Or mebbe do /cvarlist or /bindlist in console.
R00k
Posts: 15188
Joined: Mon Dec 18, 2000 8:00 am

Post by R00k »

I haven't been able to get any console commands to work yet. I can't get it to show the framerate.

I finally figured out I have to put the "+set com_allowConsole 1" in the game shortcut in order to use the console, as it won't work in the config. I wonder how many game settings are like that. FOV is apparently like that as well.

Also, I'm not getting "TAB" completion in the console - is anybody else?
Nologic
Posts: 121
Joined: Thu Aug 05, 2004 7:00 am

Post by Nologic »

Well does

bind 1 "_impulse6"

work?

If so then try

bind 1 "say hi;_impulse6"

If that works then try

set test ""
bind 1 "vstr test;_impulse6"

If that works then try

set test "_impulse6"
bind 1 "vstr test"

Report back with results please. :)
Nologic
Posts: 121
Joined: Thu Aug 05, 2004 7:00 am

Post by Nologic »

What does "listbinds" produce by chance...I don't have the game as of yet...so I'm a little slow getting info. :)

On a odd note...maybe try some of the old weapon select commands from Q3 and Q2.
D'Artagnan
Posts: 468
Joined: Sun May 14, 2000 7:00 am

Post by D'Artagnan »

Why don't you make the change directly into youre q4config.cfg...
and i don't think its [set] for the command line, but [seta] just like quake 3
[url=http://powerquebec.forumpro.fr/][color=red][b]Fast and furious_[/b][/color]That's what it's all about...[/url][img]http://pages.infinit.net/oldman/rank14.gif[/img]
D'Artagnan
Posts: 468
Joined: Sun May 14, 2000 7:00 am

Post by D'Artagnan »

ok
[url=http://powerquebec.forumpro.fr/][color=red][b]Fast and furious_[/b][/color]That's what it's all about...[/url][img]http://pages.infinit.net/oldman/rank14.gif[/img]
User avatar
DooMer
Posts: 3068
Joined: Thu Dec 23, 1999 8:00 am

Post by DooMer »

the command is "bind x toggle _impulseX"
R00k
Posts: 15188
Joined: Mon Dec 18, 2000 8:00 am

Post by R00k »

riddla wrote:Direct binding via console doesnt appear to work. I tried

bind KP_5 _impulse2

no dice.

here's the condump errors from when I try that script:

Code: Select all

Unknown command '_impulse3'
Unknown command '_impulse7'
Unknown command '_impulse2'
Unknown command '_impulse1'
Unknown command '_impulse5'
Unknown command '_impulse6'
Unknown command '_impulse4'
Unknown command '_impulse0'
Unknown command '_impulse3'
]condump wtf.txt
Dumped console text to wtf.txt

This is a stupid question, but have you tried changing the " marks around? Like instead of

bind KP_5 _impulse2

using

bind "KP_5" "_impulse2"

:confused:
R00k
Posts: 15188
Joined: Mon Dec 18, 2000 8:00 am

Post by R00k »

DooMer wrote:the command is "bind x toggle _impulseX"
Oh.
Nologic
Posts: 121
Joined: Thu Aug 05, 2004 7:00 am

Post by Nologic »

So DooMer the following works correct?

bind x "toggle _impulse1"

What about?

bind x "toggle _impulse1 _impulse2"

Or

bind x "toggle _impulse 1 2"

And if we can have multiple values per bind (hopefully) then can we do a last weapon type binds?

bind x "toggle _impulse 1 2 3 4 5 6 7"

bind z "toggle _impulse 7 6 5 4 3 2 1"
User avatar
DooMer
Posts: 3068
Joined: Thu Dec 23, 1999 8:00 am

Post by DooMer »

Yeah, I tried rgoers script exactly, and it doesnt seem to be working. Even with toggle it cant find the impulses
Nologic
Posts: 121
Joined: Thu Aug 05, 2004 7:00 am

Post by Nologic »

hmm well going off of what I just seen in the config of some russian player it seems this is likely the correct way of going about it.

Hehe provided that what I saw posted is correct.

bind 0 "impulse 0"
bind 1 "impulse 1"
bind 2 "impulse 2"
bind 3 "impulse 3"
bind 4 "impulse 4"
bind 5 "impulse 5"
bind 6 "impulse 6"
bind 7 "impulse 7"
bind 8 "impulse 8"


OR


set ua_wg1_01 "set ua_wg1 vstr ua_wg1_02; impulse 7" // Railgun
set ua_wg1_02 "set ua_wg1 vstr ua_wg1_01; impulse 2" // Shotgun
vstr ua_wg1_02 // Default

set ua_wg2_01 "set ua_wg2 vstr ua_wg2_02; impulse 6" // Rocket Launcher
set ua_wg2_02 "set ua_wg2 vstr ua_wg2_01; impulse 4" // Grenade Launcher
vstr ua_wg2_02 // Default

set ua_wg3_01 "set ua_wg3 vstr ua_wg3_02; impulse 3" // Hyper Blaster
set ua_wg3_02 "set ua_wg3 vstr ua_wg3_01; impulse 8" // Lightning Gun
vstr ua_wg3_02 // Default

set ua_wg4_01 "set ua_wg4 vstr ua_wg4_02; impulse 1" // Machine Gun
set ua_wg4_02 "set ua_wg4 vstr ua_wg4_01; impulse 5" // Nailgun
vstr ua_wg4_02 // Default

bind c "vstr ua_wg1" // Railgun & Shotgun
bind f "vstr ua_wg2" // Grenade & Rocket Launcher
bind r "vstr ua_wg3" // Lightning & Hyper Blaster
bind e "vstr ua_wg4" // Machine Gun & Nailgun
bind q "impulse 0" // Gauntlet


OR


bind c "toggle impulse 2 7" // Railgun & Shotgun
bind f "toggle impulse 4 6" // Grenade & Rocket Launcher
bind r "toggle impulse 3 8" // Lightning & Hyper Blaster
bind e "toggle impulse 1 5" // Machine Gun & Nailgun
bind q "impulse 0" // Gauntlet


OR MAYBE


bind x "toggle impulse 1 2 3 4 5 6 7"
bind z "toggle impulse 7 6 5 4 3 2 1"


Any ways guys let me know how things turn out.
rgoer
Posts: 798
Joined: Sun Aug 17, 2003 7:00 am

Post by rgoer »

yeah the toggles I use in my config aren't actually toggling impulses, they are toggling various bullshit things (chats, player names, etc), so they work

_impulse commands can only be fired off by being bound directly to a key--using vstr to fire off an alias that contains _impulse6 is the same as entering _impulse6 at the console, which doesn't work. The only way impulses work is by hitting the key they are bound to (I have no idea why id set it up this way in Doom).

So, basically, until I figure something else out, weapon toggles look to be unavailable. I'll think of something though.
Locked