Page MenuHomeFeedback Tracker

Decon Showers don't work well on a dedicated server → no able to disable effects → player able to generate infinitely many particle effects → only who activate the shower see particles
New, NormalPublic

Description

take a look at this scripts

  • a3\functions_f_enoch\deconshower\

For animations work the function author checks that the object(Decontamination Shower) is must be local. But on a dedicated server this object cannot be local.

for example fn_deconshoweranimlarge.sqf

if(local _object)then //→ FALSE, won't happen because this object is REMOTE on dedi server 
{
	_object animateSource ["Valve_Source",1];
	_object animateSource ["Hide_Mist_Source",0,true];
	_object setVariable ["BIN_Shower_Stop",false,true];
	if(_startAnim)then{[_object] spawn bin_fnc_deconShowerMove};
};

and see in "CfgVehicles" >> "DeconShower_02_base_F" >> "UserActions" >> "condition" is {this animationSourcePhase 'valve_source' isEqualTo 0} as we saw a above the animation will not change, which means we can’t turn it off, but only endlessly turn it on

see YT video1 of animation and action problem → and now check YT viedo3 to see how it should look

↓↓↓↓↓↓↓↓
There is also a 2nd problem.
Only player who activated the shower will be able to see visual effects (particles), other clients will not

see YT video2 of particle locality problem

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Operating System Version
22H2
Category
Scripting
Steps To Reproduce

  1. launch two Arma 3 clients
  2. launch dedi server with my repro mission
  3. start the mission
  4. enable any decon shower by 1 player

result →

  • no animations ×
  • no user action to disable shower ×
  • but there are particles ✓
  • and we can 'enable shower' again, if we do this ther particles are duplicated again ×

Event Timeline

TRAGER created this task.May 9 2023, 12:36 PM
TRAGER edited Steps To Reproduce. (Show Details)May 9 2023, 1:50 PM
TRAGER edited Additional Information. (Show Details)
This comment was removed by BIS_fnc_KK.
TRAGER updated the task description. (Show Details)May 10 2023, 12:22 PM

This showers seems work correct if change statements in user actions this way

launch two arma clients and dedicated server, start my repro mission from STEPS TO REPRODUCE above.
Use shower actions to enable or disable, you can see how this work bad on clients (or watch 3 repro videos from ticket description)

Please, upload my mod

where i change statement="" in the class UserActions for big and small shower:
1. Small
from

  • player playActionNow 'PutDown';[this,1.5,9] spawn bin_fnc_deconShowerAnim
  • player playActionNow 'PutDown';[this] call bin_fnc_deconShowerAnimStop

to

  • player playActionNow 'PutDown';[this,1.5,9] remoteExec ['bin_fnc_deconShowerAnim'];
  • player playActionNow 'PutDown';[this] remoteExecCall ['bin_fnc_deconShowerAnimStop'];

2. Large
from

  • player playActionNow 'PutDown';[this,5.4,4,2,true] spawn bin_fnc_deconShowerAnimLarge;
  • player playActionNow 'PutDown';[this] call bin_fnc_deconShowerAnimStop

to

  • player playActionNow 'PutDown'; [this,5.4,4,2,true] remoteExec ['bin_fnc_deconShowerAnimLarge'];
  • player playActionNow 'PutDown';[this] remoteExecCall ['bin_fnc_deconShowerAnimStop'];

For the next launch two client with my mod (or change any way statements from above) launch modded dedicated server, start same repro mission. Then try to use showers, you will get expected behaviour
I'm not going to say that everything works perfectly as designed, but after my tests everything is it looks like, check this video https://www.youtube.com/watch?v=nzvQ2ZA8cvM

TRAGER updated the task description. (Show Details)May 29 2023, 9:38 AM
TRAGER edited Steps To Reproduce. (Show Details)
TRAGER edited Additional Information. (Show Details)