Page 2 of 2

Re: looking for a mod, that can regenerate armor

Posted: Wed Nov 09, 2016 5:33 pm
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...

Re: looking for a mod, that can regenerate armor

Posted: Wed Nov 09, 2016 7:43 pm
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