I'll take anything you have as a starting point because I'm sure some changes/tweaks will need to be made.

You know, I thought about that. The only thing that makes me not want to is because Fortress/Sumo are essentially the default settings, just more rubber and finite trails. I was hoping for something fresh. Let me tell you a little about what I have planned...LOVER$BOY wrote:Wouldn't the default settings from settings.cfg count as one?
Code: Select all
CYCLE_SPEED 10
CYCLE_START_SPEED 30
CYCLE_SPEED_MIN 1.4
CYCLE_RUBBER 3
CYCLE_RUBBER_TIME 1.5
CYCLE_RUBBER_MINADJUST 0
CYCLE_RUBBER_DELAY 0.3
CYCLE_RUBBER_DELAY_BONUS 0.3
CYCLE_ACCEL 30
CYCLE_WALL_NEAR 10
CYCLE_ACCEL_TUNNEL 0.5
CYCLE_ACCEL_SLINGSHOT 0.5
CYCLE_SPEED_MAX 4
CYCLE_SPEED_DECAY_BELOW 0.2
SP_SIZE_FACTOR -5
SIZE_FACTOR -5
WALLS_LENGTH 600
SP_WALLS_LENGTH 600
Would be quite easy. Disable respawn, set game type to 0, and then use a script to respawn with random x & y values.delinquent wrote:Will you see what you can do about random spawn points? I really want that.
Code: Select all
#!/usr/bin/php
<?php
$arena = array(500, 500);
while (!feof(STDIN))
{
$input = rtrim(fgets(STDIN, 4096));
$param = explode(" ", $input);
if (in_array($param[0], array('DEATH_FRAG', 'DEATH_SUICIDE', 'PLAYER_KILLED', 'DEATH_SHOT_FRAG', 'DEATH_DEATHZONE', 'DEATH_SHOT_SUICIDE', 'DEATH_TEAMKILL', 'DEATH_SHOT_TEAMKILL')))
{
$tmp = array(-1, 1);
shuffle($tmp);
$x = rand(1, $arena[0] - 1);
$y = rand(1, $arena[1] - 1);
if (rand(0, 1) == 1)
{
$xdir = rand(-1, 1);
$ydir = $xdir == 0 ? $tmp[0] : 0;
}
else
{
$ydir = rand(-1, 1);
$xdir = $ydir == 0 ? $tmp[0] : 0;
}
print("RESPAWN_PLAYER {$x} {$y} {$xdir} {$ydir}" . "\n");
}
}
?>
Since we are on the subject, for a few years now I've wanted glTron spawn behavior. There a defined spawn points, but the x/y direction is random. It's what is driving the latest project of mine.Light wrote:Would be quite easy. Disable respawn, set game type to 0, and then use a script to respawn with random x & y values.
You're talking about the direction you face when spawned with predefined locations, right? And you need a script for it, or just talkin' about it? I couldn't tell.sinewav wrote:Since we are on the subject, for a few years now I've wanted glTron spawn behavior. There a defined spawn points, but the x/y direction is random. It's what is driving the latest project of mine.
Code: Select all
#!/usr/bin/php
<?php
$spawn = array(
array(250, 10),
array(490, 250),
array(250, 490),
array(10, 250)
);
while (!feof(STDIN))
{
$input = rtrim(fgets(STDIN, 4096));
$param = explode(" ", $input);
if (in_array($param[0], array('DEATH_FRAG', 'DEATH_SUICIDE', 'PLAYER_KILLED', 'DEATH_SHOT_FRAG', 'DEATH_DEATHZONE', 'DEATH_SHOT_SUICIDE', 'DEATH_TEAMKILL', 'DEATH_SHOT_TEAMKILL')))
{
$tmp = array(-1, 1);
shuffle($tmp);
$loc = $spawn[rand(0, count($spawn) - 1)];
$xdir = rand(0, 1) == 1 ? $tmp[0] : 0;
$ydir = $xdir == 0 ? $tmp[0] : 0;
print("RESPAWN_PLAYER {$loc[0]} {$loc[1]} {$xdir} {$ydir}" . "\n");
}
}
?>
Light wrote:And you need a script for it, or just talkin' about it? I couldn't tell.
Please do! For those of us (I am thinking me here) who are NOT php coders, but can hack it a little to customize it, that would allow for so much more variety and fun. I have suggested this to a few others who seemed headed that direction in the past, but nobody has done it. Another big plus in your case is that you already are using Launchpad, so you could do this in a way that would be around, even if you disappear! Yes, this is my begging!LOVER$BOY wrote:Wow! Cool sine.
I'm glad now that the scripts would be useful somewhere now
Now I wonder if I should start making php framework for the php scripts to use in servers...