Raised This Month: $62 Target: $400
 15% 

FF2 [Subplugin] Lifeloss Regeneration v1.0.6


Post New Thread Reply   
 
Thread Tools Display Modes
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 - 15 views - 9.5 KB)
File Type: smx mmHealthRefill.smx (8.4 KB, 11 views)

Last edited by SammCheese; 03-07-2021 at 15:36. Reason: Added Fake Roundend
SammCheese is offline
LeAlex14
Member
Join Date: Jun 2020
Location: La France
Old 02-05-2021 , 03:26   Re: [Subplugin] Lifeloss Regeneration v1
Reply With Quote #2

Quote:
Originally Posted by SammCheese View Post
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.

Due to a Feature missing in Unofficial and Official FF2, My Version of Unofficial FF2 is Needed.

(its merely a native for Updating Health, since usually FF2 only updates the Boss Health Bar on taking a Hit)

Usage:
Code:
"abilityX"
{
   "name"    "lifeloss_regen"

    "arg1"    "2"    // Lives, 1 = 0 "Refills", 2 = 1 Refills, 3 = 2, etc.

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

If you encounter any bugs or some things dont work correctly let me know!
Really good works. I really like what it makes in game, could you make a version that allows the boss to move but not attack?
LeAlex14 is offline
J0BL3SS
Senior Member
Join Date: Sep 2020
Location: Berke's Sex Dungeon
Old 02-05-2021 , 04:03   Re: [Subplugin] Lifeloss Regeneration v1
Reply With Quote #3

Quote:
Originally Posted by SammCheese View Post
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.

Due to a Feature missing in Unofficial and Official FF2, My Version of Unofficial FF2 is Needed.

(its merely a native for Updating Health, since usually FF2 only updates the Boss Health Bar on taking a Hit)

Usage:
Code:
"abilityX"
{
   "name"    "lifeloss_regen"

    "arg1"    "2"    // Lives, 1 = 0 "Refills", 2 = 1 Refills, 3 = 2, etc.

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

If you encounter any bugs or some things dont work correctly let me know!
Like a more eye-catching and slightly lookig better.
sadly Batfoxkid's Fork don't have FF2_HPBarUpdate() stock funtion.
__________________
My Steam Profile
My Discord Name: J0BL3SS#5320



Last edited by J0BL3SS; 02-05-2021 at 04:06. Reason: i understand all wrong
J0BL3SS is offline
SammCheese
Junior Member
Join Date: Feb 2021
Old 02-05-2021 , 06:12   Re: [Subplugin] Lifeloss Regeneration v1
Reply With Quote #4

Quote:
Originally Posted by J0BL3SS View Post
Like a more eye-catching and slightly lookig better.
sadly Batfoxkid's Fork don't have FF2_HPBarUpdate() stock funtion.

Yeah sadly, although its fairly easy to add it yourself.
I created an Issue on Unofficial FF2 to request it
SammCheese is offline
SammCheese
Junior Member
Join Date: Feb 2021
Old 02-05-2021 , 08:23   Re: [Subplugin] Lifeloss Regeneration v1
Reply With Quote #5

Quote:
Originally Posted by LeAlex14 View Post
Really good works. I really like what it makes in game, could you make a version that allows the boss to move but not attack?
Added Support for that In Update!
SammCheese is offline
J0BL3SS
Senior Member
Join Date: Sep 2020
Location: Berke's Sex Dungeon
Old 02-05-2021 , 10:17   Re: [Subplugin] Lifeloss Regeneration v1
Reply With Quote #6

Quote:
Originally Posted by SammCheese View Post
Added Support for that In Update!
more arguments are always good. Increasing the usability of a subplugin would be good for any use.

and every fork updates healthbar when boss takes damage right?
__________________
My Steam Profile
My Discord Name: J0BL3SS#5320


J0BL3SS is offline
SammCheese
Junior Member
Join Date: Feb 2021
Old 02-05-2021 , 17:21   Re: [Subplugin] Lifeloss Regeneration v1
Reply With Quote #7

Quote:
Originally Posted by J0BL3SS View Post
more arguments are always good. Increasing the usability of a subplugin would be good for any use.

and every fork updates healthbar when boss takes damage right?
That should be Correct, although most Forks dont need the Hale to Take damage but rather just get Hit.
SammCheese is offline
SammCheese
Junior Member
Join Date: Feb 2021
Old 03-07-2021 , 15:35   Re: [Subplugin] Lifeloss Regeneration v1.0.6
Reply With Quote #8

Fake Roundend now available!
SammCheese is offline
Joaquel
Junior Member
Join Date: Sep 2017
Location: Argentina
Old 03-10-2021 , 22:20   Re: [Subplugin] Lifeloss Regeneration v1.0.6
Reply With Quote #9

I'm having this problem:

Quote:
[SM] Plugin freaks\mmHealthRefill.ff2 failed to load: Native "TF2Attrib_AddCustomPlayerAttribute" was not found.
__________________
  • Steam
  • Discord: Joaquel#2900
Joaquel is offline
J0BL3SS
Senior Member
Join Date: Sep 2020
Location: Berke's Sex Dungeon
Old 03-11-2021 , 00:08   Re: [Subplugin] Lifeloss Regeneration v1.0.6
Reply With Quote #10

Quote:
Originally Posted by Joaquel View Post
I'm having this problem:
Mae sure you have tf2attributes downloaded.
__________________
My Steam Profile
My Discord Name: J0BL3SS#5320


J0BL3SS is offline
Reply


Thread Tools
Display Modes

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 00:24.


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