Page MenuHomeFeedback Tracker

Laws of War DLC Leaflets problem
New, NormalPublic

Description

Laws of War DLC Leaflets feature doesn't work if player is too far from drop place in SP/MP. Leaflet particles are fired but leaflets are never created on ground if player is too far or spectator camera is too far.

On JIP reconnect leaflets on ground are without texture.

I fixed it with this script that I run after client connected:

if (gClientMode == "CLIENT") then 
{
  {
    if(_x iskindof "Leaflet_05_F") then
    {
      ["init",[_x, "images\leaflet_ca.paa", localize "STR_Leaflet"]] call bis_fnc_initLeaflet; 
    };
  } foreach (nearestObjects [getMarkerPos "zoneCenter", [], 3000]); 
};

I have mission that works in SP/hosted LAN/Dedicated server that runs as persistent (persistent = 1; in server.cfg) and player is teleporting to action area from remote shelter.

Please remove player vicinity check and fix operations in MP

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Download mission source http://prekladytextu.eu/leafletBug.Altis.zip

SP:

  • Open in editor (I can't see debug console if mission is compiled as SP mission and run from scenarios menu even debug is set to everyone)
  • run as SP
  • in debug console run as local "call fnc_drop"
  • wait until you get leaflet drone was cleaned up in chat and then use spectator and switch on that remote AI - no leaflets on ground are left.
  • in debug console run as local "call fnc_show" and see map - no leaflets marked on map
  • stay with remote AI view
  • in debug console run as local "call fnc_drop" again and wait there till you see drone comming and release leaflets - this time they are on ground
  • in debug console run as local "call fnc_show" again and this time leaflets are marked on map

MP:

  • setup dedicated server with persistent = 1; and run it
  • join mission
  • in debug console run on server "call fnc_drop"
  • wait until you get leaflet drone was cleaned up in chat and then use spectator and switch on that remote AI - no leaflets on ground are left.
  • in debug console run as local "call fnc_show" and see map - no leaflets marked on map
  • stay with remote AI view
  • in debug console run on server "call fnc_drop" again and wait there till you see drone comming and release leaflets - this time they are on ground
  • in debug console run as local "call fnc_show" again and this time leaflets are marked on map

Event Timeline