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 → Respawn where you died
Respawn where you died
2001-12-30, 1:48 PM #1
I've actually seen this cog before, but now I cant find it....

But yeh, I need it. When your in a certain sector of say maybe 20 that can be inputted into the cog, then you respawn where you died. Any other sectors outside of those 20 and you just go to normal walkplayers.

I've seen it before.... but cant find it... yeh....
In my mind I can see your face, as Your love pours down in a shower of grace. Some people tell me that Your just a dream, but my faith is the evidence of things unseen.

Once upon a time God spoke to me, and then I was never the same again.

_-=MaTRiX=-_
2001-12-30, 6:38 PM #2
Hmm, Ill take a crack at this...


Code:
#12/2001 GBK
Symbols
Message Startup
Message Killed
Message Newplayer
Sector Target0
Sector Target1
Sector Target2
Sector Target3
Sector Target4
Sector Target5
Sector Target6
Sector Target7
Sector Target8
Sector Target9
Sector Target10
Sector Target11
Sector Target12
Sector Target13
Sector Target14
Sector Target15
Sector Target16
Sector Target17
Sector Target18
Sector Target19
Thing Player    Local
Template Type=Ghost   Local
Int Position=-1    Local
Int I=0   Local
End
Code
Startup: Player = JKgetlocalplayer(); Stop;
Killed: If(Getsenderref() != Player) Stop;
For(I=0;I<=19;I=I+1) {
If(Getthingsector(Player) == Target0) {
Position = Creatething(Type, Player); } } Stop;
Newplayer: If(Position == -1) Stop;
Teleportthing(Player, Position);
Destroything(Position); Stop;
End



I donno if it works, I just typed it into the box. But it should.. [http://forums.massassi.net/html/biggrin.gif]


For n00bs who would care to know, all this cog does is, upon the plyers death, check to see if he is in one of the 20 specified sectors. If so, it creates a ghost object at his position. When he respawns, it teleports him to said ghost position.


Bingo, problem solved.

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2002-01-01, 7:48 AM #3
Um.... no, doesnt work.... :-\
In my mind I can see your face, as Your love pours down in a shower of grace. Some people tell me that Your just a dream, but my faith is the evidence of things unseen.

Once upon a time God spoke to me, and then I was never the same again.

_-=MaTRiX=-_
2002-01-01, 10:34 AM #4
Anyone else noticed that you cant create a ghost in MP with 'Creatething'?

Code:
Position = Creatething(Ghost_type, Player);


It wont work if the 'Ghost_type' is 'Ghost'. But if you set it to something else, it works.

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2002-01-01, 3:23 PM #5
Raynor has to know about it. He must have fiddled with creating ghosts in mp bots.

------------------
http://millennium.massassi.net/ - Millennium

↑ Up to the top!