Author: code34
Author Website:

Requirements: No addons required

Version: 0.1

Short description: Object Oriented Camera is a class (object oriented) that permits to create dynamic windows box containing a camera view.

Support the author:

100% of your donation goes directly to the author of this content!
Date: 2014-12-23 16:32


Comments: (0)
Rating:



 

Object Oriented Camera (OO_Camera)

by
code34


Description:
Object Oriented Camera is a class (object oriented) that permits to create dynamic windows box containing a camera view. This class uses Object Oriented SQF scripting of Naught and doesn't require any addons, or any insertions in description.ext


Features:
create/destroy a camera in a dynamic windows box (r2w)
create/destroy a camera as a textured object (r2o)
Attach / Detach this cam to an object
Different camera view preset as goprocam


Installation / Usage:
put the "oo_camera.sqf" and the "oop.h" files in your mission directory
put this code into your mission init.sqf
call compilefinal preprocessFileLineNumbers "oo_camera.sqf";

See example mission in directory: init.sqf

Examples:
call compilefinal preprocessFileLineNumbers "oo_camera.sqf";
	sleep 4;

	_cam = ["new", []] call OO_CAMERA;
	["backCamera", player] spawn _cam;
	sleep 1;
	["r2w", [-0.4, 0.8,0.3,0.4]] call _cam;

	_cam2 = ["new", []] call OO_CAMERA;
	["topCamera", player] spawn _cam2;
	["r2w", [0, 0.8,0.3,0.4]] call _cam2;

	_cam3 = ["new", []] call OO_CAMERA;
	["goProCamera", player] spawn _cam3;
	["r2w", [0.4, 0.8,0.3,0.4]] call _cam3;

	_cam4 = ["new", []] call OO_CAMERA;
	["uavCamera", player] spawn _cam4;
	["r2w", [0.8, 0.8,0.3,0.4]] call _cam4;	

	sleep 3;
	["delete", _cam] call OO_CAMERA;

	_cam5 = ["new", []] call OO_CAMERA;
	["goProCamera", player] spawn _cam5;
	["r2o", toto] call _cam5;
	["setPipEffect", [2]] call _cam5;


Media:



Armaholic.com has its own Youtube channel where we will cover the Community made releases.
Subscribe to the Armaholic.com Youtube channel


Notes:
GitHub: https://github.com/code34/oo_camera.altis
Reference: http://forums.bistudio.com/showthread.php?167980-Object-Oriented-SQF-Scripting-and-Compiling


License / Disclaimer:
Under Gpl, you can share, modify, distribute this script but don't remove the licence and the name of the original author.

Author: code34
Copyright (C) 2014-2015 Nicolas BOITEUX

CLASS OO_CAMERA - Pesistent Data World

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.


Changelog:
v0.1
- first release


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: Camera,   Dynamic,   Object