Relief Seeker 1.3

.Net Gameplay


Description


Relief Seeker

Description:

The PainKiller script is designed to enhance NPC behavior by allowing them to use painkillers when their health drops below a certain threshold. This mod simulates a realistic response to injury by giving NPCs a chance to recover health through painkillers, adding a dynamic element to the game.

Changelogs:

-Initial Release.


-Added Player Support.
-Reduced Animation Duration by 50%


-Added Screen Effects and Slow-Mo when player eats Painkiller.


-Performance Optimization.

Key Features:


  • Painkiller Activation for NPCs:

    • Configurable Settings: NPCs can use painkillers based on customizable settings including regeneration amount, cooldown time, and invincibility duration.

    • Health Threshold: Painkillers are activated when NPC health drops below a configurable percentage or if the NPC is injured.

    • Specific NPC Settings: Customize painkiller effects for specific NPCs based on their model.

    • Cooldown Management: Ensures NPCs cannot use painkillers continuously by managing cooldown times.

  • Player Painkiller Mechanics:

    • Automatic Use: Players can automatically use painkillers when health goes below the threshold.

    • Regeneration and Invincibility: Painkillers restore a percentage of health and provide temporary invincibility.

    • Cooldown and Duration: Configurable cooldown and invincibility duration for painkillers.

  • Animation and Effects:

    • Painkiller Animation: NPCs and players will play a specific animation when using painkillers.

    • Health Restoration: Painkillers restore health based on a percentage of the maximum health.

    • Invincibility: Provides temporary invincibility, making the player or NPC immune to damage for a short period.

  • Configuration Options:

    • INI File Configuration: All settings, including regeneration amounts, cooldowns, and activation thresholds are customizable through an INI file.

    • Player and NPC Settings: Separate configurations for player and NPC painkiller effects to tailor the experience as desired.

  • Performance Considerations:

    • Efficient Handling: The script manages NPC and player painkiller effects efficiently to minimize performance impact.

    • Animation Loading: Handles animation loading to ensure smooth playback during painkiller use.


INI Options:
PainKillerEnabled:
-Enables or disables the PainKiller script.
PainKillerPlayerEnabled
- Enables or disables painkiller functionality for the player character.
PainKillerNPCThresholdPercentage:
-Sets the percentage of health at which NPCs will start using painkillers.
PainKillerPlayerThresholdPercentage:
-Sets the percentage of health at which the player character will start using painkillers.
PainKillerRegenerationAmount:
-Determines the amount of health restored by a painkiller.
PainKillerCooldownTime:
-Sets the time interval between painkiller uses for both NPCs and the player.
PainKillerInvincibilityDuration:
-Defines the duration of invincibility granted by a painkiller.


Installation:
-Place all files into your scripts folder.
-Edit the PainKiller.ini file to configure NPCs.
-Launch the game and enjoy!

Requirements:
-Script Hook V
-Script Hook V .NET
First Upload: November 11, 2024 Last Updated: November 11, 2024


0 Comments