Trail wrote:I'm not sure about that either. But here's the code: And the .int file should be straightforward.
- Code: Select all
class AugMutator extends Mutator;
function ModifyPlayer(Pawn Other)
{
local Augmentation aug;
if(Other.IsA('DeusExPlayer')) //which it should be
{
for(aug=DeusExPlayer(Other).AugmentationSystem.FirstAug;
aug!=None;aug=aug.Next)
{
aug.EnergyRate=0; //no drain
aug.bAlwaysActive=True; //always on
}
}
}
I'm not a specialist, but i think that the iteration here is a bit complicated. I'd make it with
foreach and
Augmentation class, where we can see a magnificent variable EnergyRate which should be set to 0.
In other words, mutator should "type" this command just automatically instead of admin:
admin set augmentation.energyrate 0