forked from acemod/ACE3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
478 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
z\ace\addons\flashlights |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Extended_PostInit_EventHandlers { | ||
class ADDON { | ||
clientInit = QUOTE(call COMPILE_FILE(XEH_postInitClient) ); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class CfgSounds { | ||
class ACE_flashlights_flashlightClick { | ||
name = "ACE_flashlights_flashlightClick"; | ||
sound[] = {"\a3\sounds_f\weapons\Other\dry4.wss", 0.2, 2}; | ||
titles[] = {}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
class CfgVehicles { | ||
class Man; | ||
class CAManBase: Man { | ||
class ACE_SelfActions { | ||
//todo: add flashlight attach actions | ||
}; | ||
}; | ||
|
||
class Item_Base_F; | ||
|
||
class ACE_Flashlight_MX991Item: Item_Base_F { | ||
scope = 2; | ||
scopeCurator = 2; | ||
displayName = CSTRING(MX991_DisplayName); | ||
author = ECSTRING(common,ACETeam); | ||
vehicleClass = "WeaponAccessories"; | ||
class TransportItems { | ||
class ACE_Flashlight_MX991 { | ||
name = "ACE_Flashlight_MX991"; | ||
count = 1; | ||
}; | ||
}; | ||
}; | ||
|
||
class ACE_Flashlight_KSF1Item: Item_Base_F { | ||
scope = 2; | ||
scopeCurator = 2; | ||
displayName = CSTRING(KSF1_DisplayName); | ||
author = ECSTRING(common,ACETeam); | ||
vehicleClass = "WeaponAccessories"; | ||
class TransportItems { | ||
class ACE_Flashlight_KSF1 { | ||
name = "ACE_Flashlight_KSF1"; | ||
count = 1; | ||
}; | ||
}; | ||
}; | ||
|
||
class ACE_Flashlight_XL50Item: Item_Base_F { | ||
scope = 2; | ||
scopeCurator = 2; | ||
displayName = CSTRING(XL50_DisplayName); | ||
author = ECSTRING(common,ACETeam); | ||
vehicleClass = "WeaponAccessories"; | ||
class TransportItems { | ||
class ACE_Flashlight_XL50 { | ||
name = "ACE_Flashlight_XL50"; | ||
count = 1; | ||
}; | ||
}; | ||
}; | ||
|
||
class NATO_Box_Base; | ||
class EAST_Box_Base; | ||
class IND_Box_Base; | ||
class FIA_Box_Base_F; | ||
|
||
class Box_NATO_Support_F: NATO_Box_Base { | ||
class TransportItems { | ||
MACRO_ADDITEM(ACE_Flashlight_MX991,12); | ||
}; | ||
}; | ||
|
||
class Box_East_Support_F: EAST_Box_Base { | ||
class TransportItems { | ||
MACRO_ADDITEM(ACE_Flashlight_KSF1,12); | ||
}; | ||
}; | ||
|
||
class Box_IND_Support_F: IND_Box_Base { | ||
class TransportItems { | ||
MACRO_ADDITEM(ACE_Flashlight_XL50,12); | ||
}; | ||
}; | ||
|
||
class Box_FIA_Support_F: FIA_Box_Base_F { | ||
class TransportItems { | ||
MACRO_ADDITEM(ACE_Flashlight_MX991,12); | ||
}; | ||
}; | ||
|
||
class ACE_Box_Misc: Box_NATO_Support_F { | ||
class TransportItems { | ||
MACRO_ADDITEM(ACE_Flashlight_MX991,12); | ||
MACRO_ADDITEM(ACE_Flashlight_KSF1,12); | ||
MACRO_ADDITEM(ACE_Flashlight_XL50,12); | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
class CfgWeapons { | ||
|
||
class ItemCore; | ||
class ACE_ItemCore; | ||
class InventoryItem_Base_F; | ||
class InventoryFlashlightItem_Base_F; | ||
|
||
class acc_flashlight: ItemCore { | ||
class ItemInfo: InventoryFlashlightItem_Base_F { | ||
class Flashlight { | ||
ACE_Flashlight_Colour = "white"; | ||
ACE_Flashlight_Size = 2.75; | ||
}; | ||
}; | ||
}; | ||
|
||
class ACE_Flashlight_MX991: ACE_ItemCore { | ||
displayName = CSTRING(MX991_DisplayName); | ||
descriptionShort = CSTRING(MX991_Description); | ||
model = QUOTE(PATHTOF(data\MX_991.p3d)); | ||
picture = PATHTOF(UI\mx991_ca.paa); | ||
scope = 2; | ||
class ItemInfo: InventoryItem_Base_F { | ||
mass = 1; | ||
class FlashLight { | ||
ACE_Flashlight_Colour = "red"; | ||
ACE_Flashlight_Size = 1.75; | ||
}; | ||
}; | ||
}; | ||
|
||
class ACE_Flashlight_KSF1: ACE_ItemCore { | ||
displayName = CSTRING(KSF1_DisplayName); | ||
descriptionShort = CSTRING(KSF1_Description); | ||
model = QUOTE(PATHTOF(data\KSF_1.p3d)); | ||
picture = PATHTOF(UI\ksf1_ca.paa); | ||
scope = 2; | ||
class ItemInfo: InventoryItem_Base_F { | ||
mass = 1; | ||
class FlashLight { | ||
ACE_Flashlight_Colour = "red"; | ||
ACE_Flashlight_Size = 1.5; | ||
}; | ||
}; | ||
}; | ||
|
||
class ACE_Flashlight_XL50: ACE_ItemCore { | ||
displayName = CSTRING(XL50_DisplayName); | ||
descriptionShort = CSTRING(XL50_Description); | ||
model = QUOTE(PATHTOF(data\Maglight.p3d)); | ||
picture = PATHTOF(UI\xl50_ca.paa); | ||
scope = 2; | ||
class ItemInfo: InventoryItem_Base_F { | ||
mass = 1; | ||
class FlashLight { | ||
ACE_Flashlight_Colour = "white"; | ||
ACE_Flashlight_Size = 2.15; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ace_flashlights | ||
======= | ||
|
||
Flashlights for use on map and to attach to player. | ||
|
||
|
||
## Maintainers | ||
|
||
The people responsible for merging changes to this component or answering potential questions. | ||
|
||
- [voiper](https://github.com/voiperr) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "script_component.hpp" | ||
|
||
// Exit on Headless as well | ||
if !(hasInterface) exitWith {}; | ||
|
||
LOG(MSG_INIT); | ||
|
||
//todo: make flashlights attachable to players |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "script_component.hpp" | ||
|
||
class CfgPatches { | ||
class ADDON { | ||
units[] = {}; | ||
weapons[] = {"ACE_Flashlight_MX991", "ACE_Flashlight_KSF1", "ACE_Flashlight_XL50"}; | ||
requiredVersion = REQUIRED_VERSION; | ||
requiredAddons[] = {"ace_interaction"}; | ||
author[] = {"voiper"}; | ||
authorUrl = "https://github.com/voiperr/"; | ||
VERSION_CONFIG; | ||
}; | ||
}; | ||
|
||
#include "CfgEventHandlers.hpp" | ||
#include "CfgVehicles.hpp" | ||
#include "CfgWeapons.hpp" | ||
#include "CfgSounds.hpp" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
ambient[]={1,1,1,1}; | ||
diffuse[]={1,1,1,1}; | ||
forcedDiffuse[]={0,0,0,0}; | ||
emmisive[]={0,0,0,1}; | ||
specular[]={0.6,0.6,0.6,1}; //amount of glossiness - the higher the number, the higher the glossiness | ||
specularPower=700; //area of glossiness - the higher the number, the smaller the area | ||
PixelShaderID="Super"; | ||
VertexShaderID="Super"; | ||
|
||
class Stage1 { | ||
texture="z\ace\addons\flashlights\data\KSF_1_nohq.paa"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,0}; | ||
pos[]={0,0,0}; | ||
}; | ||
}; | ||
class Stage2 { | ||
texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,dt)"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,0}; | ||
pos[]={0,0,0}; | ||
}; | ||
}; | ||
class Stage3 { | ||
texture="#(argb,8,8,3)color(0,0,0,0,mc)"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,0}; | ||
pos[]={0,0,0}; | ||
}; | ||
}; | ||
class Stage4 { | ||
texture="#(argb,8,8,3)color(1,1,1,1,as)"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,1}; | ||
pos[]={0,0,1}; | ||
}; | ||
}; | ||
class Stage5 { | ||
texture="z\ace\addons\flashlights\data\KSF_1_smdi.paa"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,0}; | ||
pos[]={0,0,0}; | ||
}; | ||
}; | ||
class Stage6 { | ||
texture="#(ai,64,64,1)fresnel(4.7,1.2)"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,1}; | ||
pos[]={0,0,0}; | ||
}; | ||
}; | ||
class Stage7 { | ||
texture="a3\data_f\env_land_ca.paa"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,1}; | ||
pos[]={0,0,0}; | ||
}; | ||
}; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
ambient[]={1,1,1,1}; | ||
diffuse[]={1,1,1,1}; | ||
forcedDiffuse[]={0,0,0,0}; | ||
emmisive[]={0,0,0,1}; | ||
specular[]={0.6,0.6,0.6,1}; //amount of glossiness - the higher the number, the higher the glossiness | ||
specularPower=700; //area of glossiness - the higher the number, the smaller the area | ||
PixelShaderID="Super"; | ||
VertexShaderID="Super"; | ||
|
||
class Stage1 { | ||
texture="z\ace\addons\flashlights\data\MX_991_nohq.paa"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,0}; | ||
pos[]={0,0,0}; | ||
}; | ||
}; | ||
class Stage2 { | ||
texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,dt)"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,0}; | ||
pos[]={0,0,0}; | ||
}; | ||
}; | ||
class Stage3 { | ||
texture="#(argb,8,8,3)color(0,0,0,0,mc)"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,0}; | ||
pos[]={0,0,0}; | ||
}; | ||
}; | ||
class Stage4 { | ||
texture="#(argb,8,8,3)color(1,1,1,1,as)"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,1}; | ||
pos[]={0,0,1}; | ||
}; | ||
}; | ||
class Stage5 { | ||
texture="#(rgb,1,1,1)color(0.2,0.2,1,1)"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,0}; | ||
pos[]={0,0,0}; | ||
}; | ||
}; | ||
class Stage6 { | ||
texture="#(ai,64,64,1)fresnel(4.7,1.2)"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,1}; | ||
pos[]={0,0,0}; | ||
}; | ||
}; | ||
class Stage7 { | ||
texture="a3\data_f\env_land_ca.paa"; | ||
uvSource="tex"; | ||
class uvTransform { | ||
aside[]={1,0,0}; | ||
up[]={0,1,0}; | ||
dir[]={0,0,1}; | ||
pos[]={0,0,0}; | ||
}; | ||
}; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.