Inside3D!
     

print commands

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Mon Jul 30, 2007 2:08 am    Post subject: print commands Reply with quote

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 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Mon Jul 30, 2007 2:29 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Teiman



Joined: 03 Jun 2007
Posts: 309

PostPosted: Mon Jul 30, 2007 10:46 am    Post subject: Re: print commands Reply with quote

I must add that PRINT_LOW, PRINT_MEDIUM, PRINT_HIGH is also usefull to drive n00bs like me to madness.
Back to top
View user's profile Send private message
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Mon Jul 30, 2007 4:11 pm    Post subject: Reply with quote

Thank you!
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
FrikaC
Site Admin


Joined: 08 Oct 2004
Posts: 947

PostPosted: Mon Jul 30, 2007 6:55 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Tue Jul 31, 2007 7:01 pm    Post subject: Reply with quote

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.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
FrikaC
Site Admin


Joined: 08 Oct 2004
Posts: 947

PostPosted: Tue Jul 31, 2007 7:26 pm    Post subject: Reply with quote

I forgot what the var is called. Add to wiki plz.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group