View unanswered posts | View active topics It is currently Sat Dec 28, 2024 4:38 am



Reply to topic  [ 4 posts ] 
 Can you do Co-op campaign? 
Author Message
User avatar

Joined: Mon Oct 19, 2009 9:04 am
Posts: 302
Location: Under Your Bed
Reply with quote
Post Can you do Co-op campaign?
I think i seen someone saying they did co-op campaign and now i wanna!
Can you do it?
Could someone make a mod that allowed you to?
Do you think that cortex will ever have that?


Sat Aug 21, 2010 5:26 pm
Profile YIM
User avatar

Joined: Sat Mar 13, 2010 5:52 am
Posts: 229
Reply with quote
Post Re: Can you do Co-op campaign?
In most of the scenes you can add
Code:
PlayerCount = 2
to its activity file.

Cortex Command\Missions.rte\Mission Activities.ini and place it like
Code:
AddActivity = GAScripted
   PresetName = Zombie Cave
   SceneName = Zombie Cave
   ScriptFile = Missions.rte/Scenes/Scripts/ZombieCave.lua
   InCampaignStage = 1
   LuaClassName = ZombieCaveMission
   PlayerCount = 2


and it should add a second non-brain character of some sort. Doesn't work with some scenes, because of Lua dependencies I think, I dunno hopefully someone can elaborate.


Sat Aug 21, 2010 9:36 pm
Profile
User avatar

Joined: Wed May 26, 2010 9:58 pm
Posts: 270
Location: [Insert ominous, personally significant and extremely obvious location Here, e.g. behind you]
Reply with quote
Post Re: Can you do Co-op campaign?
But I'm pretty sure you can just add another character into those scenes and set the player count to 2. It should work. Most of the time they're landing in a craft, and all of the other times there's more than one actor anyway, so you can just add another actor into the craft.


Sat Aug 21, 2010 9:57 pm
Profile WWW
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: Can you do Co-op campaign?
That's not how it works. You have to manually assign a brain to a player. If you only spawn an additional brain, it won't have any effect on the second player.

The vanilla missions are designed to work with multiple players by checking the PlayerCount, spawning additional brains if needed, and then assigning the brainss to players.

The mission script ALSO needs to keep track of which brain "belongs" to which player, and to keep players from doing anything if their brain died.


Sat Aug 21, 2010 10:35 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.029s | 15 Queries | GZIP : Off ]