rem --------------------------- NVG Sound -----------------------
Sound.addSound NVGOn
ObjectTemplate.soundFilename objects/weapons/handheld/defibrillator/sounds/reload_1p.wav
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.volume 0.45
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 0



rem -----------------------------------NVG OVERLAY----------------------------------------------------
hudBuilder.createPictureNode		IngameHud NVGScanlines 0 0 800 600
hudBuilder.setPictureNodeTexture 	 Ingame\Vehicles\Icons\Hud\Air\Attack\F15\LaserGuided\laserHudTvlines.tga
hudBuilder.setNodeColor		 	0 1 0 0.1
hudBuilder.setNodeShowVariable 		ReferenceCrossShow
hudBuilder.setNodeInTime 		1.5
hudBuilder.setNodeOutTime 		0.75
hudBuilder.addNodeAlphaShowEffect

hudBuilder.createPictureNode 		IngameHud NVGOverlay 0 0 800 600
hudBuilder.setPictureNodeTexture 	Ingame/NVG/nvg.tga
hudBuilder.setNodeColor 	        0 1 0 0.75
hudBuilder.setNodeShowVariable 		ReferenceCrossShow
hudBuilder.setNodeInTime 		1.5
hudBuilder.setNodeOutTime 		0.75
hudBuilder.addNodeAlphaShowEffect

rem ------------NVG Activate/Deactivate buttons -----------------
hudBuilder.createPictureNode 		MapButtons MapGTestBgx 294 539 124 17
hudBuilder.setPictureNodeTexture	Ingame/MiniMap/suicide_button.tga
hudBuilder.setNodeShowVariable 		SuicideButtonShow

hudBuilder.createButtonNode 		MapButtons GTestButtonx 294 539 124 17
hudBuilder.setButtonNodeTexture 	2 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeTexture 	1 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeConCmd        "hudItems.setBool ReferenceCrossShow 1" 0
hudBuilder.setButtonNodeConCmd		"sound.playSound rosePress" 0
hudBuilder.setButtonNodeConCmd		"sound.playSound NVGOn" 0
hudBuilder.setNodeShowVariable 		SuicideButtonShow

hudBuilder.createTextNode		MapButtons GTestLabelx 294 538 124 9
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 0
hudBuilder.setNodeColor 	      	1 0.792 0.043 1
hudBuilder.setTextNodeString 	      	"NV ON"
hudBuilder.setNodeShowVariable 		SuicideButtonShow

hudBuilder.createPictureNode 		MapButtons MapGTestBg 418 539 124 17
hudBuilder.setPictureNodeTexture	Ingame/MiniMap/suicide_button.tga
hudBuilder.setNodeShowVariable 		SuicideButtonShow

hudBuilder.createButtonNode 		MapButtons GTestButton 418 539 124 17
hudBuilder.setButtonNodeTexture 	2 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeTexture 	1 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeConCmd        "hudItems.setBool ReferenceCrossShow 0" 0
hudBuilder.setButtonNodeConCmd		"sound.playSound rosePress" 0
hudBuilder.setNodeShowVariable 		SuicideButtonShow

hudBuilder.createTextNode		MapButtons GTestLabel 418 538 124 9
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 0
hudBuilder.setNodeColor 	      	1 0.792 0.043 1
hudBuilder.setTextNodeString 	      	"NV OFF"
hudBuilder.setNodeShowVariable 		SuicideButtonShow


rem -----------------------------------Reference cross----------------------------------------------------

hudBuilder.createPictureNode 		IngameHud ReferenceCross 0 0 1 1
hudBuilder.setPictureNodeTexture 	Ingame/Crosshair/ReferenceCross.tga
hudBuilder.setNodeColor 	        1 1 1 0

