-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finger - Add settings for pointing (#106)
* Add settings for pointing * Add documentations * Add settings to mission header
- Loading branch information
Showing
6 changed files
with
107 additions
and
3 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,6 @@ | ||
ACE_SettingsConfig { | ||
m_aInitialModSettings { | ||
ACE_Finger_Settings "{626D5B540473CB13}" { | ||
} | ||
} | ||
} |
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,17 @@ | ||
MetaFileClass { | ||
Name "{A305FEB7400A2965}Configs/ACE/Settings.conf" | ||
Configurations { | ||
CONFResourceClass PC { | ||
} | ||
CONFResourceClass XBOX_ONE : PC { | ||
} | ||
CONFResourceClass XBOX_SERIES : PC { | ||
} | ||
CONFResourceClass PS4 : PC { | ||
} | ||
CONFResourceClass PS5 : PC { | ||
} | ||
CONFResourceClass HEADLESS : PC { | ||
} | ||
} | ||
} |
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
16 changes: 16 additions & 0 deletions
16
addons/finger/scripts/Game/ACE_Finger/Mission/ACE_MissionHeaderSettings.c
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,16 @@ | ||
//------------------------------------------------------------------------------------------------ | ||
//! Add mod settings to mission header | ||
[BaseContainerProps()] | ||
modded class ACE_MissionHeaderSettings | ||
{ | ||
[Attribute()] | ||
protected ref ACE_Finger_Settings m_ACE_Finger_Settings; | ||
|
||
//------------------------------------------------------------------------------------------------ | ||
//! Applies settings from mission header to config | ||
override void ApplyToSettingsConfig(notnull ACE_SettingsConfig config) | ||
{ | ||
if (m_ACE_Finger_Settings) | ||
config.SetModSettings(m_ACE_Finger_Settings); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
addons/finger/scripts/Game/ACE_Finger/Settings/ACE_Finger_Settings.c
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,14 @@ | ||
//------------------------------------------------------------------------------------------------ | ||
//! Settings for a mod | ||
[BaseContainerProps()] | ||
class ACE_Finger_Settings : ACE_ModSettings | ||
{ | ||
[RplProp(), Attribute(defvalue: "1000", desc: "Maximum pointing distance in meters.")] | ||
float m_fMaxPointingDistanceM; | ||
|
||
[Attribute(defvalue: "true", desc: "Whether the ping can attach to entities.")] | ||
bool m_bCanPingAttach; | ||
|
||
[Attribute(defvalue: "10", desc: "Range of the ping in meters. Only players in range will see it. Anyone can see it if negative.")] | ||
float m_fPingRangeM; | ||
} |
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