Data Realms Fan Forums
http://45.55.195.193/

Dummy Assault
http://45.55.195.193/viewtopic.php?f=4&t=18953
Page 1 of 1

Author:  Frostilicus [ Thu Jun 10, 2010 7:33 pm ]
Post subject:  Dummy Assault

Anyone else come across the dummies killing their own brain?
I think it has to do with this, here (Alert-mode, dummy creation):
Code:
if y > 0.05 then
            actor = CreateAHuman("Dummy");
            actor.Team = 1;
            local z = math.random();
            if z < 0.5 then
               actor.AIMode = Actor.AIMODE_BRAINHUNT;
            elseif z < 0.75 then
               actor.AIMode = Actor.AIMODE_GOTO;
               actor:ClearAIWaypoints();
               actor:AddAISceneWaypoint(self.SearchArea:GetRandomPoint());
            else
               actor.AIMode = Actor.AIMODE_GOTO;
               actor:ClearAIWaypoints();
               actor:AddAIMOWaypoint(self.CPUBrain);
            end
            actor:AddInventoryItem(CreateHDFirearm(self.WList[math.random(#self.WList)],"Dummy.rte"));
            if math.random() > 0.1 then
               actor:AddInventoryItem(CreateTDExplosive(self.BList[math.random(#self.BList)],"Dummy.rte"));
            end
            actor:AddInventoryItem(CreateHDFirearm("Turbo Digger"));

the
Code:
actor:AddAIMOWaypoint(self.CPUBrain);


Looks like changing it to this worked:
Code:
if y > 0.05 then
            actor = CreateAHuman("Dummy");
            actor.Team = 1;
            local z = math.random();
            if z < 0.5 then
               actor.AIMode = Actor.AIMODE_BRAINHUNT;
            else--if z < 0.75 then
               actor.AIMode = Actor.AIMODE_GOTO;
               actor:ClearAIWaypoints();
               actor:AddAISceneWaypoint(self.SearchArea:GetRandomPoint());
            --else
            --   actor.AIMode = Actor.AIMODE_GOTO;
            --   actor:ClearAIWaypoints();
            --   actor:AddAIMOWaypoint(self.CPUBrain);
            end
            actor:AddInventoryItem(CreateHDFirearm(self.WList[math.random(#self.WList)],"Dummy.rte"));
            if math.random() > 0.1 then
               actor:AddInventoryItem(CreateTDExplosive(self.BList[math.random(#self.BList)],"Dummy.rte"));
            end
            --actor:AddInventoryItem(CreateHDFirearm("Turbo Digger"));

Although, I guess I could have left the turbo digger, the only reason they were using it to kill their brain is because that was the only way to get to it....

Author:  Petethegoat [ Thu Jun 10, 2010 7:36 pm ]
Post subject:  Re: Dummy Assault

Hum. The timing of this is rather convenient.
It is a known issue, and it will be fixed next build.

Your solution is the same as the one in my Unofficial Cortex Command Patch.
Good job, nevertheless.

Author:  CaveCricket48 [ Thu Jun 10, 2010 7:39 pm ]
Post subject:  Re: Dummy Assault

I think the way point is being set to the brain to make dummies go on the path that players might take going to the brain and then the dummies would attack the players, but the dummies kill the brain instead.

Author:  Frostilicus [ Thu Jun 10, 2010 8:17 pm ]
Post subject:  Re: Dummy Assault

Petethegoat wrote:
Hum. The timing of this is rather convenient.
It is a known issue, and it will be fixed next build.

Your solution is the same as the one in my Unofficial Cortex Command Patch.
Good job, nevertheless.

Ahh. See, I tried looking for a post on the topic, but couldn't find it.
I noticed it way back when I first bought CC, but never really did anything with it....
All I had done previously was tweak some user created vaporware (i guess) mods (imo it works in this case :D ) so they would work.... Bad references because of a previous version or summat for the most part.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/