Raised This Month: $51 Target: $400
 12% 

FF2 [Subplugin] Lifeloss Regeneration v1.0.6


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SammCheese
Junior Member
Join Date: Feb 2021
Old 02-04-2021 , 21:52   [Subplugin] Lifeloss Regeneration v1.0.6
Reply With Quote #1

Im basically just reinventing the Wheel, but I've found the Original Lifeloss to be quite boring, so thats why i made This!

The Normal FF2 Lifeloss would just Refill the Bossbar instantly, this Plugin sets your HP to 1 when you would normally Die (invulnerability), and then Smoothly Regenerates your Health back to Max Health.

EDIT: NOW FEATURING A FAKE ROUNDEND!
>Example Video with the Fake Roundend

As of now, BatFox updated Unofficial FF2 to Update Healthbar with FF2_SetBossHealth, this Ability no longer requires a different version or the Fix stated before.
(You need the latest version of FF2Bat though)


Usage:
Code:
"abilityX"
{
    "name"     "lifeloss_regen"
   
    "arg1"      "Int for lives"     // 1 = 0 refills, 2 = 1 refills, etc.
    "arg2"      "0"                 // 0 = No Attacking but Moving, 1 = Complete Freeze including Attacking, 2 and above = No Impairment
    "arg3"      "3.0"               // Time in s after which it starts Refilling Health
    "arg4"      "0"                 // Enable Fake End
    "arg5"      "path/to/sound/"    // if arg4 enabled, Path to sound triggered after full refill (i.e freak_fortress_2/hale/file.mp3)
    "arg6"      "path/to/sound/"    // if arg4 enabled, Path to sound triggered after health sinks to 1
    "arg7"      "path/to/sound/"    // if arg4 enabled, Path to sound triggered after Players are Respawned

    "plugin_name"    "mmHealthRefill"
}
An Example with 3 Lives can be Found here

Changelog:
  • 1.0.1: Added Arg2. Refill Impairment selection.
  • 1.0.2: Removed FF2_HPBarUpdate call, as its unnecessary in FF2Bats latest update
  • 1.0.3: Added Fake Roundend
  • 1.0.4: More Sound Support
  • 1.0.5: Fixed Mistake causing Sounds to not get Precached
  • 1.0.6: Fixed another Mistake causing sounds to not get Precached

If you encounter any bugs or some things dont work correctly let me know!
Attached Files
File Type: sp Get Plugin or Get Source (mmHealthRefill.sp - 100 views - 9.5 KB)
File Type: smx mmHealthRefill.smx (8.4 KB, 84 views)

Last edited by SammCheese; 03-07-2021 at 15:36. Reason: Added Fake Roundend
SammCheese is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode