Author |
Message |
carriontrooper
Joined: Mon Apr 13, 2009 12:27 pm Posts: 813 Location: Yogyakarta, Indonesia. A slice o' paradise.
|
Re: Problems with attaching brains on an actor (details inside)
So guys? any help here?
|
Thu Jun 04, 2009 2:28 pm |
|
|
whitty
Joined: Sat Jun 16, 2007 2:31 am Posts: 2982 Location: Texas
|
Re: Problems with attaching brains on an actor (details inside)
Basically, you want a brain unit that drops a brain(not dead) when its dead. Am I right?
|
Thu Jun 04, 2009 2:46 pm |
|
|
carriontrooper
Joined: Mon Apr 13, 2009 12:27 pm Posts: 813 Location: Yogyakarta, Indonesia. A slice o' paradise.
|
Re: Problems with attaching brains on an actor (details inside)
Yeah. Exactly like that.
|
Fri Jun 05, 2009 12:10 pm |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Problems with attaching brains on an actor (details inside)
function Destroy(self) MovableMan:AddParticle("Unpinned Brain"); end
That's basically it, though you do have to define it and the position and etc etc.
|
Fri Jun 05, 2009 2:00 pm |
|
|
carriontrooper
Joined: Mon Apr 13, 2009 12:27 pm Posts: 813 Location: Yogyakarta, Indonesia. A slice o' paradise.
|
Re: Problems with attaching brains on an actor (details inside)
Hmmm... so make the attached brain actually an attachable, and if the actor that it is attached to it is destroyed, make a new brain in its stead?
Some question though... let's assume the first (carrier) actor and the soon-to-be brain are both in the brain category. When the game starts I put the carrier actor (with the brainlike attachable) in as a brain that moves around. Then if it's dead it'll 'make' a new brain. Question is, will the game end first if the carrier actor dies?
|
Fri Jun 05, 2009 2:28 pm |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Problems with attaching brains on an actor (details inside)
On destroy self should activate within the same sim update; if you're lucky the brain will spawn and CC won't notice. If you're not, it won't.
|
Fri Jun 05, 2009 2:30 pm |
|
|
carriontrooper
Joined: Mon Apr 13, 2009 12:27 pm Posts: 813 Location: Yogyakarta, Indonesia. A slice o' paradise.
|
Re: Problems with attaching brains on an actor (details inside)
So, this is kinda unreliable?
Good... it'll make gameplay more interesting. Will try this out soon, and if it works I'll release it after tests.
|
Fri Jun 05, 2009 2:33 pm |
|
|
whitty
Joined: Sat Jun 16, 2007 2:31 am Posts: 2982 Location: Texas
|
Re: Problems with attaching brains on an actor (details inside)
Make its head gib into a dropship on your team and have the brain on your team in the dropship's inventory. Tadahhhh.
|
Fri Jun 05, 2009 5:03 pm |
|
|
carriontrooper
Joined: Mon Apr 13, 2009 12:27 pm Posts: 813 Location: Yogyakarta, Indonesia. A slice o' paradise.
|
Re: Problems with attaching brains on an actor (details inside)
Well, the 'brain' is not in the head, but rather attached to the torso. So you're saying to create a dropship that has the same sprite as the brain and the attachable, and have it pop in the game when the actor's dead?
|
Sat Jun 06, 2009 7:26 am |
|
|
whitty
Joined: Sat Jun 16, 2007 2:31 am Posts: 2982 Location: Texas
|
Re: Problems with attaching brains on an actor (details inside)
Have the body gib a dropship, and in the dropship's code just AddInventory the brain.
|
Sat Jun 06, 2009 3:05 pm |
|
|
|