Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[cfg]superlaser
10-19-2008, 11:08 AM
Post: #1
[cfg]superlaser
I made a script, and it is supposed to enable laser writing, but each time i try it, it says :"unknown command -super_laser"

Code:
bind l "+super_laser"

alias  +super_laser ""

alias -super_laser "super_laser_off"

alias superlaser_off "g_balance_laser_primary_speed 9000 ;  
g_balance_laser_primary_refire 0.7 ; g_balance_laser_primary_lifetime 30 ;
g_balance_laser_primary_animtime 0.3 ; g_balance_laser_primary_damage 35 ;  alias -superlaser super_laser_on"

alias super_laser_on "g_balance_laser_primary_speed 0 ; g_balance_laser_primary_refire  
0.0005 ; g_balance_laser_primary_lifetime 5000 ; g_balance_laser_primary_animtime  
0.00002 ; g_balance_laser_primary_damage 0 ; alias -super_laser super_laser_off"
Aristotle Wrote:We make war that we may live in peace.
Herbert Hoover Wrote:Older men declare war. But it's the youth who must fight and die!
Barack Obama Wrote:We are one people, all of us pledging allegiance to the stars and stripes, all of us defending the United States of America.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-19-2008, 11:23 AM (This post was last modified: 10-19-2008 11:24 AM by pavlvs.)
Post: #2
RE: [cfg]superlaser
A tiny typo...

should be

