Forum

Hiding a model for the player, but everyone else sees it?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Hiding a model for the player, but everyone else sees it?

Postby DusterdooSmock » Wed Apr 06, 2011 5:03 pm

I'm working on something that spawns a model on the player, and i was wondering if there is a way to make it so that the player cannot see it, but other players can? I'm NOT using DP by the way.
DusterdooSmock
 
Posts: 170
Joined: Thu Aug 19, 2010 9:58 pm

Re: Hiding a model for the player, but everyone else sees it

Postby mh » Wed Apr 06, 2011 5:35 pm

DusterdooSmock wrote:I'm working on something that spawns a model on the player, and i was wondering if there is a way to make it so that the player cannot see it, but other players can? I'm NOT using DP by the way.

Now is probably not a good time to mention that DP_SV_NODRAWTOCLIENT can handle it?

No, you can't do it in a stock engine with a stock progs. You need a QC extension for it as QC has no control over what entities go to which clients - that's managed entirely by the engine.

Fortunately DP_SV_NODRAWTOCLIENT is incredibly easy to implement and it's even been tutorialized here. I've put it in RMQ already, for example.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Re: Hiding a model for the player, but everyone else sees it

Postby Nahuel » Wed Apr 06, 2011 7:27 pm

I saw something of that in
Tranfusion (a weapon appears above the player)
and in
Rune quake (a big head appears in the place of the head in the player.mdl)
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 492
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest