Author: Spooner
Author Website:

Requirements: No addons required

Version: 0.1.1

Short description:
Date: 2008-07-06 08:43
Submitted by: Spooner


Comments: (0)
Rating:



 



SPON_viewVector
by
Spooner


Description:
Calculates the direction that the local player (camera) is looking in. That is, it always points at the centre of the screen, regardless of floating zone, weapon, scope, vehicle, freelook, rear-view mirror, etc.

The view direction is distinct from getDir, which is the direction of overall facing, or from weaponDirection, which is the way the weapon is pointing.

I needed this for myself and thought someone else might find it useful. It is functionality that I've wanted in the game for a long time, but I had an epiphany today and got it worked out! Haven't tested it thoroughly yet, but it seems to work perfectly.

Parameters:
None.

Returns:
Normal vector of current camera view [3D position array [X, Y, Z]].


Version:
v0.1.1
- slightly different packaging

v0.1.0
- first release


Forum topic:
-OFPEC.com




Download from FTP #1:
SPON viewVector
Download from FTP #2:
SPON viewVector
Download from FTP #3:
Size : 1 MB   Downloaded : 261 times     Report broken download link



Tags: No tags