looking for a mod, that can regenerate armor

Need some nice Mods? Here, you are right!
User avatar
sektor2111
Godlike
Posts: 6403
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: looking for a mod, that can regenerate armor

Post by sektor2111 »

Barbie wrote:Is already anyone working on this?
No, I don't, I'm not coding any regenerator even I have some idea how to, without pawnlisting or foreaching anything - probably smoother like butter, but I'm interested about some God Mode regenerator if anyone has something accordingly :ironic: . Or if anyone will work at some score regenerator would be more fun... I gotta see what anything else must be regenerated - ops, I forgot, my bad, FlashLight or a portable TorchFlame.

Keep moving, I'm reading...
User avatar
PrinceOfFunky
Godlike
Posts: 1200
Joined: Mon Aug 31, 2015 10:31 pm

Re: looking for a mod, that can regenerate armor

Post by PrinceOfFunky »

Barbie wrote:Is already anyone working on this? If not, I could create a Pickup "ArmorRepair" that does the following in its timer (1s) routine, if a PlayerPawn has picked it up:
  1. look for PlayerPawn's armor inventory items whose charge is lower than its default value
  2. among these select the armor inventory item whose charge is lowest
  3. add a certain (configurable) amount to that inventory item's charge
  4. subtract that amount from own (configurable) charge; destroy myself if my charge is exhausted
What I still need then is a nice icon (a tool?) and sound while active. Any suggestions?


Putting this Pickup into game can then be done by mapper or a spawn mutator like SwarmSpawn.
If you would use the AdvancedMutator I made, you wouldn't need to create an entirely new pickup using the ValueSaver for the "regenerating" value, "DamageReduced()" to check for health changes and "PrioritizingArmor()" to check for armor charge changes. But well, it was just an advice, use what you want to use u.u lol
"Your stuff is known to be buggy and unfinished/not properly tested"
Post Reply