Arma 3
33 ratings
JCaleb's Energy Shields
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
File Size
Posted
Updated
14.762 MB
26 Aug, 2022 @ 3:05pm
21 Sep, 2022 @ 10:14am
3 Change Notes ( view )

Subscribe to download
JCaleb's Energy Shields

Description
I'm investigating an issue where the shield stops working randomly during a multiplayer session

This WON'T protect you from WebKnight's Melee and other forms of scripted damage, although shown in example video, that seemed to be lag from having that many melee units

What is this mod?
Initially, this adds three different types, or tiers, of shields to emulate the behavior of Space Marine Iron Halos in the 40K Universe.

Obviously for balance reasons, I created three different types with different kinds of protections.
Bronze Tier: 290 mm RHA Steel;
Iron Tier: 800 mm RHA Steel;
Gold Tier: 10000 mm RHA Steel / Invulnerable (except for scripted damage);

This all sounds excellent, but normally shields from other mods are straight up walls.
These shields work as in lore shields, where:
- You can shoot from inside TO outside;
- You can't be shot from outside TO inside (unless it penetrates);

Why such disparity in armor values?
This was balanced versus most weapons a space marine might face when using the popular TIOW(1/2) and AoD mods.
I compiled my own spreadsheet of different speed, "caliber" and penetration values for most weapons from these mods. (Link to spreadsheet[docs.google.com])
Given these values, that seemed to be a good range to not make it that much overpowered for the marines, but still keep it spread out to have a perceived increased in defensiveness.

OK, I trust you, but how do they work?
You are able to use the shields by two ways:
1. Using a compatible (Iron) Halo from the "facewear" category, as showed in image below

2. Having one of these items found in the misc. category on your inventory


The system will detect any changes in equipment as soon as you ACE Self Interact/Keybind press and set your duration and cooldown accordingly to your tier.
If you use both methods at the same time, the highest tier found in the unit will be used.
Examples:
- Unit has Iron Halo (Bronze) but Personal Shield (Iron) in inventory, shield will be of type Iron;
- Unit has Iron Halo (Gold) but Personal Shield (Bronze) in inventory, shield will be of type Gold;

System logic once you ACE Self Interact:
Checks:
  1. Checks if the unit has either compatible facewear or items in inventory;
  2. Checks if the unit already has a shield attached to it;
    - If true, stop, "Deactivate Shield" interaction pops up;
    - If false, proceed;
  3. Checks if the unit's cooldown has run out;
    - If true, proceed;
    - If false, stop;
  4. "Activate Shield" Interaction pops up;
Then:
  1. Initializes shield;
  2. Deletes shield after duration;

That's really cool, but how do I set different settings?
Glad you asked. The duration (time the shield will be online) and cooldown (time the shield will be offline) can be customized by tiers by using a module.
Settings can be set both on EDEN and while on ZEUS. The newest placed module overrides previous settings.


Input is treated as seconds, tested up to 3 minutes, unknown if it works with higher times (please test and report back :D)



This is fantastic! Are there any performance caveats?
Most likely not. As tested with around 25 players and 55 other mods.
Server-wise, the only script that runs is the propagation of the settings to all clients, which runs only once and is very lightweight as it only sends a few numbers. As long as you don't spam new modules, it should work fine.
All other code is run locally by the client, and I tried to optimize it by writing my code based on ACE3's scripts.

Arma3 scripting is black magic, and I'm only an apprentice wizard after spending two weeks on this, if you find any issues, let me know.

Models, Retexturing and so on
Models were made by myself after a few days learning LODs and Armor materials, if you want to do something similar, feel free to reach out, and I'll give you a few pointers.

This is straight out-of-the-box compatible with retexturing. You can access the outside (3rd person view) texture and inside (1st person view) textures by these selections
hiddenSelections[] = {"Outside", "Inside"};

If you want to spawn the shield on a unit and the self interaction / keybind is not working, make sure they have the facewear or item you want the shield to be and run this code by double-clicking that unit
_this call jces_shield_fnc_initShield;
Alternatively, to delete their shield
_this call jces_shield_fnc_delShield;

Compatibility

Dosiel Funtime 40k Models
Black Templars Armoury

If your mod adds new iron halo models and you want compatibility, reach out

Known Issues
  • Initial cooldown applies on mission start;
    - Example: Cooldown is set to X seconds.
    • When the unit spawns, the initial cooldown before it activates the shield for the first time is set to X, instead of being available from the start THEN cooldown being applied.
    - Workarounds:
    • Have unit spawn, get facewear or item via loadout change/arsenal;
    • Change to a different facewear or item, ACE Self Interact, change back to initial item;
    • Set EDEN module cooldowns to 1 second, once you are ready to start your mission for real, go into ZEUS and place a new module with desired settings;
  • ZEUS Remote Controlled unit doesn't deactivate shield;
    - Example: I am a ZEUS. I spawn a unit, change their loadout accordingly and remote control them. I activate their shield, it activates correctly. I stop remote controlling unit, duration time runs out, but the shield is never deactivated.
    - Workarounds:
    • Delete their shield via script, as show in example in "Models, Retexturing and so on";
    • As soon as the unit has served its purpose laid down by the ZEUS, remote control them and deactivate shield manually;
    • Continue controlling the unit for the whole duration of the shield, emulating a real player, it will work normally;

Future plans:
  • Human sized shields;
    - Soon TM
  • Static shields for location defense;
    - 80% done
  • Portable shields which a unit can place down, similar to an ACE Deployable (Launcher slot);
    - 95% done :)
  • Health values, where hits that don't penetrate still damage the health of the shield itself, which could cause it to "overload" and deactivate prematurely.

Credits
  • Bal & The Ultramarines - Initial idea after initial prototype shield was developed, patience and playtesting;
  • Drell - As always, beautiful mod screenshots.
23 Comments
Chad The D1ck Champ 23 Aug, 2024 @ 1:47pm 
I cant see the Halo, even though i have the mod loaded. its not showing up in the arsenal
de.leon.petta 14 Jun, 2024 @ 7:06pm 
Could make it to be used in vehicles?
JCaleb  [author] 4 May, 2024 @ 8:15pm 
Hi @Marki, no not completely, I have long term plans of releasing a new version, a redux if you will, with more in depth shields.

But, to answer your question, they don't have health, they have armor. You can think of it as a sphere of steel around the player. Shots either penetrate or don't. You can consult the bisurf files for the armor values used
Marki 10 Apr, 2024 @ 11:11am 
Question, I am seeing if I can make a dependency on this mod. I am looking for a way to lower the health of the shields a bit and I will make them smaller to fit a soldier.
I will make them smaller by simple scale command, but I am trying to figure out where did you set the "health" in your mod?
I assume that "DT_Health" is the variable, where is it defined?
Marki 9 Apr, 2024 @ 1:37pm 
Has this been abandoned?
Ronin 31 Mar, 2024 @ 4:50pm 
Does this not work with "Ace but Extremely Based"? I do have the mod loaded, but it seems I cannot use it, perhaps I am just being dumb?
Ribcage 27 Oct, 2023 @ 5:43pm 
was tales of heresy taken off the workshop
Dead_Head_Larry 20 Sep, 2023 @ 12:57am 
@Commander Kibbins I can confirm it's from the Tales of Heresy mod
JCaleb  [author] 4 Apr, 2023 @ 6:10pm 
@Commander Kibbins, @Agent Porter, @Comrade Squirrel - Not sure since the screenshots weren't by me, it might be in the Tales of Heresy mod
Commander Kibbins 3 Apr, 2023 @ 9:52pm 
Where demon mod