View unanswered posts | View active topics It is currently Thu Mar 28, 2024 10:46 pm



Reply to topic  [ 6 posts ] 
 Badly Needed: Easy Request 
Author Message

Joined: Mon Jul 27, 2009 11:07 pm
Posts: 12
Reply with quote
Post 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.


Mon Jul 27, 2009 11:18 pm
Profile
User avatar

Joined: Wed Aug 27, 2008 6:44 am
Posts: 20
Reply with quote
Post Re: Badly Needed: Easy Request
Although Technicaly possible, team switching is bad and can cause game crashes.

also this is not easy to do


Wed Jul 29, 2009 5:15 am
Profile
User avatar

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


Wed Jul 29, 2009 5:21 am
Profile WWW
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Badly Needed: Easy Request
MooCow13 wrote:
team switching is bad and can cause game crashes

Recreate the actor.


Wed Jul 29, 2009 7:06 am
Profile
User avatar

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


Wed Jul 29, 2009 8:19 am
Profile WWW

Joined: Mon Jul 27, 2009 11:07 pm
Posts: 12
Reply with quote
Post Re: Badly Needed: Easy Request
Ok cool thanks.


Wed Jul 29, 2009 3:57 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 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.079s | 15 Queries | GZIP : Off ]