alias superlaser_off "g_balance_laser_primary_speed 9000 ;
g_balance_laser_primary_refire 0.7 ; g_balance_laser_primary_lifetime 30 ;
g_balance_laser_primary_animtime 0.3 ; g_balance_laser_primary_damage 35 ; [color=#FF0000][b] alias -super_laser[/b][/color] super_laser_on"
[b][url=http://www.nexuizninjaz.com/forum/member.php?action=profile&uid=14]-[color=#0000D0]p[/color][color=#00AA00]a[/color][color=#2255FF]v[/color][color=#BB00CC]l[/color][color=#CCCC00]v[/color][color=#FF0000]s[/color]-[/url][/b]: Find me at #nexuiz and #nexuiz.ninjaz on QuakeNet IRC!
[font=Verdana][size=large][color=#0000AA][url=http://www.nexuizninjaz.com/forum/showthread.php?tid=62]The NinjaSpeed Challenge![/url][/color][/size][size=x-small]
[url=http://www.nexuizninjaz.com/forum/member.php?action=profile&uid=14][color=#0000D0]p[/color][color=#00AA00]a[/color][color=#2255FF]v[/color][color=#BB00CC]l[/color][color=#CCCC00]v[/color][color=#FF0000]s[/color][/url]: 13 Records
[url=http://www.nexuizninjaz.com/forum/member.php?action=profile&uid=1][color=white]-[/color][color=#FF0000]z[/color][color=white]-[/color][/url]: 9 Records
[url=http://www.nexuizninjaz.com/forum/member.php?action=profile&uid=19]Mr. Bougo[/url]: 4 Records
[url=http://www.nexuizninjaz.com/forum/member.php?action=profile&uid=6][color=blue][BOT][/color][color=red]M[/color][color=gray]irio[/color] [color=red]<D.J.>[/color][/url]: 2 Records
[color=green]Long[/color][color=red]*[/color][color=yellow]Shot[/color]: 1 Record
[/size][/font]
Find all posts by this user
Quote this message in a reply
10-19-2008, 11:54 AM
Post: #3
RE: [cfg]superlaser
OK, now it says: " unknown command super_laser_off"
But thank you pavlvs, it has already helped me further.
Aristotle Wrote:We make war that we may live in peace.
Herbert Hoover Wrote:Older men declare war. But it's the youth who must fight and die!
Barack Obama Wrote:We are one people, all of us pledging allegiance to the stars and stripes, all of us defending the United States of America.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-19-2008, 12:12 PM
Post: #4
RE: [cfg]superlaser
Medjay Penguin Wrote:OK, now it says: " unknown command super_laser_off"
But thank you pavlvs, it has already helped me further.

for the same underscore error:

alias superlaser_off
vs
alias super_laser_off
Inspire your neighbor, they'll inspire you back.

[url=http://maps.nexuizninjaz.com]maps.nn[/url] | [url=http://pics.nexuizninjaz.com]pics.nn[/url] | [url=http://chat.nexuizninjaz.com]chat.nn[/url] | [url=http://toolz.nexuizninjaz.com/cvar]2.5 cvar browser[/url]
Visit this user's website Find all posts by this user
Quote this message in a reply
10-19-2008, 12:25 PM (This post was last modified: 10-19-2008 01:02 PM by Medjay Penguin.)
Post: #5
RE: [cfg]superlaser
Code:
bind l "toggle super_laser"

alias  +super_laser "super_laser_on"
alias -super_laser "super_laser_off"

alias super_laser_on "g_balance_laser_primary_speed 0 ; g_balance_laser_primary_refire 0.0005 ; g_balance_laser_primary_lifetime 5000 ; g_balance_laser_primary_animtime 0.00002 ; g_balance_laser_primary_damage 0 ; alias -super_laser super_laser_on ; set chase_up 48 ; set chase_back 128 ; chase_active 1"

alias super_laser_off "g_balance_laser_primary_speed 9000 ; g_balance_laser_primary_refire 0.7 ; g_balance_laser_primary_lifetime 30 ; g_balance_laser_primary_animtime 0.3 ; g_balance_laser_primary_damage 35 ;  alias +super_laser super_laser_off ; set chase_up 48 ; set chase_back 128 ; chase_active 0"
its the updated version, but still wrong,...
now it says: "ERROR: Cvar super_laser not found"
Aristotle Wrote:We make war that we may live in peace.
Herbert Hoover Wrote:Older men declare war. But it's the youth who must fight and die!
Barack Obama Wrote:We are one people, all of us pledging allegiance to the stars and stripes, all of us defending the United States of America.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-26-2008, 08:58 AM
Post: #6
RE: [cfg]superlaser
Btw: I have made a new kind of bind: in the screen left under when you open nexuiz:
make a new bind that is called: <What you want>
and for the press button: +jump ; +forward
and for the realease: -jump ; -forward

This will lead to auto jumping: on some servers with a good jumping enabled (like in lazy dog), not too fast, you will have an easier and perfect jump...
Aristotle Wrote:We make war that we may live in peace.
Herbert Hoover Wrote:Older men declare war. But it's the youth who must fight and die!
Barack Obama Wrote:We are one people, all of us pledging allegiance to the stars and stripes, all of us defending the United States of America.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-28-2008, 01:14 PM
Post: #7
RE: [cfg]superlaser
Why are you binding to a +alias ?

Why the toggle? Toggle is supposed to switch a cvar's value from 0 to 1 and 1 to 0 (if you only use a cvar as argument)

If you want to make a toggle alias, do it that way:

Code:
bind l super_laser

alias super_laser super_laser_on

alias super_laser_on "g_balance_laser_primary_speed 0 ; g_balance_laser_primary_refire 0.0005 ; g_balance_laser_primary_lifetime 5000 ; g_balance_laser_primary_animtime 0.00002 ; g_balance_laser_primary_damage 0 ; alias -super_laser super_laser_on ; set chase_up 48 ; set chase_back 128 ; chase_active 1; alias super_laser super_laser_off"

alias super_laser_off "g_balance_laser_primary_speed 9000 ; g_balance_laser_primary_refire 0.7 ; g_balance_laser_primary_lifetime 30 ; g_balance_laser_primary_animtime 0.3 ; g_balance_laser_primary_damage 35 ;  alias +super_laser super_laser_off ; set chase_up 48 ; set chase_back 128 ; chase_active 0; alias super_laser super_laser_on"
[url=http://www.nexuizninjaz.com/forum/showthread.php?tid=113&pid=477#pid477]Mr. Bougo, blah blah blah blah Dec 2007.[/url]
Find all posts by this user
Quote this message in a reply
10-28-2008, 01:56 PM
Post: #8
RE: [cfg]superlaser
Yeah, but does it also turns the superlaser off when you try it?
Aristotle Wrote:We make war that we may live in peace.
Herbert Hoover Wrote:Older men declare war. But it's the youth who must fight and die!
Barack Obama Wrote:We are one people, all of us pledging allegiance to the stars and stripes, all of us defending the United States of America.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


Contact Us | Nexuiz Ninjaz Home | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication