Added Borkel's Realistic Night Vision Goggles

This commit is contained in:
Rage 2025-01-12 06:48:15 -05:00
parent b8efad481d
commit d990cf381f
43 changed files with 208 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,3 @@
Place any textures you want to use as masks in MaskTextures, just make sure they are PNGs and have the name of the NVG mask you want to replace.
If you want to change the area where the NVG effect is applied, you have to change the textures in LensTextures
Each LensTexture has to be the same size as its corresponding MaskTexture

View File

@ -0,0 +1,28 @@
[General]
gameName=spt
modid=0
version=d2025.1.12.0
newestVersion=
category="1,"
nexusFileStatus=1
installationFile=BRNVG-1.5.9.zip
repository=Nexus
ignoredVersion=
comments=
notes=
nexusDescription=
url=
hasCustomURL=false
lastNexusQuery=
lastNexusUpdate=
nexusLastModified=2025-01-12T11:47:39Z
nexusCategory=0
converted=false
validated=false
color=@Variant(\0\0\0\x43\0\xff\xff\0\0\0\0\0\0\0\0)
tracked=0
[installedFiles]
1\modid=0
1\fileid=0
size=1

View File

@ -0,0 +1,34 @@
University of Illinois/NCSA Open Source License
Copyright (c) 2021 . All rights reserved.
Developed by: SPT-Aki
https://www.offline-tarkov.com
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal with the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimers in the
documentation and/or other materials provided with the distribution.
* Neither the names of , SPT-Aki nor the names of its
contributors may be used to endorse or promote products derived from
this Software without specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH
THE SOFTWARE.

View File

@ -0,0 +1,24 @@
{
"manifest": [
{
"key": "assets/content/items/equipment/customizable/gpnvg/nvg_l3_gpnvg-18_anvis.bundle",
"dependencyKeys": []
},
{
"key": "assets/content/items/equipment/nvg_pvs14/pvs14_textures.bundle",
"dependencyKeys": []
},
{
"key": "assets/content/items/equipment/customizable/pvs_14/nvg_pvs_14.bundle",
"dependencyKeys": []
},
{
"key": "assets/content/items/equipment/customizable/nvg_armasight_n-15/nvg_armasight_n-15.bundle",
"dependencyKeys": []
},
{
"key": "assets/content/items/equipment/customizable/nvg_alfa_pnv-10t/nvg_alfa_pnv-10t.bundle",
"dependencyKeys": []
}
]
}

View File

@ -0,0 +1 @@
place in "BRNVG_N-15Adapter\bundles\assets\content\items\equipment\customizable\gpnvg"

View File

@ -0,0 +1,24 @@
{
"name": "BRNVG - N-15 Adapter",
"version": "1.0.1",
"main": "src/ModularNVG.js",
"license": "CC BY-NC-SA 3.0",
"author": "Borkel",
"sptVersion": "~3.10",
"scripts": {
"setup": "npm i",
"build": "node ./packageBuild.ts"
},
"isBundleMod": true,
"devDependencies": {
"@types/node": "16.18.10",
"@typescript-eslint/eslint-plugin": "5.46.1",
"@typescript-eslint/parser": "5.46.1",
"bestzip": "2.2.1",
"eslint": "8.30.0",
"fs-extra": "11.1.0",
"glob": "8.0.3",
"tsyringe": "4.7.0",
"typescript": "4.9.4"
}
}

View File

@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class ModularNVG {
postDBLoad(container) {
const Logger = container.resolve("WinstonLogger");
const DB = container.resolve("DatabaseServer").getTables();
const database = DB.templates.items;
for (let file in database) {
let fileData = database[file];
//N-15 Adapter PNV-10T dovetail adapter
if (fileData._id === "5c0695860db834001b735461") {
fileData._props.Slots[0]._props.filters[0].Filter.push("5c066e3a0db834001b7353f0");
Logger.info("[SBNV]: Your N-15s can also be mounted on helmets now!");
}
}
}
}
module.exports = { mod: new ModularNVG };
//# sourceMappingURL=ModularNVG.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"ModularNVG.js","sourceRoot":"","sources":["ModularNVG.ts"],"names":[],"mappings":";;AAOA,MAAM,UAAU;IAEZ,UAAU,CAAC,SAA8B;QAErC,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAClD,MAAM,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,SAAS,EAAE,CAAC;QAC3D,MAAM,QAAQ,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC;QAEpC,KAAK,IAAI,IAAI,IAAI,QAAQ,EAAE,CAAC;YACxB,IAAI,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;YACvC,uCAAuC;YACvC,IAAI,QAAQ,CAAC,GAAG,KAAK,0BAA0B,EAAE,CAAC;gBACrC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;gBAC/F,MAAM,CAAC,IAAI,CAAC,wDAAwD,CAAC,CAAC;YAC9D,CAAC;QACL,CAAC;IACL,CAAC;CACJ;AACD,MAAM,CAAC,OAAO,GAAG,EAAC,GAAG,EAAE,IAAI,UAAU,EAAC,CAAC"}

View File

@ -0,0 +1,26 @@
import { DependencyContainer } from "tsyringe";
import {IPostDBLoadMod} from "@spt/models/external/IPostDBLoadMod";
import { DatabaseServer } from "@spt/servers/DatabaseServer";
import { ILogger } from "@spt/models/spt/utils/ILogger";
class ModularNVG implements IPostDBLoadMod
{
postDBLoad(container: DependencyContainer)
{
const Logger = container.resolve("WinstonLogger");
const DB = container.resolve("DatabaseServer").getTables();
const database = DB.templates.items;
for (let file in database) {
let fileData = database[file];
//N-15 Adapter PNV-10T dovetail adapter
if (fileData._id === "5c0695860db834001b735461") {
fileData._props.Slots[0]._props.filters[0].Filter.push("5c066e3a0db834001b7353f0");
Logger.info("[SBNV]: Your N-15s can also be mounted on helmets now!");
}
}
}
}
module.exports = {mod: new ModularNVG};

View File

@ -0,0 +1,25 @@
{
"compilerOptions": {
"allowJs": true,
"module": "CommonJS",
"target": "es2020",
"moduleResolution": "node",
"esModuleInterop": true,
"downlevelIteration": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"resolveJsonModule": true,
"outDir": "tmp",
"baseUrl": ".",
"paths": {
"@spt-aki/*": ["./types/*"]
}
},
"lib": [
"es2020"
],
"include": [
"src/*",
"src/**/*"
]
}

View File

@ -22,7 +22,6 @@
+SAIN - EpicRangeTimes Preset +SAIN - EpicRangeTimes Preset
+SAIN +SAIN
-AI & Combat Tweaks_separator -AI & Combat Tweaks_separator
+Weapon Customizer
+Little Drummer Boy +Little Drummer Boy
+RPG-7 +RPG-7
+SVD +SVD
@ -36,6 +35,7 @@
-New Weapons & Gear_separator -New Weapons & Gear_separator
+Ref SPT Friendly Quests +Ref SPT Friendly Quests
-New Traders & Tweaks_separator -New Traders & Tweaks_separator
+Weapon Customizer
+Unlock Arena Lockboxes +Unlock Arena Lockboxes
+Station Refueling +Station Refueling
+Quick Throw Grenades +Quick Throw Grenades
@ -77,6 +77,7 @@
+Quest Tracker +Quest Tracker
+Quick Move to Container +Quick Move to Container
+Stash Search +Stash Search
+Borkel's Realistic Night Vision Goggles
+WTT - Menu Overhaul +WTT - Menu Overhaul
+Raid Review +Raid Review
+Game Panel HUD +Game Panel HUD

View File

@ -1,3 +1,4 @@
# This file was automatically generated by Mod Organizer.
+Unsorted_separator +Unsorted_separator
-Version 1.25.4_separator -Version 1.25.4_separator
-Visceral Combat -Visceral Combat
@ -21,7 +22,6 @@
+SAIN - EpicRangeTimes Preset +SAIN - EpicRangeTimes Preset
+SAIN +SAIN
+AI & Combat Tweaks_separator +AI & Combat Tweaks_separator
-Weapon Customizer
+Little Drummer Boy +Little Drummer Boy
+RPG-7 +RPG-7
+SVD +SVD
@ -35,6 +35,7 @@
+New Weapons & Gear_separator +New Weapons & Gear_separator
+Ref SPT Friendly Quests +Ref SPT Friendly Quests
+New Traders & Tweaks_separator +New Traders & Tweaks_separator
-Weapon Customizer
+Unlock Arena Lockboxes +Unlock Arena Lockboxes
+Station Refueling +Station Refueling
-Quick Throw Grenades -Quick Throw Grenades
@ -76,6 +77,7 @@
+Quest Tracker +Quest Tracker
+Quick Move to Container +Quick Move to Container
+Stash Search +Stash Search
+Borkel's Realistic Night Vision Goggles
-WTT - Menu Overhaul -WTT - Menu Overhaul
+Raid Review +Raid Review
-Game Panel HUD -Game Panel HUD