Forum

print commands

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

print commands

Postby redrum » Mon Jul 30, 2007 2:08 am

What's the difference between sprint and bprint?

Also, what's the difference between PRINT_LOW, PRINT_MEDIUM, PRINT_HIGH?
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby Sajt » Mon Jul 30, 2007 2:29 am

sprint prints to one client, bprint (broadcast print) prints to all clients

as for the other stuff, they're QW-only, some priority thing. I'll just make up a guess answer. HIGH probably gets sent reliably, LOW probably won't be resent if the packet is lost. And the clients can probably filter messages by type, so if you don't want your screen spammed by LOW messages, you can filter them out.
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Re: print commands

Postby Teiman » Mon Jul 30, 2007 10:46 am

I must add that PRINT_LOW, PRINT_MEDIUM, PRINT_HIGH is also usefull to drive n00bs like me to madness.
Teiman
 
Posts: 309
Joined: Sun Jun 03, 2007 9:39 am

Postby redrum » Mon Jul 30, 2007 4:11 pm

Thank you!
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby FrikaC » Mon Jul 30, 2007 6:55 pm

Sajt: All are sent reliably, but! Clients can set their message level to filter out what messages they see...This actually saves on bandwidth, the server doesn't actually send the prints if the messagelevel is known to be above the print priority.
FrikaC
Site Admin
 
Posts: 1026
Joined: Fri Oct 08, 2004 11:19 pm

Postby Spike » Tue Jul 31, 2007 7:01 pm

those prints are filtered based on the client's 'msg' cvar/userinfo.
set msg 0 and you get all the annoying spam.
0:pickups (you got the nails! yay! woot!)
1:deaths (haha you died!)
2:game ends (rofl, you got pwned again!)
3:chat (rofl at you loosing yet another game!)

ahh, msg 4. peace.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby FrikaC » Tue Jul 31, 2007 7:26 pm

I forgot what the var is called. Add to wiki plz.
FrikaC
Site Admin
 
Posts: 1026
Joined: Fri Oct 08, 2004 11:19 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest