Advertisement

Author Topic: help! camera css  (Read 533 times)

0 Members and 1 Guest are viewing this topic.

deathcore2013

  • ProClub Members
  • *
  • Posts: 32
  • Karma: +0/-0
  • Proclub Community member ( tinkkis5 my fan)
  • Referrals: 1
    • View Profile
    • https://www.youtube.com/user/deathcore2013
help! camera css
« on: November 14, 2016, 06:13:03 AM »
hello ;D mirror, spy cam, map cam, who can provide more information code?)
Code: [Select]
void royalPub->Enhancedaim::draw_rear_view_mirror(void)
{
try
{
if( chod.get_local_player() != NULL )
{
vrect_t rect;
rect.x = GUI(REARVIEWMIRROR)->x + (BORDER_SIZE >> 1);
rect.y = GUI(REARVIEWMIRROR)->y + TITTLE_BAR_SIZE;
rect.width = GUI(REARVIEWMIRROR)->w - BORDER_SIZE;
rect.height = GUI(REARVIEWMIRROR)->h - TITTLE_BAR_SIZE;
rect.pnext = NULL;

CViewSetup myView;
royalPub->Enhancedaim::GetPlayerView(myView);//IBaseClientDLL*

CViewSetup mirrorView = myView;
mirrorView.width = rect.width;
mirrorView.height = rect.height;
mirrorView.x = rect.x;
mirrorView.y = rect.y;
mirrorView.origin = emanager.get_local_player()->GetEyesPos();
mirrorView.angles = emanager.get_local_player()->GetEyesAngle();
mirrorView.angles.y += 180;
mirrorView.fov = 90.0f;
royalPub->Enhancedaim::RenderViewEx(mirrorView,0,0);//IViewRender* thanks for the offset cyrus now its working :D - chod
}
}
catch (...)
{
royalPub->Enhancedaim::add_log("draw_rear_view_mirror(void) error...");
}
This method does not work for me ((


« Last Edit: November 14, 2016, 06:19:32 AM by fghjfghj »
 

tinkkis5

Re: help! camera css
« Reply #1 on: March 22, 2017, 08:03:51 PM »
Maybe you should learn how to paste correctly next time.  ;)
Pasting it directly to "your" source is retarded and you know that too.
 

deathcore2013

  • ProClub Members
  • *
  • Posts: 32
  • Karma: +0/-0
  • Proclub Community member ( tinkkis5 my fan)
  • Referrals: 1
    • View Profile
    • https://www.youtube.com/user/deathcore2013
Re: help! camera css
« Reply #2 on: March 23, 2017, 04:36:14 AM »
Die lol ;)
 

tinkkis5

Re: help! camera css
« Reply #3 on: March 24, 2017, 05:39:45 PM »
Mad because i'm right? Well, keep thinking you are a good coder. It'll sure get your rep up.  ;) ;) ;)
 

deathcore2013

  • ProClub Members
  • *
  • Posts: 32
  • Karma: +0/-0
  • Proclub Community member ( tinkkis5 my fan)
  • Referrals: 1
    • View Profile
    • https://www.youtube.com/user/deathcore2013
Re: help! camera css
« Reply #4 on: March 25, 2017, 05:30:07 AM »
hahaha real baby ;D
 

Mini-Moof

Re: help! camera css
« Reply #5 on: March 25, 2017, 01:42:35 PM »
Chill