View unanswered posts | View active topics It is currently Fri Dec 27, 2024 9:45 am



Reply to topic  [ 5 posts ] 
 Will this work? Actor replacement. 
Author Message
User avatar

Joined: Fri Dec 28, 2007 4:19 am
Posts: 1119
Reply with quote
Post 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...


Mon Dec 21, 2009 7:05 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post 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.


Mon Dec 21, 2009 7:21 am
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Reply with quote
Post 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.


Mon Dec 21, 2009 10:35 am
Profile
User avatar

Joined: Fri Dec 28, 2007 4:19 am
Posts: 1119
Reply with quote
Post Re: Will this work? Actor replacement.
Does it work on brain units though?


Mon Dec 21, 2009 5:38 pm
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Will this work? Actor replacement.
Yes, as it does it in one frame so you don't have a gap with no brain.


Tue Dec 22, 2009 4:45 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.180s | 15 Queries | GZIP : Off ]