Page MenuHomeFeedback Tracker

suppressFor doesn't seem to work
New, NormalPublic

Description

The suppressFor parameter doesn't seem to work, it is always capped at around 15 seconds from my tests. This happens on version 2.14.15057, but it's happened as long as the command has existed. I'm just now reporting it. It's possible I'm misunderstanding the suppressFor command.

I would expect with a suppressFor parameter to be set to 120, the entity would suppress for 120 seconds.

Details

Severity
Major
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Repro steps

  • Make a scenario, one player, one AI entity named AIEntity.
  • Preview, run the below in the debug window
AIentity  doSuppressiveFire [(getPosASL player) select 0, (getPosASL player) select 1,((getPosASL player) select 2) + 2]; 
AIentity suppressFor 120;

Event Timeline

kevb0 created this task.Oct 1 2023, 4:30 PM

This should be sufficient for testing. On VR map placed a building to put the player inside of, then an opfor HMG gunner ~200m away, ensure player and AI have no line of sight to each other.

Seems after about 60s they stop suppressing

this addEventHandler ["Reloaded", { 
 params ["_unit", "_weapon", "_muzzle", "_newMagazine", "_oldMagazine"]; 
 _unit addMagazine (_oldMagazine select 0);
 systemChat format ["AI Reloaded, added another %1 magazine", _oldMagazine select 0];
}];

this doSuppressiveFire [(getPosASL player) select 0, (getPosASL player) select 1,((getPosASL player) select 2) + 2];
this suppressFor 120;
this spawn {
  systemChat "Starting suppression above player";
  sleep 60;
  systemChat "Suppression should still be going, 60s left";
  sleep 60;
  systemChat "Suppression ending";
};