Skip to content

feat: Changes to ReadPickupInfoBefore to include more information when converting between Pickup and Item.#804

Open
Saskyc wants to merge 1 commit intoExMod-Team:masterfrom
Saskyc:firearm-restoration-real
Open

feat: Changes to ReadPickupInfoBefore to include more information when converting between Pickup and Item.#804
Saskyc wants to merge 1 commit intoExMod-Team:masterfrom
Saskyc:firearm-restoration-real

Conversation

@Saskyc
Copy link
Copy Markdown

@Saskyc Saskyc commented Apr 5, 2026

Description

Describe the changes
Includes properties from HitscanHitregModule to FirearmPickup, so they're not resetted everytime firearm is dropped.

What is the current behavior? (You can also link to an open issue here)
X

What is the new behavior? (if this is a feature change)
X

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Noupe.

Other information:


Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentations

Submission checklist

  • I have checked the project can be compiled
  • I have tested my changes and it worked as expected

Patches (if there are any changes related to Harmony patches)

  • I have checked no IL patching errors in the console

Other

  • Still requires more testing

Comment on lines +131 to +150
/// <summary>
/// Gets or sets the damage for this <see cref="FirearmPickup"/>.
/// </summary>
public float Damage { get; set; }

/// <summary>
/// Gets or sets the inaccuracy for this <see cref="FirearmPickup"/>.
/// </summary>
public float Inaccuracy { get; set; }

/// <summary>
/// Gets or sets the penetration for this <see cref="FirearmPickup"/>.
/// </summary>
public float Penetration { get; set; }

/// <summary>
/// Gets or sets how much fast the value drop over the distance.
/// </summary>
public float DamageFalloffDistance { get; set; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Place these on top of the methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants