Augs Mutator

All multiplayer related discussion.

Moderator: Forum Guards

Augs Mutator

Postby Trailmix » Mon May 09, 05 12:20 am

I had an idea of twisting Deus Ex augs. A mutator that allows augs to run forever. I asked TheSheep to code it and he did. It's in the testing period now cause it keeps making my DX GPF. So what do you guys think of this?

It'd be a good experience for new aug players to get the feel of augs and practice with them. When they're good, they move on to bio-draining.
Image
Trailmix
Poster
 
Posts: 205
Joined: Tue Nov 16, 04 6:44 am
Location: California, USA

Postby Bobo. » Mon May 09, 05 12:48 am

Ah yes....TheSheep my old mapping/coding pro :D
Bobo.
Forum Hero
 
Posts: 2147
Joined: Tue Apr 13, 04 5:36 pm
Location: MatterFacker Island

Postby Bob » Mon May 09, 05 11:56 am

TheSheep used to be a DF member, right?

And yeh, tell us more trail, what are the whole effects of this mutator?
Bob
Forum God
 
Posts: 8552
Joined: Sun Apr 25, 04 9:14 pm
Location: Scotland - Marco's House =P

Postby Bobo. » Mon May 09, 05 12:18 pm

Yeah,Lordz and DF rofl
Bobo.
Forum Hero
 
Posts: 2147
Joined: Tue Apr 13, 04 5:36 pm
Location: MatterFacker Island

Postby kBo » Mon May 09, 05 12:32 pm

Just infinite bio I guess so the augs never run out.
"Phreaking doesn't exist. It's an abstract concept that is blindly supported by the collective consciousness of a flakey subculture. You saw nothing."
User avatar
kBo
Master
 
Posts: 1698
Joined: Wed Dec 24, 03 2:52 pm
Location: North Carolina, USA

Postby Dejavu » Mon May 09, 05 3:22 pm

that would a be a good idea. i just have one newbie on training and he is so happy with his speed augmentation (as long as he has bio).
Dejavu
Regular
 
Posts: 384
Joined: Sun Sep 07, 03 2:22 pm

Postby Dae » Mon May 09, 05 3:32 pm

It's in the testing period now cause it keeps making my DX GPF

what are you testing in it? :shock: infinite bio can be done via a couple of set commands, in mutator its the same, 3-4 lines of code, i think.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Trailmix » Mon May 09, 05 3:55 pm

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
   }
 }
}


AugMutator.int
Code: Select all
[Public]
Object=(Name=AugMutator.AugMutator,Class=Class,MetaClass=Engine.Mutator,Description="Aug mutator, Augmentations run constantly and don't drain energy")
Preferences=(Caption="Aug Mutator",Parent="Mutators",Class=AugMutator.AugMutator,Immediate=True)
Image
Trailmix
Poster
 
Posts: 205
Joined: Tue Nov 16, 04 6:44 am
Location: California, USA

Postby AlexDenton » Mon May 09, 05 7:05 pm

aug.EnergyRate=0; //no drain

there you have it
Hey! Hey, Guys! Check My Girlfriend's Rack!
Image
User avatar
AlexDenton
Forum Legend
 
Posts: 5694
Joined: Fri Jun 18, 04 9:57 pm
Location: Passed out in a hotel bathroom.

Postby Dae » Mon May 09, 05 7:36 pm

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
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Trailmix » Thu May 12, 05 6:45 am

TheSheep:
Fair cop on the "type this command" statement, if there was some way to bypass the issue that not every person in the server, if any, are admins. And I think "set" probably uses a foreach-style iterator. Which brings me onto my next point...
The comment on the iterator is just plain wrong. foreach is sloppy for inventory or augs because it has such a slow hit rate and takes up valuable cycles on the host machine. It cycles through every single actor in the map, does a ClassIsChildOf check, and processes each one in turn. The "aug" linked list goes through about a dozen. Woosh.

In conclusion, fair points but I stand by my code. Well, most of it


And if you were to use that admin code, Dae, wouldn't each copy of the mutator need to be custom?
Image
Trailmix
Poster
 
Posts: 205
Joined: Tue Nov 16, 04 6:44 am
Location: California, USA

Postby clyzm » Thu May 12, 05 7:20 pm

Augs mutator, good idea :)
Image
User avatar
clyzm
Forum Master God
 
Posts: 16023
Joined: Sun Nov 28, 04 2:48 am
Location: Chiraq

Postby Alistair » Thu May 12, 05 8:00 pm

admin human energy 99999999999999999
:D
User avatar
Alistair
Forum Hero
 
Posts: 2575
Joined: Sun Jan 30, 05 2:02 pm
Location: England, UK

Postby Jeoh » Thu May 12, 05 8:48 pm

You'll run out that way.
Jeoh
Forum Legend
 
Posts: 5937
Joined: Tue Jan 20, 04 2:03 pm

Postby Trailmix » Thu May 12, 05 11:43 pm

And you'll have to reset it everytime which is what GG an i did at stealth training. :wink:
Image
Trailmix
Poster
 
Posts: 205
Joined: Tue Nov 16, 04 6:44 am
Location: California, USA

Postby clyzm » Sat May 14, 05 8:27 pm

That got annoying :S

"trail, can you reset the energy?"
Image
User avatar
clyzm
Forum Master God
 
Posts: 16023
Joined: Sun Nov 28, 04 2:48 am
Location: Chiraq


Return to Multiplayer

Who is online

Users browsing this forum: No registered users and 10 guests
cron