Forum

ASSIST, AMERICA'S ARMY COMMUNITY - RELIVE THE GLORY DAYS OF AMERICA'S ARMY 2.5

Author Topic: Respawn For AA2.5  (Read 11677 times)

0 Members and 1 Guest are viewing this topic.

Offline LEEFFM

Respawn For AA2.5
« on: Wednesday, February 10, 2016, 12:55:47 PM »
i have made a Respawn gamemode mod for AA2.5!

Tested on LAN seems to work great.

- Unlimited Respawn
- 1v1 Respawn
- Auto Respawn 5 seconds after death.
- SpawnProtection for 10 seconds after respawn. (cant be killed)

If Assist added this mod all you would need to do is edit the server.ini (aa25srv.ini) and add:
Code: [Select]
[Engine.Engine]
DefaultServerGame=Assist_GamePlay.AGP_GameTeamObjectiveRespawn

Code: [Select]
[Engine.GameEngine]
ServerActors=Assist_GamePlay.Respawn_Main

AGP_GameTeamObjectiveRespawn.uc:
Code: [Select]
class AGP_GameTeamObjectiveRespawn extends AGP_GameTeamObjective;

state MatchInProgress
{
    function CheckScore(PlayerReplicationInfo Scorer)
    {
        super(AGP_GameDeathMatch).CheckScore(Scorer); // allows respawn
    }
}

Respawn_HumanController.uc:
Code: [Select]
class Respawn_HumanController extends HumanController;

var Respawn_main RM;

event PreBeginPlay ()
{
    super.PreBeginPlay();
    RM=Spawn(Class'Respawn_Main');
    Level.bAllowRespawn = true;
}

state Dead
{
    function BeginState()
    {
        super.BeginState();
        Level.bAllowRespawn = false;
        RM.settimer(5,false);
    }

}

Respawn_main.uc:
Code: [Select]
class Respawn_Main extends Mutator;

var array<AGP_PlayerStart> Spots;

event PreBeginPlay()
{
Level.Game.BaseMutator.AddMutator(self);
    Level.Game.PlayerControllerClassName="Assist_GamePlay.Respawn_HumanController";
    Log("Original Mod by -{DG}-Crusade Modified by BnA.^ LEEFFM",'RespawnMod');
Log("Respawn_Main Loaded",'RespawnMod');
    Level.bAllowRespawn = true;
}

function respawn(PlayerController Sender)
{
local AGP_PlayerStart StartSpot;
local byte i;

i = 0;

foreach Level.AllActors(Class'AGP_PlayerStart',StartSpot)
{
if (StartSpot.TeamNumber == Sender.PlayerReplicationInfo.Team.TeamIndex)
{
Spots[i] = StartSpot;
i++;
}
}

StartSpot = Spots[ Rand(Spots.Length) ];

        if ( (Sender.PlayerReplicationInfo.bDead && Level.bAllowRespawn) || (Sender.PlayerReplicationInfo.bOnlySpectator) && Level.bAllowRespawn )
        {
            Sender.Pawn.Destroy();
            Sender.Pawn = Spawn(Sender.PawnClass,,,StartSpot.Location,StartSpot.Rotation);
            Sender.PlayerReplicationInfo.bOnlySpectator = false;
            Sender.Possess(Sender.Pawn);
            Sender.PawnClass = Sender.Pawn.Class;
            Sender.ClientSetRotation(Sender.Pawn.Rotation);
            if(Sender.Pawn.Class != None)
            {
                Sender.PlayerReplicationInfo.bDead = false;
                Sender.PlayerReplicationInfo.bOutOfLives = false;
                Sender.PlayerReplicationInfo.bIsSpectator = false;
                HumanController(Sender).SetStartupStage(1);
                Sender.bGodMode = True;
                settimer(10,false);
                enable('Tick');
            }
        }
}

function Timer()
{
    local PlayerController PC;

    foreach Level.AllActors(Class'PlayerController',PC)
    {
        if (PC.PlayerReplicationInfo.bDead)
        {
            Level.bAllowRespawn = true;
            respawn(PC);
        }else if (PC.bGodMode)
        {
            PC.bGodMode = false;
        }
    }
}
« Last Edit: Monday, February 15, 2016, 23:05:23 PM by LEEFFM »

Offline Vanoke

  • Epic Poster
  • ******
  • Posts: 1,760
  • Real war is to a GAME!!
    • View Profile
  • AA: =PUF=Vanoke
Re: Respawn For AA2.5
« Reply #1 on: Wednesday, February 10, 2016, 14:03:11 PM »
Leeffm when can i juse it ! and how to puth it in !
Super that you do this :)

Offline LEEFFM

Re: Respawn For AA2.5
« Reply #2 on: Wednesday, February 10, 2016, 14:13:40 PM »
It would have to be added to Assist by the Admins to be used with Assist.

i like the idea of Respawn untracked would be fun.

Offline Vanoke

  • Epic Poster
  • ******
  • Posts: 1,760
  • Real war is to a GAME!!
    • View Profile
  • AA: =PUF=Vanoke
Re: Respawn For AA2.5
« Reply #3 on: Wednesday, February 10, 2016, 14:30:39 PM »
It would have to be added to Assist by the Admins to be used with Assist.

i like the idea of Respawn untracked would be fun.
i can puth it on a cheat no honor but more good action !

Offline LEEFFM

