Data Realms Fan Forums
http://45.55.195.193/

Will this work? Actor replacement.
http://45.55.195.193/viewtopic.php?f=73&t=17396
Page 1 of 1

Author:  DSMK2 [ Mon Dec 21, 2009 7:05 am ]
Post subject:  Will this work? Actor replacement.

Been wondering if this has been done before, but too lazy to test out myself. Is it possible for an actor to become another actor through pointers? Pseudo code time!

Code:
local toGo = self; --Need to delete old body
local temp = self;
temp = CreateAHuman("Some Actor");
temp.Pos = self.Pos;
self = temp;
toGo.ToDelete = true;  --Delete the old body
MovableMan:AddMO(self);


I'm seeing this in terms of full "regeneration", or being a infiltrator. Though I'm guessing the pseudo code is wrong...

Author:  Geti [ Mon Dec 21, 2009 7:21 am ]
Post subject:  Re: Will this work? Actor replacement.

Not that I know of, but for full regen you can just create a new body over the old one, and not bother with any of this pointer fiddling, and then remove self and take -1 kills off the killcounter.

Author:  Foa [ Mon Dec 21, 2009 10:35 am ]
Post subject:  Re: Will this work? Actor replacement.

DSMK, he knows how to seamlessly replace actors ( that is how he randomizes his actors in Zombies '09 ) by heart.
You may want to follow his advice or look at his lua scripting for the switch-a-roo technique.

Author:  DSMK2 [ Mon Dec 21, 2009 5:38 pm ]
Post subject:  Re: Will this work? Actor replacement.

Does it work on brain units though?

Author:  Geti [ Tue Dec 22, 2009 4:45 am ]
Post subject:  Re: Will this work? Actor replacement.

Yes, as it does it in one frame so you don't have a gap with no brain.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/