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 → MultiPlayer COG required
MultiPlayer COG required
2003-04-21, 1:59 AM #1
Hi!
I would like to know, is there a way to like...
I have a MP level and I want to do like, if a player strays from the battle field, and into a secret area, and happens to press a switch, how do I:
Make a COG tell another COG to start it's 60 second count down, and by the end of that cound down, a creature will appear, walk to different positions (I'll probebly need 8) and kill the first player he sees and then kick the dead player out of the game.

/Edward
Edward's Cognative Hazards
2003-04-21, 2:10 AM #2
LOL, i ahve no idea but that sound a halaious thing to do......(can you kick player out useing cog?)

------------------
I am pjb.
Another post......
another moment of my life wasted.....
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?
2003-04-21, 2:38 AM #3
lol it is a good idea indeed, but I dont think it is possible to kick a player through cog.

Instead what you can do is fake it using a different approach, maybe remove all control from the player, freeze him and then fade his screen completely black with a message saying "You have been kicked for bla bla bla, press Escape to exit the game".

That would then leave him with no choice but to leave, although of course he can choose to stay put with a black screen if he wants to :P There is also the option of locally crashing his Jedi Knight game through cog :P making it peform an illegal operation, but I dont think you want to go that drastic [http://forums.massassi.net/html/smile.gif]?

------------------
2003-04-21, 5:30 AM #4
Quote:
<font face="Verdana, Arial" size="2">
but I dont think you want to go that drastic
</font>

Hm......

Could you try this, as my computers are on either side of the flat.
Make a level, where there is a BIG gap between 2 rooms sepperated by 2 little mazes and A BIG play field (like 30m) then make a switch in one room, and then add this code AS IS!!!
Code:
# Crash
#
# By Edward
symbols

message    activated

surface    switch

sound      click

end
#
code
activated:
    If(GetSenderRef()!=switch) return;
    PlaySoundPos(click,GetSurfaceCenter(switch),1,-1,10,0xC0);
return;
end

Assign switch with that one switch in the level and any sound to the click and ask some people to join you, spread them out on the field like one per 10m and see if only you get kicked out or evryone.
Do not, I repeat, DO NOT make changes to the code, run it as is! I know my mistake, GetSurfaceCenter()!

/Edward


[This message has been edited by Edward (edited April 21, 2003).]
Edward's Cognative Hazards
2003-04-21, 8:10 AM #5
Quote:
<font face="Verdana, Arial" size="2">Originally posted by *_Seifer_*:
lol it is a good idea indeed, but I dont think it is possible to kick a player through cog.

Instead what you can do is fake it using a different approach, maybe remove all control from the player, freeze him and then fade his screen completely black with a message saying "You have been kicked for bla bla bla, press Escape to exit the game".

That would then leave him with no choice but to leave, although of course he can choose to stay put with a black screen if he wants to :P There is also the option of locally crashing his Jedi Knight game through cog :P making it peform an illegal operation, but I dont think you want to go that drastic [http://forums.massassi.net/html/smile.gif]?

</font>


Sounds good, but how does the host or admin isolate it so the cog only effects that person?



------------------
"You'll find life is full of surprises."
"You'll find life is full of surprises."
2003-04-22, 9:24 AM #6
that woudl ahve to be done useing client server cogs right? and you wouldent be able to kill the host anyway, i hate hosting buissness.

you would have to get the palyer as a variable and have eatch client cog check it that palyer was there palyer.

personaly i wouldetn bother kciking them, i would telliport them in to an observation room, from there they coudl see teh battle, but not be involved unless the host presses a hot key and then tehy would be put back... am i blathering? sorry i get exited to easaly.

------------------
I am pjb.
Another post......
another moment of my life wasted.....
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?
2003-04-22, 10:05 AM #7
Quote:
<font face="Verdana, Arial" size="2">Originally posted by [SF]pjb:
that woudl ahve to be done useing client server cogs right? and you wouldent be able to kill the host anyway, i hate hosting buissness.

you would have to get the palyer as a variable and have eatch client cog check it that palyer was there palyer.

personaly i wouldetn bother kciking them, i would telliport them in to an observation room, from there they coudl see teh battle, but not be involved unless the host presses a hot key and then tehy would be put back... am i blathering? sorry i get exited to easaly.

</font>


Hm... You gave me an idea... OK... A new COG!!! If possible...
What I'm aming at is like, there is this MP level with ONE BIG SECRET. Now this secret is someones home... And if you press the wrong button, he will know, come home, and shoot you. Then you will die, and then get kicked out of the game, like a Game Over thing. And why not get respawned? How does "Missing in action" sound? I just thought, you go to someones home, never seen a place like this before, you snoop around, and then this alien comes and kills you and drags your body away... Probebly going to prepare you for supper. Now I want this to go very quick so that you can't quite make out who it is or what he looks like!
Now that detention thing... That could be a problem, or? You see, people will know they are trapped, and they would either kill each other and get respawned back into the play field or type in KILL to get back into the game.
And as for the Host. I know, kick him out and the whole game will be lost. Hm... What if the guy who owns this place, if he sees the host, he won't kill. Instead, he chooses the Host and brings him to another place. Only the host is the chosen one. Like Mission to mars, or Close encounter of the 3rd kind, or any ubduction film.
Could someone eihter tell me step-by-step how to create this COG or Create this COG with step-by-steps in it. Like...
Code();
// This will make the guy recognise the Host
Code();
// This will kick the player out.
Code();
// This will make the player remember nothing of what he's seen...
and so forth

/Edward
------------------
[http://members.tripod.com/~loser4/myst3.gif]
Didn't you get my message?
sigh
Welcome to D'ni, you and I will spend the rest of eternity in here...
Atrus
Edward's Cognative Hazards
2003-04-23, 10:16 PM #8
Hello! Need that COG!
Edward's Cognative Hazards

↑ Up to the top!