Download Data/CharacterEffectCompositeDef/AutoWeapons.lua from sirnii/myspace: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/spaces/sirnii/myspace/resolve/main/Data/CharacterEffectCompositeDef/AutoWeapons.lua
- Command line
-
hf download hf://spaces/sirnii/myspace/Data/CharacterEffectCompositeDef/AutoWeapons.lua
-
curl -L -o AutoWeapons.lua https://huggingface.co/spaces/sirnii/myspace/resolve/main/Data/CharacterEffectCompositeDef/AutoWeapons.lua
1.2 kB
| -- ========== GENERATED BY CharacterEffectCompositeDef Editor DO NOT EDIT MANUALLY! ========== | |
| PlaceObj('CharacterEffectCompositeDef', { | |
| 'Group', "Perk-Specialization", | |
| 'Id', "AutoWeapons", | |
| 'SortKey', 100, | |
| 'Parameters', { | |
| PlaceObj('PresetParamPercent', { | |
| 'Name', "automatics_penalty_reduction", | |
| 'Value', 50, | |
| 'Tag', "<automatics_penalty_reduction>%", | |
| }), | |
| }, | |
| 'object_class', "Perk", | |
| 'unit_reactions', { | |
| PlaceObj('UnitReaction', { | |
| Event = "OnModifyCTHModifier", | |
| Handler = function (self, target, id, attacker, attack_target, action, weapon1, weapon2, data) | |
| if id == "Autofire" and target == attacker then | |
| data.mod_mul = AutoWeapons:ResolveValue("automatics_penalty_reduction") | |
| data.meta_text[#data.meta_text+1] = T{776394275735, "Perk: <name>", name = self.DisplayName} | |
| end | |
| end, | |
| }), | |
| }, | |
| 'DisplayName', T(971350457853, --[[CharacterEffectCompositeDef AutoWeapons DisplayName]] "Auto Weapons"), | |
| 'Description', T(938747433410, --[[CharacterEffectCompositeDef AutoWeapons Description]] "Reduced <em>Accuracy</em> penalty when using <em>Burst Fire</em> or <em>Full Auto</em>."), | |
| 'Icon', "UI/Icons/Perks/AutoWeapons", | |
| 'Tier', "Specialization", | |
| }) | |