Raised This Month: $ Target: $400
 0% 

Rotato Player Camera


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 05-09-2011 , 15:02   Rotato Player Camera
Reply With Quote #1

How can I rotate a camera? I've seen a ConnorMcLeod's plugin but I don't understand it lol
The plugin: Migraine

Can someone explain me the plugin or just how to rotate the camera?
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
fireattack
Senior Member
Join Date: Jul 2008
Old 05-09-2011 , 15:40   Re: Rotato Player Camera
Reply With Quote #2

PHP Code:
#define SetUserReversed(%1)        g_bMigraineux |= 1<<(%1 & 31)
#define ClearUserReversed(%1)        g_bMigraineux &= ~( 1<<(%1 & 31) )
#define HasUserMigraine(%1)        g_bMigraineux &  1<<(%1 & 31) 
Check the code related to that defines.

Last edited by fireattack; 05-09-2011 at 15:43.
fireattack is offline
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 05-09-2011 , 16:09   Re: Rotato Player Camera
Reply With Quote #3

That is what I don't understand lol
What is |= ? And the 1<<(%1 & 31) ?
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 05-09-2011 , 16:15   Re: Rotato Player Camera
Reply With Quote #4

That has nothing to do with rotating camera. Thos 3 defines are used to flag players to see whether the effect is enabled or disabled for them.

What you should look at is probably
PHP Code:
set_pev(idpev_punchanglevecPunchAngle
__________________
Impossible is Nothing
Sylwester is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-09-2011 , 20:34   Re: Rotato Player Camera
Reply With Quote #5

Quote:
Originally Posted by kotinha View Post
That is what I don't understand lol
What is |= ? And the 1<<(%1 & 31) ?
You really don't need to understand them because you can just use them like functions as they are.

Anyways,

Code:
variable |= anothervariable
is the same as

Code:
variable = variable | anothervariable
same as +=, -=, *=, and /=.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode