Kleines Update
Hier meine kleine Erweiterung des Scripts um NvGoogles ganz aus dem Spiel zu verbannen und jede Brille die man will, als FullNightvision zu nutzen
Code: NICHT MEIN SCRIPT NUR DIE ERWEITERUNG IST VON MIR !
//Author: soulkobk (soulkobk.blogspot.com)
//Edited by Kuchenplatte.com
Code
Schritt 1
Öffnet den Ordner /Core in deiner Mission und fügt ganz unten in
der Init.sqf folgendes genau so ein!
[] execVM "just_life\fullScreenNightVision.sqf"; //hier !!!!!!
diag_log "----------------------------------------------------------------------------------------------------";
diag_log format [" End of Altis Life Client Init :: Total Execution Time %1 seconds ",(diag_tickTime - _timeStamp)];
diag_log "----------------------------------------------------------------------------------------------------";
und ändert den namen just_life zu euren speicher Ort des Scripts
Alles anzeigen
Code
Schritt 2
Erstellt bei euren Wunschspeicherort den ihr oben Festgelegt hab die Datei = fullScreenNightVision.sqf
Code: fullScreenNightVision.sqf
/*
//Author: soulkobk (soulkobk.blogspot.com)
//Edited by Kuchenplatte.com
//Edited with sunglas/normal goggles option by Yiertex
//Einfach im Array unten die gewünschten Brillen einfügen
//
// "G_Lady_Dark", <---- komma nicht vergessen
// "G_Lady_Blue" <---- beim letzen eintrag kein komma
// ];
//
*/
if (!hasInterface) exitWith {};
var_fullScreenNightVision =
[
"G_Combat_Goggles_tna_F",
"G_Shades_Black",
"G_Shades_Blue",
"G_Shades_Green",
"G_Shades_Red",
"G_Sport_Blackred",
"G_Sport_BlackWhite",
"G_Sport_Blackyellow",
"G_Sport_Checkered",
"G_Sport_Greenblack",
"G_Sport_Red",
"G_Lowprofile",
"G_Squares",
"G_Aviator",
"G_Combat",
"G_Lady_Mirror",
"G_Lady_Dark",
"G_Lady_Blue"
];
fn_fullScreenNightVision = {
params ["_displayCode","_keyCode","_isShift","_isCtrl","_isAlt"];
_handled = false;
if (_keyCode in actionKeys "NightVision") then
{
switch var_fullScreenNightVisionMode do
{
case 0: {
if (cameraView != "GUNNER") then
{
if (goggles player in var_fullScreenNightVision) then
{
player action ["nvGoggles", player];
var_fullScreenNightVisionMode = currentVisionMode player;
_handled = true;
};
};
};
case 1: {
if (cameraView != "GUNNER") then
{
if (goggles player in var_fullScreenNightVision) then
{
player action ["nvGogglesOff", player];
var_fullScreenNightVisionMode = currentVisionMode player;
_handled = true;
};
};
};
};
};
_handled
};
waitUntil {alive player};
player addEventHandler ["GetOutMan", {
params ["_player", "_role", "_vehicle", "_turret"];
switch var_fullScreenNightVisionMode do
{
case 1: {
if (goggles _player in var_fullScreenNightVision) then
{
_player action ["nvGoggles", _player];
var_fullScreenNightVisionMode = currentVisionMode _player;
};
};
case 0: {
if (goggles _player in var_fullScreenNightVision) then
{
_player action ["nvGogglesOff", _player];
var_fullScreenNightVisionMode = currentVisionMode _player;
};
};
};
}];
var_fullScreenNightVisionMode = currentVisionMode player;
waitUntil {!(isNull (findDisplay 46))};
(findDisplay 46) displayAddEventHandler ["KeyDown", "_this call fn_fullScreenNightVision;"];
Alles anzeigen
Gerne kann das auch oben in das Tutorial als zusatz eingebaut werden.
Dirk_Kloppe = Yiertex [nur damit keine missverständnisse entstehen wegen Script klau]