-
Notifications
You must be signed in to change notification settings - Fork 752
Irritants (Smoke) - New Component #11220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
BrettMayson
wants to merge
31
commits into
acemod:master
Choose a base branch
from
BrettMayson:smoke
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 28 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
4cb8671
smoke: new component
BrettMayson 307aa65
headers
BrettMayson c4ea58b
Apply suggestions from code review
BrettMayson e9e58b4
Apply suggestion from @PabstMirror
BrettMayson 7dcb19e
compat: aegis
BrettMayson 8a958b5
compat: cup
BrettMayson 838ab18
fix default breathing protection
BrettMayson 1fbd5cd
fix var assignment
BrettMayson 28bdebc
use 500
BrettMayson db09e41
compat: ws
BrettMayson c7a5c5f
don't check inside vehicles
BrettMayson 1fd6f2c
Apply suggestions from code review
BrettMayson 2a60198
don't seVariable every run
BrettMayson 3ad6102
reduce pfh frequency, fix detection in tight spaces
BrettMayson 7ff70cc
5 times per second
BrettMayson 729c5a4
don't apply in tanks
BrettMayson a3b0064
Merge remote-tracking branch 'upstream/master' into smoke
BrettMayson 9d26334
better vehicle handling
BrettMayson f6cb458
full protection allows recovery
BrettMayson dc53019
reuse code, various tweaks
BrettMayson 33001b1
improve vehicle logic
BrettMayson 7399a22
change helicopter config
BrettMayson 276a584
add back sky check
BrettMayson 98feb6b
Update addons/smoke/functions/fnc_isOpenSeat.sqf
BrettMayson 4c3feef
remove false positive when going prone in some environments
BrettMayson 58a346a
Apply suggestions from code review
BrettMayson 3c0a940
Apply suggestions from code review
BrettMayson 2759bea
Apply suggestion from @PabstMirror
PabstMirror fbc8503
Disable visual effects in spectator/zeus
PabstMirror 9952aee
smoke -> irritants
BrettMayson a8a538c
Update addons/compat_cup_units/compat_cup_smoke/CfgGlasses.hpp
BrettMayson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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,41 @@ | ||
| class CfgGlasses { | ||
| class None; | ||
|
|
||
| class G_Combat_Goggles_blk_F: None { | ||
| ace_smoke_eyes_protection = 1; | ||
| }; | ||
|
|
||
| class G_Balaclava_light_blk_F: None { | ||
| ace_smoke_breathing_protection = 0.4; | ||
| }; | ||
| class G_Balaclava_light_G_blk_F: G_Balaclava_light_blk_F { | ||
| ace_smoke_eyes_protection = 1; | ||
| }; | ||
| class G_Balaclava_light_eaf_F; | ||
| class G_Balaclava_light_G_eaf_F: G_Balaclava_light_eaf_F { | ||
| ace_smoke_eyes_protection = 1; | ||
| }; | ||
| class G_Balaclava_light_mtp_F; | ||
| class G_Balaclava_light_G_mtp_F: G_Balaclava_light_mtp_F { | ||
| ace_smoke_eyes_protection = 1; | ||
| }; | ||
| class G_Balaclava_light_tropic_F; | ||
| class G_Balaclava_light_G_tropic_F: G_Balaclava_light_tropic_F { | ||
| ace_smoke_eyes_protection = 1; | ||
| }; | ||
| class G_Balaclava_light_wdl_F; | ||
| class G_Balaclava_light_G_wdl_F: G_Balaclava_light_wdl_F { | ||
| ace_smoke_eyes_protection = 1; | ||
| }; | ||
|
|
||
| class G_Balaclava_TI_blk_F: None { | ||
| ace_smoke_breathing_protection = 0.4; | ||
| }; | ||
| class G_Balaclava_TI_G_blk_F: G_Balaclava_TI_blk_F { | ||
| ace_smoke_eyes_protection = 1; | ||
| }; | ||
| class G_Balaclava_TI_tna_F; | ||
| class G_Balaclava_TI_G_tna_F: G_Balaclava_TI_tna_F { | ||
| ace_smoke_eyes_protection = 1; | ||
| }; | ||
| }; |
This file contains hidden or 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,24 @@ | ||
| #include "script_component.hpp" | ||
|
|
||
| class CfgPatches { | ||
| class SUBADDON { | ||
| name = COMPONENT_NAME; | ||
| units[] = {}; | ||
| weapons[] = {}; | ||
| requiredVersion = REQUIRED_VERSION; | ||
| requiredAddons[] = { | ||
| "A3_Aegis_Characters_F_Aegis_Facewear", | ||
| "ace_smoke", | ||
| }; | ||
| skipWhenMissingDependencies = 1; | ||
| author = ECSTRING(common,ACETeam); | ||
| authors[] = {"BrettMayson"}; | ||
| url = ECSTRING(main,URL); | ||
| VERSION_CONFIG; | ||
|
|
||
| // this prevents any patched class from requiring this addon | ||
| addonRootClass = "A3_Characters_F"; | ||
| }; | ||
| }; | ||
|
|
||
| #include "CfgGlasses.hpp" |
This file contains hidden or 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,3 @@ | ||
| #define SUBCOMPONENT smoke | ||
| #define SUBCOMPONENT_BEAUTIFIED Smoke | ||
| #include "..\script_component.hpp" |
This file contains hidden or 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,80 @@ | ||
| #define PROTECT(var1,eyes,breathing) class var1: None { \ | ||
| ace_smoke_eyes_protection = eyes; \ | ||
| ace_smoke_breathing_protection = breathing; \ | ||
| } | ||
|
|
||
| class CfgGlasses { | ||
| class None; | ||
|
|
||
| class CUP_RUS_Balaclava_blk: None { | ||
| ace_smoke_breathing_protection = 0.4; | ||
| }; | ||
|
|
||
| class CUP_G_Ratnik_Balaclava_base: None { | ||
| ace_smoke_breathing_protection = 0.4; | ||
| }; | ||
|
|
||
| PROTECT(CUP_G_ESS_BLK_Dark,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Ember,1,0); | ||
| PROTECT(CUP_G_ESS_BLK,1,0); | ||
| PROTECT(CUP_G_ESS_CBR_Dark,1,0); | ||
| PROTECT(CUP_G_ESS_CBR_Ember,1,0); | ||
| PROTECT(CUP_G_ESS_CBR,1,0); | ||
| PROTECT(CUP_G_ESS_RGR_Dark,1,0); | ||
| PROTECT(CUP_G_ESS_RGR_Ember,1,0); | ||
| PROTECT(CUP_G_ESS_RGR,1,0); | ||
| PROTECT(CUP_G_ESS_KHK_Dark,1,0); | ||
| PROTECT(CUP_G_ESS_KHK_Ember,1,0); | ||
| PROTECT(CUP_G_ESS_KHK,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Facewrap_Black,1,0.4); | ||
| PROTECT(CUP_G_ESS_RGR_Facewrap_Ranger,1,0.4); | ||
| PROTECT(CUP_G_ESS_CBR_Facewrap_Red,1,0.4); | ||
| PROTECT(CUP_G_ESS_RGR_Facewrap_Skull,1,0.4); | ||
| PROTECT(CUP_G_ESS_KHK_Facewrap_Tan,1,0.4); | ||
| PROTECT(CUP_G_ESS_RGR_Facewrap_Tropical,1,0.4); | ||
| PROTECT(CUP_G_ESS_KHK_Facewrap_White,1,0.4); | ||
| PROTECT(CUP_G_ESS_BLK_Facewrap_Black_GPS,1,0.4); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Blk,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Grn,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Red,1,0); | ||
| PROTECT(CUP_G_ESS_KHK_Scarf_Tan,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_White,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Face_Blk,1,0.4); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Face_Grn,1,0.4); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Face_Red,1,0.4); | ||
| PROTECT(CUP_G_ESS_KHK_Scarf_Face_Tan,1,0.4); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Face_White,1,0.4); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Blk_Beard,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Blk_Beard_Blonde,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Grn_Beard,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Grn_Beard_Blonde,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Red_Beard,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Red_Beard_Blonde,1,0); | ||
| PROTECT(CUP_G_ESS_KHK_Scarf_Tan_Beard,1,0); | ||
| PROTECT(CUP_G_ESS_KHK_Scarf_Tan_Beard_Blonde,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_White_Beard,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_White_Beard_Blonde,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Grn_GPS,1,0); | ||
| PROTECT(CUP_G_ESS_KHK_Scarf_Tan_GPS,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_White_GPS,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Face_Grn_GPS,1,0.4); | ||
| PROTECT(CUP_G_ESS_KHK_Scarf_Face_Tan_GPS,1,0.4); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Face_White_GPS,1,0.4); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Grn_GPS_Beard,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_Grn_GPS_Beard_Blonde,1,0); | ||
| PROTECT(CUP_G_ESS_KHK_Scarf_Tan_GPS_Beard,1,0); | ||
| PROTECT(CUP_G_ESS_KHK_Scarf_Tan_GPS_Beard_Blonde,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_White_GPS_Beard,1,0); | ||
| PROTECT(CUP_G_ESS_BLK_Scarf_White_GPS_Beard_Blonde,1,0); | ||
| PROTECT(CUP_G_PMC_Facewrap_Black_Glasses_Dark_Headset,0,0.4); | ||
| PROTECT(CUP_G_PMC_Facewrap_Black_Glasses_Dark,0,0.4); | ||
| PROTECT(CUP_PMC_Facewrap_Black,0,0.4); | ||
| PROTECT(CUP_G_PMC_Facewrap_Tan_Glasses_Dark_Headset,0,0.4); | ||
| PROTECT(CUP_G_PMC_Facewrap_Tropical_Glasses_Dark_Headset,0,0.4); | ||
| PROTECT(CUP_G_PMC_Facewrap_Winter_Glasses_Dark_Headset,0,0.4); | ||
| PROTECT(CUP_G_Scarf_Face_Blk,0,0.4); | ||
| PROTECT(CUP_G_Scarf_Face_Grn,0,0.4); | ||
| PROTECT(CUP_G_Scarf_Face_Red,0,0.4); | ||
| PROTECT(CUP_G_Scarf_Face_Tan,0,0.4); | ||
| PROTECT(CUP_G_Scarf_Face_White,0,0.4); | ||
| }; | ||
This file contains hidden or 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,23 @@ | ||
| #include "script_component.hpp" | ||
|
|
||
| class CfgPatches { | ||
| class SUBADDON { | ||
| name = COMPONENT_NAME; | ||
| units[] = {}; | ||
| weapons[] = {}; | ||
| requiredVersion = REQUIRED_VERSION; | ||
| requiredAddons[] = { | ||
| "ace_smoke", | ||
| "CUP_Creatures_Military_RussiaModern_Headgear", | ||
| "CUP_Creatures_Military_USArmy", | ||
| }; | ||
| skipWhenMissingDependencies = 1; | ||
| author = ECSTRING(common,ACETeam); | ||
| authors[] = {"BrettMayson"}; | ||
| url = ECSTRING(main,URL); | ||
| VERSION_CONFIG; | ||
| addonRootClass = QUOTE(ADDON); | ||
| }; | ||
| }; | ||
|
|
||
| #include "CfgGlasses.hpp" |
3 changes: 3 additions & 0 deletions
3
addons/compat_cup_units/compat_cup_smoke/script_component.hpp
This file contains hidden or 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,3 @@ | ||
| #define SUBCOMPONENT smoke | ||
| #define SUBCOMPONENT_BEAUTIFIED Smoke | ||
| #include "..\script_component.hpp" |
This file contains hidden or 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 @@ | ||
| class CfgWeapons { | ||
| class lxWS_H_turban_01_black; | ||
| class lxWS_H_turban_03_black: lxWS_H_turban_01_black { | ||
| ace_smoke_breathing_protection = 0.4; | ||
| }; | ||
|
|
||
| class H_Shemag_khk; | ||
| class H_turban_02_mask_black_lxws: H_Shemag_khk { | ||
| ace_smoke_breathing_protection = 0.4; | ||
| }; | ||
| }; |
This file contains hidden or 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,24 @@ | ||
| #include "script_component.hpp" | ||
|
|
||
| class CfgPatches { | ||
| class SUBADDON { | ||
| name = COMPONENT_NAME; | ||
| units[] = {}; | ||
| weapons[] = {}; | ||
| requiredVersion = REQUIRED_VERSION; | ||
| requiredAddons[] = { | ||
| "data_f_lxWS_Loadorder", | ||
| "ace_smoke", | ||
| }; | ||
| skipWhenMissingDependencies = 1; | ||
| author = ECSTRING(common,ACETeam); | ||
| authors[] = {"BrettMayson"}; | ||
| url = ECSTRING(main,URL); | ||
| VERSION_CONFIG; | ||
|
|
||
| // this prevents any patched class from requiring this addon | ||
| addonRootClass = "A3_Characters_F"; | ||
| }; | ||
| }; | ||
|
|
||
| #include "CfgWeapons.hpp" |
This file contains hidden or 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,3 @@ | ||
| #define SUBCOMPONENT smoke | ||
| #define SUBCOMPONENT_BEAUTIFIED Smoke | ||
| #include "..\script_component.hpp" |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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\smoke |
This file contains hidden or 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,20 @@ | ||
| class EGVAR(arsenal,stats) { | ||
| class statBase; | ||
| class GVAR(breathing_protection): statBase { | ||
| scope = 2; | ||
| displayName = CSTRING(statBreatingProtection); | ||
| showBar = 1; | ||
| condition = QUOTE(getNumber (_this select 1 >> QQGVAR(Breathing_Protection)) > 0); | ||
| barStatement = QUOTE(getNumber (_this select 1 >> QQGVAR(Breathing_Protection))); | ||
| tabs[] = {{6,7}, {}}; | ||
| }; | ||
|
|
||
| class GVAR(eyes_protection): statBase { | ||
| scope = 2; | ||
| displayName = CSTRING(statEyesProtection); | ||
| showBar = 1; | ||
| condition = QUOTE(getNumber (_this select 1 >> QQGVAR(Eyes_Protection)) > 0); | ||
| barStatement = QUOTE(getNumber (_this select 1 >> QQGVAR(Eyes_Protection))); | ||
| tabs[] = {{6,7}, {}}; | ||
| }; | ||
| }; |
This file contains hidden or 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,15 @@ | ||
| class Extended_PreStart_EventHandlers { | ||
| class ADDON { | ||
| init = QUOTE(call COMPILE_FILE(XEH_preStart)); | ||
| }; | ||
| }; | ||
| class Extended_PreInit_EventHandlers { | ||
| class ADDON { | ||
| init = QUOTE(call COMPILE_FILE(XEH_preInit)); | ||
| }; | ||
| }; | ||
| class Extended_PostInit_EventHandlers { | ||
| class ADDON { | ||
| init = QUOTE(call COMPILE_FILE(XEH_postInit)); | ||
| }; | ||
| }; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.