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 → A idea for a cog.
A idea for a cog.
2004-08-21, 7:59 AM #1
when the payers dies, he rewspawn at a ghost position and don't need to restart the levels.(for a training level or so)

------------------
SpriteMod (JO 2003) Roger Wilco Skin
SpriteMod (JO 2003) Roger Wilco Skin

Snail racing: (500 posts per line) ---@%
2004-08-21, 9:22 AM #2
Hm... *scraches chin*
First off: SetSubModeFlags(0x1);
Secondly: Catch new player - I think... newplayer: Then teleport him to ghost!

I hope... Anyone care to fill in?

/Edward
Edward's Cognative Hazards
2004-08-21, 10:45 AM #3
I don't think so.
At least not in Single Player, since JK apparently "restarts" the level by loading a savegame that it took when it loaded.

I can only suggest that you try the AutoSave() cog command. If that doesn't work, then you're out of luck.

For MP however, this ghost-warping thing is probably feasible.

------------------
nytfyre m0d || f33l t3h p0w3r || t3h l0st c0gz || OMF > *
May the mass times acceleration be with you.
2004-08-22, 1:28 AM #4
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Darth Slaw:
I don't think so.
At least not in Single Player, since JK apparently "restarts" the level by loading a savegame that it took when it loaded.
</font>


Not if you set the submodeflags to 0x1...

------------------
Dear lady, can you hear the wind blow, and did you know
Your stairway lies on the whispering wind.
:wq!
And when the moment is right, I'm gonna fly a kite.
2004-08-22, 9:06 AM #5
Quote:
<font face="Verdana, Arial" size="2">Originally posted by GBK:
Not if you set the submodeflags to 0x1...</font>

Oh, ok. (I've never looked at sub mode flags before)

Since this is the case, G-Man, you could theoretically catch the respawned player via "newplayer" (as Edward said).
Code:
startup:
   SetSubModeFlags(0x1);
stop;
newplayer:
   TeleportThing(GetSenderRef(), ghost);
stop;

Something like the above might work.

------------------
nytfyre m0d || f33l t3h p0w3r || t3h l0st c0gz || OMF > *
May the mass times acceleration be with you.
2004-08-22, 9:25 AM #6
Ok will try it.

------------------
SpriteMod (JO 2003) Roger Wilco Skin
SpriteMod (JO 2003) Roger Wilco Skin

Snail racing: (500 posts per line) ---@%
2004-08-22, 11:35 AM #7
Nothing happens.

I'm not a good Cogger so please in cogform...

------------------
SpriteMod (JO 2003) Roger Wilco Skin
SpriteMod (JO 2003) Roger Wilco Skin

Snail racing: (500 posts per line) ---@%
2004-08-23, 11:53 AM #8
Anything new?

------------------
SpriteMod (JO 2003) Roger Wilco Skin
SpriteMod (JO 2003) Roger Wilco Skin

Snail racing: (500 posts per line) ---@%

↑ Up to the top!