# Profiles and difficulty How good an enemy is lives in one data asset, the **enemy profile**. Three come with the plugin, in **Squadcraft Content / Profiles**: | | Recruit | Soldier | Veteran | |---|---|---|---| | Aim error | 1.8x | 1x | 0.6x | | Reaction, lean out to first shot | 0.7 s | 0.35 s | 0.2 s | | Aim settles over | 3 s | 2 s | 1 s | | Error at a running target | up to 2x | up to 1.6x | up to 1.3x | | Error at a target just in view | 2.5x | 2x | 1.5x | | Damage | 0.8x | 1x | 1.2x | | Sight and hearing | 0.6x / 0.7x | 1x | 1.5x / 1.3x | | Takes off incoming suppression | 0% | 30% | 60% | | Reload | 3 s | 2.2 s | 1.8 s | | Grenades | no | yes | yes | | Walk / run | 180 / 400 | 200 / 450 | 220 / 500 cm/s | Give one to an enemy with the pawn tag `Profile:Recruit`, `Profile:Soldier` or `Profile:Veteran`, with **Profile** on the controller, or at runtime with **Set Profile**. Your own profile works the same: right click > Miscellaneous > Data Asset > SQ Enemy Profile, then `Profile:/Game/Path/To/YourAsset` or the controller field. An enemy with no profile plays like a Soldier. A profile named only in a pawn tag is loaded by path, so the cooker can't see it: put your profiles' folder in Project Settings > Packaging > Additional Asset Directories to Cook, or set them on the controller or a spawner group instead. The three presets are cooked for you. Difficulty for a whole game is a matter of which profile your spawners and placed enemies get. ## Fair aim Every profile shoots fair, so the player dies from mistakes, not from a coin toss: - **The first shot at a target misses.** It passes a body's width to the side, close enough to be heard and seen. A new target, or one left alone for 5 s, gets one again. - **A running target is harder to hit**: up to the profile's Moving Target Error Scale at full run (1.6x for a Soldier). - **A target that just came into view is harder to hit**: the profile's Fresh Target Error Scale at first (2x for a Soldier), settling to normal over Aim Settle Seconds while it stays in view. Suppressing fire at a target in view follows the same rules, warning shot included. Turn off First Shot Misses on a profile for enemies that should punish at once. ## Suppression Every shot that passes near an enemy fills its **suppression meter** (0 to 1). Squadcraft's own shots already count, so AIs suppress each other too. A hit from any weapon adds to it. - From **0.5** the AI is suppressed: it stops leaning out. Behind low cover it fires blind over the top (wild, weak bursts); behind high cover it keeps its head down. - At **1** (full) it falls back to cover further away. - The meter holds for 1.5 s after the last shot, then drains, a full one in 4 s. The profile's Suppression Resistance takes its share off every shot. The numbers are in Project Settings > Plugins > Squadcraft Squads > Suppression. A hit adds 0.3 (Suppression Per Hit), from engine damage; a damage effect alone does not reach the AI controller. **Your player's weapons**: call **Report Shot** (SQ Combat Library) once per shot, on the server, with the shooter, the start and the end of the shot. Every Squadcraft AI that counts the shooter as an enemy and is within 2.5 m of the line is suppressed. Without it, only hits suppress. ## Ammo Each enemy has a magazine (the profile's Magazine Size, 30 by default; 0 never runs dry). Every shot takes a round. Under a third of a magazine left, it reloads between rounds while in cover, saying so to the squad; an empty one is reloaded first thing, pinned down or not. An empty magazine fires nothing until the reload is done. A controller whose Combat Abilities have no reload ability never runs dry. The tag `Squadcraft.State.Reloading` is on the pawn while it reloads (replicated, for the animation), and the reload ability takes an optional montage. ## Callouts The AIs say what they are doing, the F.E.A.R. way: it is what makes a player read them as clever. Each callout is a **gameplay cue** on the speaker's pawn, so every client can play a voice line, and an **On Callout** event on the Squadcraft Squad subsystem, on the server. | Callout | When | |---|---| | `GameplayCue.Squadcraft.Callout.Contact` | It spots an enemy itself | | `...Callout.Flanking` | The flanker sets off round the side | | `...Callout.Grenade` | It throws one, or runs from one | | `...Callout.Reloading` | It reloads | | `...Callout.ManDown` | A squad mate dies (the first one still standing says it) | | `...Callout.FallingBack` | It falls back or retreats | | `...Callout.Suppressing` | It suppresses | | `...Callout.Moving` | It moves up on the enemy | Each squad says each callout once every 4 s at most (Callout Cooldown Seconds), so four AIs seeing you say "contact" once. In the demo the callouts are written over the soldiers' heads. To play your audio: make a Gameplay Cue Notify (Static) for each tag and play the sound there, or handle the cue on your character through the Gameplay Cue Interface, as the demo soldier does. Next: [Player squads, spawners and doors](6-player-squads-spawners-doors.html).