Page MenuHomeFeedback Tracker

Server engine cyclic call function OnEngineStop in class CarScript if car destroy
Assigned, NormalPublic

Description

Discovered today

This happens if destroy car - set health to 0, set damage zone "Engine" to 0

Immediately and after server restart (if car not deleted by server), the following happens

Engine calls OnEngineStop function every frame in CarScript class for some objects of CarScript class (I seen CivilianSedan and OffroadHatchback)
This happens almost on a vanilla server, only with server-mod that monitor cars...
It starts right after creation ruined car object and then continues up to car deleted

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Operating System Version
Windows Server 2008 R2 x64
Category
General
Steps To Reproduce

Logging (print) object position and orientation in modded CarScript in OnEngineStop function
Code:

	override void OnEngineStop()
	{
		super.OnEngineStop();
 		Print("["+this+"]: CS: " + GetGame().GetTickTime() + ": OnEngineStop: " + GetPosition() + ": " + GetOrientation());
	}
Additional Information

If server has a lot of destroyed cars, server's FPS drop below normal values.

Event Timeline

borizz.k created this task.Apr 28 2021, 3:08 PM
borizz.k edited Steps To Reproduce. (Show Details)Apr 28 2021, 6:01 PM
borizz.k updated the task description. (Show Details)Apr 29 2021, 6:50 AM
borizz.k renamed this task from Server engine cyclic call function OnEngineStop in class CarScript at server start to Server engine cyclic call function OnEngineStop in class CarScript if car destroy.
borizz.k edited Additional Information. (Show Details)Apr 29 2021, 8:38 AM
Geez changed the task status from New to Assigned.Apr 29 2021, 3:31 PM