Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → co-op mp
co-op mp
2004-03-18, 6:44 PM #1
Ok im making a co-perative mp level. Natrauly if this is going to work ill need ai. So how do I add ai into mp. I herd that it was different to sp.

------------------
Nightfire Mod
Spoting an error in post will result in a $100 reward.
Offer expires on 6/6/06. Valid one per customer, per day.

Rangi
2004-03-19, 4:27 AM #2
Make a COG that Creates AIs. E.G:
Code:
symbols

message    entered
thing      ghostpos
template   enemy
sector     behindadoor
int        numberofenemies
int        i    local

end
#
code
entered:
        If(GetSenderRef()!=behindadoor) return;
        for(i=0; i<=numberofenemies; i=i+1)
        {
          CreateThing(enemy,ghostpos);
          sleep(0.25);
        }
return;
end

The delay in there is so that the enemies land ontop of each other and spread out instead of being inside each other. This could work...

/Edward
Edward's Cognative Hazards
2004-03-19, 4:57 AM #3
only trouble is they will be as unsynced as a unsynched gets....

i normaly edit the actor cog to add a pulse with the synchthing() statement.

------------------
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?

[This message has been edited by [SF]pjb (edited March 19, 2004).]
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2004-03-19, 10:16 AM #4
There is a cog available that will synch mp ai. Clicky clicky

------------------
I am Darth Slaw.
The Dark Lord of the Sith,
And part of the Nightfire mod team
May the mass times acceleration be with you.
2004-03-21, 2:24 PM #5
Quote:
<font face="Verdana, Arial" size="2">Originally posted by [SF]pjb:
i normaly edit the actor cog to add a pulse with the synchthing() statement.
</font>


So if you just put a phrase into its actor file it will be synched in mp? The ai_basic_jk.cog (or whatever it is) is a pain in that you have to tell the cog everything about the actor (keys etc). I have actors that are more complex than ai_basic_jk.cog (or whatever it is) can handle.
If your way works [SF]pjb, please share it!

------------------
nil nip nada zip zero naught lip zil
This is retarded, and I mean drooling at the mouth
2004-03-22, 4:00 AM #6
well it basicaly just syncs the things positon, allthough it might sync the keyframs i am not shure, but the AI seems to target the same thing so either thers nothing random about the targeting system of the AI or it syncs taht too.

either way a thingpulse with the syncthing statment works after teh actors been crated
EG.
Code:
created:
actor=getsenderref();
setthingpulse(0.05);
return;

pulse:
synchthing(actor);
return;

but you still need a cog to crate the actor as it wont be crated at startup... i got over that by makeing a template based on the ghost that at startup crated a AI at its positon... sped up adding AI in MP thats for shure.

------------------
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?

↑ Up to the top!