Respawning at place of coredump?(Split from "Tutorials!")

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
Post Reply
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Respawning at place of coredump?(Split from "Tutorials!")

Post by Light »

Z-Man, in the new tutorial I see that when you die, you are instantly respawned in the same location you died while the area still gets the blast. I was wondering if this was able to be done with settings or if it was just an added feature for the tutorial. I would like to try this in a server if it's possible. :)

Server Version: 0.2.9-sty+ct_alpha_r757 unix dedicated
User avatar
Z-Man
God & Project Admin
Posts: 11748
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Tutorials!

Post by Z-Man »

Those uber-instant respawns can't be configured, but if you activate the respawn hack (CXXFLAGS=-DRESPAWN_HACK at configure time), something similar is possible on 0.2.8 based servers.
User avatar
compguygene
Adjust Outside Corner Grinder
Posts: 2346
Joined: Thu Aug 21, 2008 12:09 pm
Location: Cleveland, Ohio
Contact:

Re: Tutorials!

Post by compguygene »

Alternatively, if you are running a sty+ct build, RESPAWN_TIME .1 will achieve a similar effect.
Armagetron: It's a video game that people should just play and enjoy :)
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Tutorials!

Post by Light »

compguygene wrote:Alternatively, if you are running a sty+ct build, RESPAWN_TIME .1 will achieve a similar effect.
Setting respawn time to 0 works too, if you wanted the instant, and -1 is off, but what I don't know how to do is get it to respawn where you died instead of where you spawned.
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Tutorials!

Post by Light »

If it's not possible I wouldn't really mind, but could ya let me know one way or the other? I would really like to try it out.

Spawning where you die.
User avatar
Jip
Round Winner
Posts: 397
Joined: Sat Sep 26, 2009 5:32 pm

Re: Tutorials!

Post by Jip »

Light wrote:If it's not possible I wouldn't really mind, but could ya let me know one way or the other? I would really like to try it out.

Spawning where you die.
It is possible with a ladderlog parser script and sty+ct.
You get the position with:

Code: Select all

PLAYER_GRIDPOS <name> <xpos> <ypos> <xdir> <ydir> <team name> 
and can respawn with:

Code: Select all

RESPAWN_PLAYER <playername> <messageflag> <posx> <posy> <dirx> <diry>
Look here for more info.

Maybe some mod can split this?
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Respawning at place of coredump?(Split from "Tutorials!"

Post by Light »

Ahh you're right. I kind'a ignored the idea of it because the death position ain't logged, but if I keep an array of current locations (within the second) upon death I can respawn there and it will be close to perfect.

Will try it out. :)
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Respawning at place of coredump?(Split from "Tutorials!"

Post by Light »

It works! :D

Thanks for pointin' me in the right direction.

If anyone's curious to see how it turned out, it's up on server "Light's Free For All Brawl". :)
Post Reply