Garry's Mod

Garry's Mod

158 ratings
Life Line: A Life System
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
38.891 KB
7 Aug, 2017 @ 10:25pm
18 Aug, 2017 @ 11:27pm
9 Change Notes ( view )

Subscribe to download
Life Line: A Life System

Description
This is a life system script that allows you to lose all your health a certain number of times before death. Pretty much how it works is you specify how many lives you want and it displays them on screen. When you lose all your health it restores it to a given value and takes a life while playing a warning sound. After a given amount of seconds(if enabled), lives will regenerate and play another sound. Simple. All these things are customizable through the options menu under “Life Line Options.”

Pictured above are some different orientations and positions. Just some ideas. The video shows the general workings of the mod. The lives are in the top right corner. Pay attention to my health and the symbols. I have the regen time set to 15 seconds and the fade time set to 90%.

Couple things to note: READ PLEASE
  • This was ghetto coded together in a few days. It’s not perfect but should work pretty well. Fill free to list bugs if any.
  • THIS DOES NOT WORK ONLINE! ONLY IN SINGLE PLAYER! Eventually when I'm done with this I might create a new version for servers. Not likely to be soon unless requested a lot, since I don't play online. Contact me if you wish to do that work for me.
  • The scale option should be fixed and I added an option to control the fade speed.
  • Do yourself a favor and import your own custom life symbol if you're not using BF4 HUD. Also since the other ones I inlcuded kinda suck.
  • I will update this if I find mistakes or make any improvements.
  • If you change the orientation and the HUD moves off screen just mess with your offsets.
  • The number of lives can affect the alignment. 5 lives and 2 lives with center orientation require different offsets to get them center.
  • If you change the number of lives to a lower number mid game, they will not regenerate past that number.
  • If you change the regen time, it won't apply until the next life is lost or gained.
  • I’ll take suggestions on features for this mod. So if you have any ideas let me know.

Console commands: (just use the options menu though)
Server: Yes I know they should start with "sv"
  • cl_number_of_lives : number of lives you get.
  • cl_max_health : health to be reset to.
  • cl_life_use_sound : path to sound to be played when a life is used.
  • cl_life_give_sound : path to sound to be played when a life is regenerated.
  • cl_life_regeneration : whether lives should regenerate.
  • cl_life_regen_time : how long it should take to regenerate a life.
  • cl_life_blink : when the next life should blink before replenished.
  • cl_life_damage_carryover : if damage should carry over between lives.
Client:
  • cl_lifehud_divide : space in pixels between symbols.
  • cl_lifehud_custom_symbol : custom symbol to be used for life 1.
  • cl_lifehud_symbol : 1: custom, 2: hearts, 3: hollow circle , 4: whole circle.
  • cl_lifehud_ver_offset : offset from bottom.
  • cl_lifehud_hor_offset: offset from middle screen.
  • cl_lifehud_orientation: -1: lef to right. 0: center. 1: Right to left. 2: top to bottom. 3: bottom to top.
  • cl_lifehud_scale: sets the scale of the symbols.
  • cl_lifehud_blink_speed: how fast the partly regenerated symbol should blink. 1: crazy slow. 30: crazy fast.

Credits:
Code: Me
Code Resources: BR KatBuggie’s BF4 HUD for coding HUDs
Custom Symbol 1: BR KatBuggie’s BF4 HUD
Sounds: Some random 1100hz beep I found online. I repeated it three times and changed pitch.
Other life symbols: google images…
Map: gm_freespace_13
Gloves: Custom Bucker Gloves redone by me.
Guns: Part of a pack I'll release at some point. This particular model is from Rinic, redone by me.
Popular Discussions View All (3)
9
15 Jun, 2020 @ 8:00pm
Bugs or Issues
<[MIA]>.GEN.P!KE.ARMY
4
15 Aug, 2017 @ 9:19am
Ideas or Recommendations For Features
<[MIA]>.GEN.P!KE.ARMY
0
14 Mar, 2024 @ 5:42pm
Bug
7777 Tʜɛ Ӻ๑๛∂ß¡tξr
68 Comments
<[MIA]>.GEN.P!KE.ARMY  [author] 27 Dec, 2022 @ 5:28pm 
I'm sorry to hear that. Unfortunately I don't play gmod anymore so this probably won't be fixed anytime soon.
Shadow 25 Dec, 2022 @ 4:03pm 
garry's mod is soo fucking trash and garbage these days that even with buddha this mod does not work.
Seawhite 2 Feb, 2020 @ 4:55pm 
Did you just predicted the future of Half Life Alyx?
Sazuzaki 17 Dec, 2018 @ 8:22pm 
Damn I wish this worked online
The Trollge 4 Dec, 2018 @ 2:34pm 
This is how we kill animes, centurion you fight for a good cause!
<[MIA]>.GEN.P!KE.ARMY  [author] 4 Dec, 2018 @ 2:21pm 
Haha this gave me a good laugh. Thanks for the comment and glad you enjoy it.

Fight on noble Centurion, bring honor to your homeland! With this tool, many more will fall by your fists! No longer will esteemed wariors be smote down by the dreaded wombo combo. No headcrabs, poison or not, can stop your quest for vengence. *Salutes*
ballsaSTEEL2001 4 Dec, 2018 @ 1:32pm 
I fucking love this mod, cause it saves your ass from all those cheap ass deaths- like a horribly timed jump or a certain swim in toxic water. More likely however, is a death trap of fast headcrabs and poison ones, too. That wombo combo has doomed more people than Men can count, and countless shambling bodies still remember that moment. Not I; beset on all sides, I can live to fight again! It's so real, too! I know myself, and I have a blissful amount of anger and rage. I picture the Centurion, surrounded and being wailed on by claws or bullets all around him. And popping one of his crosses, he bursts in a rage of vengeance and fury. Letting out a fearsome battle cry as he wails back on his assailants and puts them back into their place. I /am/ the Centurion, /they/ are the wind behind my fist as I bank it in their flesh and stain it with the bruise of the inferimus. V A L E O
The Trollge 15 Apr, 2018 @ 5:56am 
In danger? yes, Doomed? I think not!
Aleksander3453 5 Apr, 2018 @ 8:06am 
I do not understand...
Why every reviving mod on the gmod workshop is being deleted??!?!? (excluding Filzos one)
Reviving in video games are a great addition to gameplay, makes the game more co-op like.

and @Lieutenant, how did the Rage Revive mod work?
<[MIA]>.GEN.P!KE.ARMY  [author] 24 Jan, 2018 @ 6:13pm 
Glad you like it. I am not familar with the mod but I do love the game, and yeah it is simular now that you mention it!