once again asking for help...
Moderator: InsideQC Admins
21 posts
• Page 1 of 2 • 1, 2
once again asking for help...
well i wanted to add in a menu for choosing classes... and i got through the entire code again but with 1 error and i cant seem to find the cause of it.... it has to be something i dont understand at my current skill level...
anyways... this is the tutorial i used
http://www.inside3d.com/showtutorial.php?id=133
the line of code it screws up on is, line 1253 in weapons.qc. where it says "Second Impulse" it says its an unknown command....
anyways... this is the tutorial i used
http://www.inside3d.com/showtutorial.php?id=133
the line of code it screws up on is, line 1253 in weapons.qc. where it says "Second Impulse" it says its an unknown command....
-

ceriux - Posts: 2223
- Joined: Sat Sep 06, 2008 3:30 pm
- Location: Indiana, USA
Move the SecondImpulse function to above ImpulseCommands.
It's because it doesn't know what SecondImpulse is yet when you're trying to call it within ImpulseCommands, it hasn't been defined.
It's because it doesn't know what SecondImpulse is yet when you're trying to call it within ImpulseCommands, it hasn't been defined.
Benjamin Darling
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
- Electro
- Posts: 312
- Joined: Wed Dec 29, 2004 11:25 pm
- Location: Brisbane, Australia
awsome i figured it had something to do with that. i knew that was the problem... but i didnt know exactly what to do to fix it. im learning more an more. Thank you for your help making a mental note about problems like this 
-

ceriux - Posts: 2223
- Joined: Sat Sep 06, 2008 3:30 pm
- Location: Indiana, USA
c_none needs to be set to 1, make sure you're doing this in putclientinserver like the tutorial says.
Calling the GetClass function is what will be printing the stuff on the screen. Make sure that's being called in PlayerPostThink.
I don't see anything else immediately noticeable that would cause it to not work.
It is pretty sloppy menu code though, things can be done a lot nicer. I learned how to do menus from FrikaC. It's probably worth taking a good look at his waypoint manager code in Frikbot if you can't manage to get this one working.
Calling the GetClass function is what will be printing the stuff on the screen. Make sure that's being called in PlayerPostThink.
I don't see anything else immediately noticeable that would cause it to not work.
It is pretty sloppy menu code though, things can be done a lot nicer. I learned how to do menus from FrikaC. It's probably worth taking a good look at his waypoint manager code in Frikbot if you can't manage to get this one working.
Benjamin Darling
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
- Electro
- Posts: 312
- Joined: Wed Dec 29, 2004 11:25 pm
- Location: Brisbane, Australia
Hmm nope, should be printing stuff in the middle of your screen and accepting impulses 1 and 2 only. Until you do one of those, then the menu disappears.
Benjamin Darling
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
- Electro
- Posts: 312
- Joined: Wed Dec 29, 2004 11:25 pm
- Location: Brisbane, Australia
if i upload my files somewhere would you be willing to look over the specifics? the tutorial was really easy to understand so it didnt take long to do other than the 1 part where it was on the bottem and needed to be on top...
-

ceriux - Posts: 2223
- Joined: Sat Sep 06, 2008 3:30 pm
- Location: Indiana, USA
Yep! go for it
Benjamin Darling
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
- Electro
- Posts: 312
- Joined: Wed Dec 29, 2004 11:25 pm
- Location: Brisbane, Australia
thnx here ya go. all mod files i have are in there... not really much of anything... just me messing around tryin to learn somethin.
http://files.filefront.com/mod1zip/;123 ... einfo.html
http://files.filefront.com/mod1zip/;123 ... einfo.html
-

ceriux - Posts: 2223
- Joined: Sat Sep 06, 2008 3:30 pm
- Location: Indiana, USA
I'm at work at the moment, so i won't be able to check it until tonight.
Will get back to you tomorrow.
Will get back to you tomorrow.
Benjamin Darling
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
- Electro
- Posts: 312
- Joined: Wed Dec 29, 2004 11:25 pm
- Location: Brisbane, Australia
Sorry have been really busy. Finally got a chance to check it out. Didn't work when I ran it with your progs.dat
I put frikgui.exe in the QC directory and compiled with that and loaded it up again. It works perfectly. No code changes at all
So yeah, need to sort out what you're compiling with or something, as that seems to be what's causing the problem(s).
I put frikgui.exe in the QC directory and compiled with that and loaded it up again. It works perfectly. No code changes at all
So yeah, need to sort out what you're compiling with or something, as that seems to be what's causing the problem(s).
Benjamin Darling
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
- Electro
- Posts: 312
- Joined: Wed Dec 29, 2004 11:25 pm
- Location: Brisbane, Australia
21 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest