Jump to content

Damage Tracker Framework 2.0.0

A DamageTrackingFramework for developers providing damage events for Peds.
   (3 reviews)

2 Screenshots

Note:

Unless you are using this mod for development, or using a mod that requires this, this mod does nothing by itself!

 

Open-Source 1.0 is here!

1.0 fixes all previous issues such as non-lethal weapons not being tracked with LSPDFR. All damage should now be tracked.

 

DamageTrackerFramework

DamageTrackerFramework is an RPH Plugin that acts as a framework by providing events to other plugins for when Peds and the Player take damage. Previously, the way you had to check whether a Ped was damaged was very inefficient and inaccurate and would often cause major performance loss.

 

DamageTrackerFramework attempts to remedy this by getting the data directly from the game's memory and passing it to other plugins, resulting in accurate, reliable, and performant damage tracking with a negligible loss of ~0-1fps, in comparison with other techniques which would often drop anywhere from 20fps to 60fps, while being less accurate or reliable.

 

Requirements

  • RagePluginHook

 

Installation

  1. Install DamageTrackerLib.dll to the GTA V directory.
  2. Install DamageTrackerFramework.dll to the plugins folder.
  3. DamageTrackerFramework MUST be started with RagePluginHook.

 

Issues

- Damage from Gas Grenades is not tracked.

 

The best way to contact me or report any issues is via this discord: https://discord.gg/ulss

You can navigate to the "Varis-Plugins" channel in the "Affiliate Contact" Section near the bottom and make your post tagged with DamageTracker.

 

Development

Now supports vehicle damage tracking! Let me know if there is any data you'd like me to track specifically in vehicles.

 

Source Code

This plugin is now open source, documentation and source code can be found here: Variapolis/DamageTrackerFramework (github.com)

 

NuGet

The library is available as a package on NuGethttps://www.nuget.org/packages/DamageTrackerLib

 

Example Plugins

An example plugin has been provided and the source code for it can be found here: Variapolis/DamageTrackerExample (github.com)

 

Redistribution Rules & License

This modification is now under the Eclipse Public License v2.0

  1. You may redistribute the files with your mod as long as you include the license included with these files in your download.
  2. If you modify the source code, you must make those modifications open-source.
  3. I ask you to credit me and link to this mod page as a courtesy.

The Full License can be found within the files.

 

The Example Plugins are licensed under 0BDL, you are free to modify and redistribute them as you see fit.

 

Special Thanks
- @Rohit685

- @khorio

- @Echooo

- @SuperPyroManiac

- @Vincentsgm

- My Friend Wagner

- PNWParksFan

- LMS

- alexguirre

- Helpers in the LSPDFR Dev Discord
 

Mods Using DamageTrackerFramework

 

Edited by Vari


What's New in Version 2.0.0

Released

Changes with 2.0.0

    - Added Vehicle Damage Tracking (Special thanks to @ApparentlyRohan and @khorio for a lot of the work.)

 

Changes with 1.0.3

    - Updated version checker to use a more up-to-date and performant system (Special thanks to @khorio for most of the work.)

 

Changes with 1.0.2:
    - Fixed Log being spammed by unknown hashes. They are know logged once and cached.
    - Fixed Version not being logged correctly in the version check fails.

 

Changes with 1.0.1:
    - Fixed crash caused by Peds being deleted between ticks after 20-30 minutes of play. (Thanks @DooVan for reporting and testing.)

 

Changes with 1.0:
    - Major Damage Tracker Rework to fix issues with non-lethal/less-than-lethal weapons.

 

Changes with 0.9.9:
    - Added Unknown hash tracking.
    - Added support for Cayo Perico and other latest DLC weapons.

Variapolis
ApparentlyRohan
Khorio

You may also like

  • Better Hit Reactions

    A Plugin to improve pedestrian reactions to being injured
    AstroBurgers

    By AstroBurgers

    Updated

    • 28.5k
  • Deadly Weapons

    Deadly Weapons - Makes guns dangerous!
    SuperPyroManiac

    By SuperPyroManiac

    Updated

    • 400.3k
  • SuperCallouts

    SuperCallouts - 38 new detailed and uniform callouts.
    SuperPyroManiac

    By SuperPyroManiac

    Updated

    • 1.5m
  • Emergency Lighting System

    Emergency Lighting System V brings one of the most popular modifications ever created for a GTA title (ELS-IV) to Grand Theft Auto V. ELS-V will add a whole new dimension to  your patrols. With a fresh look and many more features than its predecessor, it's also sure to brighten up your game and satisfy the emergency lighting enthusiast in anyone.   DESCRIPTION − ELS provides an alternate and incredibly in-depth way of controlling emergency vehicle lights and sounds. − ELS requires
    Lt.Caine

    By Lt.Caine

    Updated

    • 4.4m
  • LSPD First Response

    The LSPD First Response modification
    G17 Media

    By G17 Media

    Updated

    • 17.6m
  • SuperEvents

    SuperEvents - Adds new ambient events to the game!
    SuperPyroManiac

    By SuperPyroManiac

    Updated

    • 194.1k
  • User Feedback

    You may only provide a review once you have downloaded the file.


    MarcelWRLD

    · Edited by MarcelWRLD

    · For old version 1.0.2

       1 of 1 member found this review helpful 1 / 1 member

    Perfect for development 😄

    Link to review
    Michael21107

    · For old version 1.0.2

       1 of 1 member found this review helpful 1 / 1 member

    excellent but the file doesn't contain the version number so it can get mixed up with older versions

    Response from the author:

    Thanks for the review!

     

    Files are kept the same name for compatibility reasons. The built-in version tracker will tell if either of the files are outdated (including if one is up to date and the other is not).

    Link to review
    ×
    ×
    • Create New...