JediBantha Posted February 2, 2016 Posted February 2, 2016 I've looked at G_SetViewEntity and searched the project for anything relevant to "spectator", but I can't for the life of me figure out what I'm supposed to do for Far Sight's camera. Is there anything in the former that I missed? void G_SetViewEntity( gentity_t *self, gentity_t *viewEntity ) { if ( !self || !self->client || !viewEntity ) { return; } if ( self->s.number == 0 && cg.zoomMode ) { // yeah, it should really toggle them so it plays the end sound.... cg.zoomMode = 0; } if ( viewEntity->s.number == self->client->ps.viewEntity ) { return; } //clear old one first G_ClearViewEntity( self ); //set new one self->client->ps.viewEntity = viewEntity->s.number; viewEntity->svFlags |= SVF_BROADCAST; //remember current angles VectorCopy( self->client->ps.viewangles, self->pos4 ); if ( viewEntity->client ) { //vec3_t clear = {0,0,0}; CG_SetClientViewAngles( viewEntity->client->ps.viewangles, qtrue ); //SetClientViewAngle( self, viewEntity->client->ps.viewangles ); //SetClientViewAngle( viewEntity, clear ); /* VectorCopy( viewEntity->client->ps.viewangles, self->client->ps.viewangles ); for ( int i = 0; i < 3; i++ ) { self->client->ps.delta_angles[i] = viewEntity->client->ps.delta_angles[i]; } */ } if ( !self->s.number ) { CG_CenterPrint( "@SP_INGAME_EXIT_VIEW", SCREEN_HEIGHT * 0.95 ); } }
mrwonko Posted February 3, 2016 Posted February 3, 2016 Far sight? What? Could you please explain what you are trying to do?
Lancelot Posted February 3, 2016 Posted February 3, 2016 @@mrwonko From what I understood, he's trying to recreate the spectator camera from MP to get it work in SP.
JediBantha Posted February 6, 2016 Author Posted February 6, 2016 For those of you who've never played Mysteries of the Sith, Far Sight is a spectator cam that doesn't involve you dying.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now