Page 1 of 1

Team Scripted Pawns

Posted: Fri May 08, 2020 5:03 am
by Deepu
How to make a team scripted like a bot or player without using bIsPlayer option, normal ScriptedPawn has no killing msgs when we kills a monster we can not able see any killing like "You killed Archon. also bot treat ScriptedPawn as a enemy in our own team.

Re: Team Scripted Pawns

Posted: Fri May 08, 2020 6:43 am
by EvilGrins
Try this... they're not listed under ScriptedPawns, they're altered TeamCannons that look like monsters and behave like monsters.
EvilGrins wrote: Sat Dec 28, 2013 9:28 pmI've had a few challenges with them, but ultimately I like the TeamMonsters. Setting them up on maps, skinning them appropriately with team colors, and seeing how it turns out. Not so great with bots, for some reason bots on Red Team can't see them... which is a general monster issue in anything outside of Deathmatch.
Image

This Red Team Skaarj, of which I have 2 on this map edit I'm doing, is kinda useless. If there was a blue team on the map it would hunt them down and shred them but it largely ignores other monsters... unless one of them hits/shoots it...

...and then it will chase the thing down to the ends of the map to kill it, and anything else that shoots it along the way.

It remembers each time it got shot and will go after any of those monsters that did it until they're all dead.
Image

I typically pick Skaarj Berserkers for this sort of thing, as they're big and so powerful... which I amp up considerably. I take away it's energy attacks so it has to fight in close and claw its victims to shreds... and it doesn't attack the Red Team, which we like just fine.

Periodically when I've got a bunch of monsters chasing me, more than I can handle, I hop behind the TeamMonster so all incoming fire hits it and it can go kill them for me. Wimpy? Sure... but effective.

Re: Team Scripted Pawns

Posted: Fri May 08, 2020 7:33 am
by Deepu
I already tried this one, but you still not get any kill msgs when kills a monster

Re: Team Scripted Pawns

Posted: Fri May 08, 2020 8:44 am
by EvilGrins
Deepu wrote: Fri May 08, 2020 7:33 amI already tried this one, but you still not get any kill msgs when kills a monster
Well, short of UTDMW or UTDMT...
Image
...the only other monsters I know of that would do as you want are converted player models:
Image
Or the MonsterMadness mutator/gametype... but they only work on the Gold Team:
Image

Re: Team Scripted Pawns

Posted: Fri May 08, 2020 9:32 am
by Deepu
UTDMT is bIsPlayer=True, also it appears in scoreboard and orders menu.

Re: Team Scripted Pawns

Posted: Fri May 08, 2020 11:51 pm
by sektor2111
Bot attitude, messages, monster behavior are part of another game controller not what BotPack has.

Re: Team Scripted Pawns

Posted: Sun May 10, 2020 12:32 am
by Deepu
sektor2111 wrote: Fri May 08, 2020 11:51 pm Bot attitude, messages, monster behavior are part of another game controller not what BotPack has.
For example when monster takes hit from it's owner, monster will fly from the ground because of the weapon's momentum, after landing time monster still walks they decided located, the result Brute or other monsters shows the hit anim, like guthit, lefthit, righthit. After landing to the ground, monster still walks and the anim gets bugged it's shows last guthit anim still until they reaches decided location, if they location reached it will update to walkanim otherwise it stays at last guthit, lefthit or righthit anim. This problem is happening with Krall, all brutes, Slith, Mercenary, Skaarj. Not happening with puape, or fly

Re: Team Scripted Pawns

Posted: Sun May 10, 2020 6:37 am
by sektor2111
Bad animations in ScriptedPawn, they do look like quickly running in air while they fall.

Re: Team Scripted Pawns

Posted: Sun May 10, 2020 10:06 am
by Deepu
Is that fixable?

Re: Team Scripted Pawns

Posted: Sun May 10, 2020 10:32 pm
by sektor2111
I did not figure a solution yet or how do setup party. I think is about their animation data. Here is doable:
- Screwing main packages - Or
- Replacing functions with whatever XC mapped package
I have to look at these... some day maybe my expanded MonsterHunt will be indeed a MonsterHunt thingy... and/or the rest of similar things...

Re: Team Scripted Pawns

Posted: Mon May 11, 2020 4:54 am
by Deepu
Okay, how to exclude scripted pawn showing on the scoreboard?

Code: Select all

for ( i=0; i<32; i++ )
    {
        if (PlayerPawn(Owner).GameReplicationInfo.PRIArray[i] != None)
        {
            PRI = PlayerPawn(Owner).GameReplicationInfo.PRIArray[i];
            if ( !PRI.bIsSpectator || PRI.bWaitingPlayer  && !p.IsA('ScriptedPawn') )
            {
                PlayerCount++;
                PlayerCounts[PRI.Team]++;
                TeamPing[PRI.Team] += PRI.Ping;
                TeamPacketLoss[PRI.Team] += PRI.PacketLoss;
            }
        }
    }
I added this code scoreboard but it's not working