@D-Meat,
Try putting the variables in q_shared.h, should have access in all the modules. Good luck.
Search found 19 matches
- Tue Sep 24, 2013 4:13 pm
- Forum: Programming Discussion
- Topic: Looping square map
- Replies: 26
- Views: 20374
- Mon Jun 03, 2013 1:00 pm
- Forum: Programming Discussion
- Topic: Disable dedicated server cd-check
- Replies: 3
- Views: 4730
Re: Disable dedicated server cd-check
You can try the following :
set bot_enable 0
Should work but you can't add bots.
Although using the CD key might resolve the problem.
set bot_enable 0
Should work but you can't add bots.
Although using the CD key might resolve the problem.
- Fri May 10, 2013 8:18 pm
- Forum: Programming Discussion
- Topic: Key captures in cgame
- Replies: 2
- Views: 3214
Re: Key captures in cgame
Maybe adding :
Code: Select all
int key;
if ( cgs.gametype == GT_TEAM ) {
if (key == TEAM_RED)
trap_SendClientCommand( "team r" );
else
trap_SendClientCommand( "team b" );
} else
trap_SendClientCommand( "team p" );
- Fri May 03, 2013 5:25 pm
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Requesting scores
OK I solved it by replacing CG_PrintMiniScoreboard(); with trap_SendConsoleCommand( "miniscores" );
- Thu May 02, 2013 5:23 pm
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Requesting scores
OK I think this is my final question. Before Uglyfoot's help I also had the CG_PrintMiniScoreboard(); function print at intermission just under CG_DrawIntermission(); in the CG_Draw2D function in cg_draw.c file. Works just fine. Until last night there was a strange anomaly. I was testing in Windowed...
- Thu May 02, 2013 2:31 am
- Forum: Programming Discussion
- Topic: Debugging
- Replies: 0
- Views: 2392
Debugging
Hi everybody ! Recently a friend asked me if it was possible to debug QuakeC from Visual C++. He suggested it would help me testing my code, but he's unfamiliar with Quake and how to go about debugging from Visual C++ directly. I don't know how or if it's possible. He said you could set break points...
- Tue Apr 30, 2013 12:21 pm
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Requesting scores
@Eraser
Hehe it's ok I didn't take it as a complaint. When I made the thread I couldn't think of anything better, and was worried I wouldn't get any help.
Hehe it's ok I didn't take it as a complaint. When I made the thread I couldn't think of anything better, and was worried I wouldn't get any help.
- Tue Apr 30, 2013 1:02 am
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Q3 coding question
@Uglyfoot, WOW Big thanx ! Ugh coding while tired isn't a smart idea. I shoulda realized with qtrue / qfalse I need the qboolean =(. Really brilliant code. Love how you prevent looping of the scoreboard. I still had to add CG_ScoresDown_f(); cg.showScores = qfalse; before cg.showMiniBoard = qtrue; o...
- Sat Apr 27, 2013 9:32 pm
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Q3 coding question
Still not working. The key bind needs to be pressed twice. let me run down what I've done with your advice. I've added the following to local.h : int miniBoardRequestTime; int showMiniBoard; cg_draw.c in CG_DrawActiveFrame: if (( cg.miniBoardRequestTime + 2000 < cg.time ) && cg.showMiniBoard...
- Fri Apr 26, 2013 10:02 pm
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Q3 coding question
Sadly one you add the requestime the scores are received after printing the miniscoreboard. Searching the cgame files I found in local.h : // add commands to the local console as if they were typed in // for map changing, etc. The command is not executed immediately, // but will be executed in order...
- Fri Apr 26, 2013 8:56 pm
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Q3 coding question
I don't know why I have to press it twice either =(. I'll try your code. Every time I use the cg.miniBoardRequestTime it creates the two second delay. I'll let you know. Thank you.
- Fri Apr 26, 2013 1:40 pm
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Q3 coding question
Very close the following : CG_ScoresDown_f(); cg.showScores = qfalse; CG_PrintMiniScoreboard(); Will send the scores first not display the regular scoreboard. But the miniscoreboard isn't printed unless I press the key bind twice =(. Scores are received first. Even with cg.showScores = qfalse; comme...
- Sun Apr 21, 2013 8:42 pm
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Q3 coding question
Still no luck. Even putting trap_SendClientCommand( "score" ); just before printing the scores still doesn't receive the scores before printing. I think I may have to use cg.showScores = qtrue; but put a check in the scoreboard not to display so I receive the scores first. But I can't now ...
- Sat Apr 20, 2013 9:12 pm
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Q3 coding question
UglyFoot I was finally able to test your idea. Still didn't work =(. The scores are received after printing the scoreboard.
- Wed Apr 17, 2013 12:01 am
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Q3 coding question
I tried several times yesterday to get the qvms compiled with no luck. I appreciate your link, didn't work. Sadly my motherboard was supposed to arrived today but didn't 'cause the guy shipped yesterday. Gonna have to wait to test your suggestion. Ugh this is hell =(.
- Sat Apr 13, 2013 12:54 pm
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Q3 coding question
I'm dying to try this, but I can't on my laptop. Well I can't compile the source on Win7. I've googled and find out what to change to compile .qvms. I could make .dll but didn't test. Ugh I'm in hell without my computer.
- Wed Apr 10, 2013 9:10 pm
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Q3 coding question
OK big thanx. I wasn't thinking. I had the key bind in consoldcmds that triggered the CG_MiniScoreboard(); in the scoreboard file. So I wasn't always in CG_DrawActiveFrame or CG_Draw. My mobo burnt out Monday =(. I'm on my laptop and have to copy over my source etc. So I dunno when I can try. I trul...
- Mon Apr 08, 2013 11:55 pm
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Re: Q3 coding question
Thank very much for replying, I tried the following and it didn't work : if ( cg.scoresRequestTime + 2000 < cg.time ) { cg.lastScoresRequestTime = cg.scoresRequestTime; cg.scoresRequestTime = cg.time; if (cg.lastScoresRequestTime + 2000 < cg.time) trap_SendClientCommand( "score" ); } Or di...
- Sun Apr 07, 2013 7:48 pm
- Forum: Programming Discussion
- Topic: Requesting scores
- Replies: 26
- Views: 13583
Requesting scores
I'm a noobie coder. I love Q3 and attempting to make mods. My question has to do with sending and receiving the scores on the client side. I've made a mini scoreboard to be printed in console. Works with a bind or if it's typed into console. My problem has to do with receiving up to date scores. Che...