weaponswitch and console

Discuss Nexuiz gameplay here.

Moderators: Nexuiz Moderators, Moderators

weaponswitch and console

Postby fronten » Fri Aug 15, 2008 5:38 pm

hello,

i just wanted to create a script to have one button to change weapon to laser and with another keypress switch back to previous weapon..

the problem is.. i am using it inconsistently - so the state is sometimes on or off. i need some check if the weapon in use is already laser or not. (i failed at this simple IF-Then-statement)

something like

on keypress
if
weapon NOT laser then weapon = laser
else
weapon = previous weapon

--

something else:
how can i access the console without loading a map?
as for now it is not possible to enter the console straight from loading up nexuiz.
fronten
Advanced member
 
Posts: 96
Joined: Thu Apr 20, 2006 9:52 pm

Postby torus » Fri Aug 15, 2008 5:50 pm

Well, the laser right-click automatically is set to revert to the last weapon. All you need to do is bind the laser to your desired key.
Image
torus
Forum addon
 
Posts: 1341
Joined: Sun Dec 24, 2006 6:59 am
Location: USA

Postby tZork » Fri Aug 15, 2008 6:27 pm

Console at any time: shift+escape
back to last weapon: bind x "weaplast"
HOF:
<Diablo> the nex is a "game modification"
<Diablo> quake1 never had a weapon like that.
<Vordreller> there was no need for anything over 4GB untill Vista came along
<Samua>]Idea: Fix it? :D
<Samua>Lies, that only applies to other people.
tZork
tZite Admin
 
Posts: 1337
Joined: Tue Feb 28, 2006 6:16 pm
Location: Halfway to somwhere else

Postby fronten » Sat Aug 16, 2008 10:30 am

well.. problem solved ;)
thanx!
fronten
Advanced member
 
Posts: 96
Joined: Thu Apr 20, 2006 9:52 pm


Return to Nexuiz - Gameplay

Who is online

Users browsing this forum: No registered users and 1 guest

cron