Page MenuHomeFeedback Tracker

OnDamage wrong hitTransform (SCR_CharacterDamageManagerComponent) [1.0.0..38]
Assigned, NormalPublic

Description

SCR_CharacterDamageManagerComponent OnDamage wrong hitTransform on hits from clients (hits from servers have correct hitTransform)

Video explanation:

  1. The server fires their gun at the target 2 times
  2. The client (left side) fires their gun at the target 4 times
  3. The hitTransform is debugged using Print command
  4. according to the hitTransform, the 4th hit occured 600m below the ground

Server Hit #1

SCRIPT       : <1143.217529,1.394644,3344.600098>

Server Hit #2

SCRIPT       : <1143.220825,1.438876,3344.667969>

.
.
.
.

Client Hit #1

SCRIPT       : <1143.225464,2.707078,3345.597168>

Client Hit #2

SCRIPT       : <1143.232422,3.639292,3345.597168>

Client Hit #3

SCRIPT       : <1150.345215,-3.570895,3343.165527>

Client Hit #4

SCRIPT       : <1722.543701,-673.012329,3013.535889>

Details

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

ZIP: Testing mod

// code for testing
modded class SCR_CharacterDamageManagerComponent {
	protected override void OnDamage (
        EDamageType type,
        float damage,
        HitZone pHitZone,
        notnull Instigator instigator,
        inout vector hitTransform[3],
        float speed,
        int colliderID,
        int nodeID
    ) {
		super.OnDamage(type, damage, pHitZone, instigator, hitTransform, speed, colliderID, nodeID);
        Print(hitTransform[0]);
    };
};
  1. Load workbench in conflict arland
  2. Disable AI win+alt(debug menu)
  3. Start play mode with server + peer client
  4. teleport peer client to world editor view
  5. spawn ai
  6. shoot ai with peer client until hitTransform[0] shows incorrect values
Additional Information

Tested in latest experimental 03 Nov 2023 (1.0.0..38)

Here is the relevant print from peerclient's console.txt

19:08:43.552  SCRIPT       : <1143.218018,1.400000,3344.600098>
19:08:43.952 rpl::Pip::ProcessNetToGame
19:08:43.952  SCRIPT       : <1143.219971,1.440001,3344.667969>
19:08:47.219 rpl::Pip::ProcessNetToGame
19:08:47.219  SCRIPT       : <1143.225952,2.699999,3345.597900>
19:08:48.419 rpl::Pip::ProcessNetToGame
19:08:48.419  SCRIPT       : <1143.232056,3.639999,3345.597900>
19:08:49.119 rpl::Pip::ProcessNetToGame
19:08:49.119  SCRIPT       : <1150.345947,-3.580000,3343.166016>
19:08:49.719 rpl::Pip::ProcessNetToGame
19:08:49.719  SCRIPT       : <1722.543945,-673.020020,3013.535889>

Event Timeline

Geez changed the task status from New to Assigned.Nov 7 2023, 11:15 AM