Page MenuHomeFeedback Tracker

HitPart EH does not return projectile object for unguided rockets
Closed, ResolvedPublic

Description

As a scripter, I want to know where rocket explodes, so that I can calculate blast power that affects vehicle and its individual parts.

HitPart EH works perfectly for most projectiles with exception of unguided rockets.

In case of unguided rocket the object reference is not being returned. Because of that I am unable to get its terminal position or velocity.

Details

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

Load attached mission

or create it from scratch:

  1. Create player unit with RPG-32
  2. Create any vehicle with init field:
this allowDamage false; this addEventHandler ["hitpart",{{diag_log "[#hitpart]"; systemChat str [_x select 2]; diag_log [_x select 2]} forEach _this; systemChat str [{_x select 10} count _this > 0]; diag_log [{_x select 10} count _this > 0]}]

Run mission

  1. Hit vehicle with rifle round
  2. Hit vehicle with unguided rocket
  3. System chat will print out object model name or <NULL-object>, and whether there was at least one direct hit.
  4. Results will be stored logged to RPT behind tag [#hitpart].

Observed:

  • [tracer_red.p3d] or similar is returned for rifle round, but <NULL-object> is returned for unguided rocket
  • There are no direct hits (true) for unguided rocket

Expected:

  • Valid object is returned by hitPart EH also for unguided rockets
  • There should be at least one direct hit with unguided rocket as it hits the target
Additional Information

Providing fake direct impact information without reference to projectile, but containing information about terminal position and velocity is acceptable solution.
Fixing this issue will give modders ability to develop superior damage system for Arma, easier to set up in content.

Event Timeline

zGuba created this task.Aug 28 2016, 7:24 AM
zGuba updated the task description. (Show Details)Aug 28 2016, 7:27 AM
zGuba edited Steps To Reproduce. (Show Details)
zGuba edited Steps To Reproduce. (Show Details)
zGuba edited Steps To Reproduce. (Show Details)Aug 28 2016, 7:30 AM
zGuba updated the task description. (Show Details)
zGuba edited Steps To Reproduce. (Show Details)Aug 28 2016, 7:32 AM
zGuba renamed this task from HitPart EH runs too late for unguided rockets - no projectile object available to HitPart EH does not return projectile object for unguided rockets.
zGuba updated the task description. (Show Details)Aug 28 2016, 7:58 AM
zGuba edited Additional Information. (Show Details)
zGuba edited Additional Information. (Show Details)
zGuba edited Additional Information. (Show Details)Aug 28 2016, 8:01 AM
zGuba edited Steps To Reproduce. (Show Details)Aug 28 2016, 3:46 PM
razazel claimed this task.Aug 29 2016, 11:31 AM
razazel changed the task status from New to Feedback.
razazel added a subscriber: razazel.

Hello,

thank you for the feedback.

Could you please tell me what branch are you on? There were changes made to this EH since the 1.62 update that are already included in the development branch and should be also available in the RC branch.

Would you mind checking it out?
https://community.bistudio.com/wiki/Arma_3_Steam_Branches
Password for RC: Arma3Update164CR

Please let me know.

zGuba added a comment.Aug 29 2016, 3:34 PM

razael,
I tested the issue under 1.64 RC and it is still broken there.

zGuba edited Additional Information. (Show Details)Aug 29 2016, 3:34 PM
zGuba edited Additional Information. (Show Details)Aug 29 2016, 6:36 PM
razazel changed the task status from Feedback to Reviewed.Aug 30 2016, 12:24 PM
zGuba changed Reproducibility from N/A to Always.Aug 30 2016, 11:49 PM
Leopard20 changed the task status from Reviewed to Assigned.
Leopard20 set Ref Ticket to AIII-56002.Sep 24 2023, 3:13 PM
Leopard20 changed the task status from Assigned to Feedback.Oct 2 2023, 7:40 PM

Revision 151053

Looks good so far! I work with HitPart right now and report if issues are found.

Wulf closed this task as Resolved.Dec 21 2023, 6:08 PM
Wulf added a subscriber: Wulf.

Closing as resolved.