View previous topic :: View next topic |
Author |
Message |
Mexicouger

Joined: 01 May 2010 Posts: 129
|
Posted: Thu Jun 24, 2010 9:24 pm Post subject: Centerprint A netname if they are in View? |
|
|
I have a pretty good grip on the code to make When a bot or another player is in view, But I have no idea How to tell the code if there is a Player in my view, Like a slimmed view.(middle of screen).
I am hoping If I get help on this, that It will teach me something new about qc. |
|
Back to top |
|
 |
ceriux

Joined: 06 Sep 2008 Posts: 968 Location: Florida, USA
|
Posted: Thu Jun 24, 2010 10:02 pm Post subject: |
|
|
i forget where but there is a tutorial for this. _________________ QuakeDB - Quake ModDB Group |
|
Back to top |
|
 |
Ghost_Fang
Joined: 12 Nov 2009 Posts: 162
|
Posted: Thu Jun 24, 2010 10:12 pm Post subject: |
|
|
wouldn't it just have to do with traceline and if the entity in the traceline is true, just centerprint the other.netname? Because doesnt the quake engine know the difference when an entity and the world are in the traceline at a given time? Or does it only calculate that when you fire or something? |
|
Back to top |
|
 |
ceriux

Joined: 06 Sep 2008 Posts: 968 Location: Florida, USA
|
Posted: Thu Jun 24, 2010 10:15 pm Post subject: |
|
|
thats pretty much it. but im not sure if centerprint will print to everone i dont remember havnt been around qc in a while =( worth a try check it out. try your different prints if you get issues when testing. _________________ QuakeDB - Quake ModDB Group |
|
Back to top |
|
 |
Baker

Joined: 14 Mar 2006 Posts: 1538
|
|
Back to top |
|
 |
|