Re: Respawn For AA2.5
« Reply #4 on: Wednesday, February 10, 2016, 15:12:40 PM »
It can not be added as a ServerMod for a cheat/mod server by a Server Admin, If you want Respawn in Assist then the Assist Admins have to add it meaning you have to ask Assist to add it and there would probably have to be be a vote.

Offline Vanoke

  • Epic Poster
  • ******
  • Posts: 1,760
  • Real war is to a GAME!!
    • View Profile
  • AA: =PUF=Vanoke
Re: Respawn For AA2.5
« Reply #5 on: Wednesday, February 10, 2016, 15:28:48 PM »
ask it first its simple and faster!

Offline -Vegeta-

  • Dedicated Poster
  • *****
  • Posts: 1,048
    • View Profile
  • AA: Vegeta
Re: Respawn For AA2.5
« Reply #6 on: Wednesday, February 10, 2016, 16:33:57 PM »
Its good for rushers like me. Some of the best fun I had was at the end of AA when respawn was every where.
Words are great possed but the tune is crap. A condeming fear strikes down
Things they cannot understand. An excuse to cover up weaknesses that lie within Lies
Laying your guilt and pain. On people that had no part in the molding of a life
That creates its destruction. Lies. Right before your very eyes
A reflection of the mistakes. To the end you will deny. Your part in the demise of a life
Lack of comprehension. Thriving on your cliche. Compelled by self-resentment
Reaching into the minds of those that created. The depression in which they
In which they drowned their flesh and blood. Lies. So easy to blame the
Everlasting fear on a pathetic attempt. To justify the ending of life. Lies
Right before your very eyes. A reflection of the mistakes. To the end you will deny
Your part in the demise of a life
Lack of comprehension. Thriving on your cliche. Compelled by self-resentment

Offline ~=W!CK!D=~

  • Epic Poster
  • ******
  • Posts: 1,614
    • View Profile
Re: Respawn For AA2.5
« Reply #7 on: Wednesday, February 10, 2016, 19:56:57 PM »
Ahahhhahahah trying to make it like bf3 or bf4

No thank you

Offline ~=W!CK!D=~

  • Epic Poster
  • ******
  • Posts: 1,614
    • View Profile
Re: Respawn For AA2.5
« Reply #8 on: Wednesday, February 10, 2016, 19:58:47 PM »
It would have to be added to Assist by the Admins to be used with Assist.

i like the idea of Respawn untracked would be fun.

Make ALL servers not to be tracked and I'll be happy lol

Offline Spanky

  • <?php echo $opinion .' is better.'; ?>
  • Administrator
  • Posts like a Spanky!
  • *
  • Posts: 10,893
    • View Profile
    • NatesComp.com
  • AA: tigobitties
Re: Respawn For AA2.5
« Reply #9 on: Thursday, February 11, 2016, 02:31:11 AM »
Under certain circumstances and, if a map was built for this purpose, this would be a really neat thing to have officially added.
It's like shaving your pubes to make your junk look bigger.
Might look bigger, but it aint.....

Offline LEEFFM

Re: Respawn For AA2.5
« Reply #10 on: Thursday, February 11, 2016, 12:31:56 PM »
A Respawn mode could be good for keeping new players, They would be able to play Respawn games until they got the hang of it and played tracked games.

Plus sometimes people just want to play the game and don't wanna wait lol.

Offline SupR3me-

Re: Respawn For AA2.5
« Reply #11 on: Thursday, February 11, 2016, 13:30:51 PM »
A Respawn mode could be good for keeping new players, They would be able to play Respawn games until they got the hang of it and played tracked games.

Plus sometimes people just want to play the game and don't wanna wait lol.

Totally Agree whit u dude gj on this 1 ;)

like to see this in assist.
Noting Personal Just Good Business

I have played with him a lot, I will uninstall the game if he cheats, you'll have my word. SupR3me don't get this as a challenge now :D
To clear this out: Supreme has been reported several times, and he has not been found guilty of using cheats/tricks/advantages in-game. Lets not get through easy hackusations.

Offline Alex

Re: Respawn For AA2.5
« Reply #12 on: Thursday, February 11, 2016, 20:15:50 PM »
Due to AA's static spawns, respawn mod would simply boil down to spawn rape, especially since you have to ready your gun when you spawn in AA. You'd have the other team just sitting there killing people before they can even shoot back.

Offline Ganja

Re: Respawn For AA2.5
« Reply #13 on: Thursday, February 11, 2016, 20:22:12 PM »
Due to AA's static spawns, respawn mod would simply boil down to spawn rape, especially since you have to ready your gun when you spawn in AA. You'd have the other team just sitting there killing people before they can even shoot back.

You can be invinsible when you spawn. I think that's how it was back then

Offline Spanky

  • <?php echo $opinion .' is better.'; ?>
  • Administrator
  • Posts like a Spanky!
  • *
  • Posts: 10,893
    • View Profile
    • NatesComp.com
  • AA: tigobitties
Re: Respawn For AA2.5
« Reply #14 on: Thursday, February 11, 2016, 21:28:32 PM »
Due to AA's static spawns, respawn mod would simply boil down to spawn rape, especially since you have to ready your gun when you spawn in AA. You'd have the other team just sitting there killing people before they can even shoot back.

I'm pretty sure there's a way to enable staticmeshes viewable by one team only. Simply, this would mean that a teams spawn might possibly be a room that the other team cannot enter.
It's like shaving your pubes to make your junk look bigger.
Might look bigger, but it aint.....

 

Download Assist

×

Download Game Client

Important: Battletracker no longer exists. However, old Battletracker accounts may still work. You can create a new 25Assist account here

Download Server Manager