Author: Blakeace
Author Website:

Requirements: No addons required

Version: 0.1.1 Alpha
Signed: Yes, serverkey included

Short description: A module that allows drivers of cars and trucks to use mirrors giving a more realistic experience in those roles.

Date: 2011-10-18 16:44


Comments: (0)
Rating:



 



Blake's Mirrors - Module

by
blakeace


Description:
Ok same background as my carrier ops module, RL means these things are just gathering dust on my harddrive. So better to allow the community access and give the dedicated server testing a go rather than waiting for me to find the time and energy to organise it. Hence the Alpha status. A real early version of this worked fine in MP so hopefully that is a good start.

A module that allows drivers of cars and trucks to use mirrors giving a more realistic experience in those roles, rather than having to rely on the outer body experience to view behind when reversing.
Note it hasn't had any real dedicated server testing, only on my test dedicated server. Hence the alpha release for public testing. Feedback welcomed especially results on dedicated servers. Hopefully A3 will make this redundant.

The placement is determined by a generic formula applied to the bounding box of the vehicles. As such one size doesn't always fit. See below to override the default placement if required.


Features:
The ability to look backwards emulating the side mirrors of a vehicle. Being able to still control the vehicle while viewing backwards. NVG compatible, though you will get the over exposure effect each time you change view.


Installation:
As we always recommend use modfolders to seperate the custom content from the official game content to prevent problems. For different ways to set up your modfolders and use them please visit our FAQ.

When you are using the Steam version you can find a Steam mod installation and activation FAQ here.


Included .pbo files:
blakes_mirrors.pbo


Usage:
In the editor place a Blake's Mirrors module onto the map. All editor placed cars and trucks are now enabled.
If the player starts in the vehicle, functionality is created through the getin event handler requiring the player to dismount and get in the vehicle again.

Keys:
Drivers Mirror - Hold breath (Default right mouse button).
Passengers mirror - Gear (Default G button).


Place the module on the map to enable all editor placed objects.
To enable cars and trucks created by scripts, use the example below as a guide to enable the mirror functionality in them.
In the example the module has been named mirrorModule:
_car = createVehicle ["HMMWV", getMarkerPos "carmarker", [], 0, "NONE"];
waituntil {(mirrorModule getvariable "MIRRORS_initDone")};
[[_car]] CALL Fcn_Blakes_Mirrors;
To give another type of vehicle mirrors you could use below in the vehicles initilization area. The below example is ideal for emulating a reversing camera on the back of the LAV-25. The setvariable command can be used to customise where the mirrors are located, if the default values are not suitable.
spwnrtn1 = this spawn
{
waituntil {(mirrorModule getvariable "MIRRORS_initDone")};
_this setvariable ["mirrorpos",[0,-3.1,-0.2],true];
sleep 0.01;
[[_this]] CALL Fcn_Blakes_Mirrors;
};
The setvariable command can be used to customise where the mirrors are located, if the default values are not suitable.
Place below in a vehicles initilization area to customise the position. This is for a LAV-25 reversing camera:
this setvariable ["mirrorpos",[0,-3.1,-0.2],true];


Media:



Changelog:
v0.1.1
- A quick fix where I hadn't limited the getin handler to the player allowing the addon to possibly run multiple times


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: No tags