PDA

View Full Version : A idea for a cog.



G-Man
08-21-2004, 10:59 AM
when the payers dies, he rewspawn at a ghost position and don't need to restart the levels.(for a training level or so)

------------------
Sprite (http://www.pcgamemods.com/1992)Mod (JO 2003) (http://jediknight.filefront.com/file.info?ID=16922) Roger Wilco Skin (http://www.pcgamemods.com/6871/)

Edward
08-21-2004, 12:22 PM
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

darthslaw
08-21-2004, 01:45 PM
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 (http://www.nightfire.uni.cc/site/page.php) || f33l t3h p0w3r (http://www.geocities.com/qrphome/pwp3/) || t3h l0st c0gz (http://www.tbns.net/GBK/ol/index.htm) || OMF > * (http://www.bkkbazaar.com/omf/)

gbk
08-22-2004, 04:28 AM
<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.
:w (http://shauri.hopto.org)q (http://www.massassi.net/levels/files/2533.shtml)! (http://shauri.hopto.org/polls.pl)

darthslaw
08-22-2004, 12:06 PM
<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).

startup:
SetSubModeFlags(0x1);
stop;
newplayer:
TeleportThing(GetSenderRef(), ghost);
stop;
Something like the above might work.

------------------
nytfyre m0d (http://www.nightfire.uni.cc/site/page.php) &#0124;&#0124; f33l t3h p0w3r (http://www.geocities.com/qrphome/pwp3/) &#0124;&#0124; t3h l0st c0gz (http://www.tbns.net/GBK/ol/index.htm) &#0124;&#0124; OMF &gt; * (http://www.bkkbazaar.com/omf/)

G-Man
08-22-2004, 12:25 PM
Ok will try it.

------------------
Sprite (http://www.pcgamemods.com/1992)Mod (JO 2003) (http://jediknight.filefront.com/file.info?ID=16922) Roger Wilco Skin (http://www.pcgamemods.com/6871/)

G-Man
08-22-2004, 02:35 PM
Nothing happens.

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

------------------
Sprite (http://www.pcgamemods.com/1992)Mod (JO 2003) (http://jediknight.filefront.com/file.info?ID=16922) Roger Wilco Skin (http://www.pcgamemods.com/6871/)

G-Man
08-23-2004, 02:53 PM
Anything new?

------------------
Sprite (http://www.pcgamemods.com/1992)Mod (JO 2003) (http://jediknight.filefront.com/file.info?ID=16922) Roger Wilco Skin (http://www.pcgamemods.com/6871/)