Data Realms Fan Forums http://45.55.195.193/ |
|
Badly Needed: Easy Request http://45.55.195.193/viewtopic.php?f=75&t=16038 |
Page 1 of 1 |
Author: | c0dy821 [ Mon Jul 27, 2009 11:18 pm ] |
Post subject: | Badly Needed: Easy Request |
Introduction:Hi I have been playing Cortex Command ever since the Cortex Command Station was up I started playing around build 8 and never stopped since. Request: Anyway I would like to request 2 simple bomb like vials, one green and one red. Basically all I want is a vial that an actor can carry and when taken, the actor will switch sides depending on what vial he/she took. Example: If a red actor was carrying a green vial, when taken, the actor will switch sides to a green actor and the red controller would no longer have control over the actor anymore. Same as if the vial were red, and the actor were green. The Point: I basically want 2 vials that switch an actors team, based on the color of the vial. |
Author: | MooCow13 [ Wed Jul 29, 2009 5:15 am ] |
Post subject: | Re: Badly Needed: Easy Request |
Although Technicaly possible, team switching is bad and can cause game crashes. also this is not easy to do |
Author: | Geti [ Wed Jul 29, 2009 5:21 am ] |
Post subject: | Re: Badly Needed: Easy Request |
yes it is. it is very easy. the hardest bit of this mod is the sprites, assuming you know how to attach a script and make the explosive gib RIGHTNOW Code: function Create(self) for a in MovableMan.Actors do if (a.Pos - self.Pos).Magnitude < 50 then --size of the proximity check a.Team = --1 for green, 0 for red end end end add that to a particle gibbed by a vial DONE! |
Author: | mail2345 [ Wed Jul 29, 2009 7:06 am ] |
Post subject: | Re: Badly Needed: Easy Request |
MooCow13 wrote: team switching is bad and can cause game crashes Recreate the actor. |
Author: | Geti [ Wed Jul 29, 2009 8:19 am ] |
Post subject: | Re: Badly Needed: Easy Request |
i tested this before, it looks like it works A-ok. but yeah, if its causing crashes just remake that ♥♥♥♥♥ and use the inventory handler. that way they'll also work as healing vials. |
Author: | c0dy821 [ Wed Jul 29, 2009 3:57 pm ] |
Post subject: | Re: Badly Needed: Easy Request |
Ok cool thanks. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |