Announcement

Collapse
No announcement yet.

Invasion question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Invasion question

    Has any made a mod where monsters only go after players only, in invasion??? I notice on my server sometimes the fight among themselves sometimes.

    #2
    They only fight amongst themselves if they damage each other. I think it's pretty cool. I remember using that trick to help clear out rooms in Doom

    Comment


      #3
      Indeed, it's a nice feature. But there should be mods that disable that.
      And yes, some levels would be hard if there wasn't that feature in Doom

      Comment


        #4
        In the monsters "code" you have to tell them (the monsters) who their friends are...

        in other words you have to tell them not to attack other "monsters"...

        when you see monsters fighting each other it means they don't "recognize" the other monsters as allies....

        With the number of custom monsters out there it can be very difficult to take them all into account in the code......

        Comment


          #5
          If class is a child of class SkaarjPack.Monster...
          It's a feature, if something hits the monster, it changes it's aggressiveness towards the pawn that hit it.

          Comment


            #6
            Code:
            	bNewMonsterEnemy = bHateMonster && (Level.Game.NumPlayers < 4) && !Monster(Pawn).SameSpeciesAs(NewEnemy) && !NewEnemy.Controller.bIsPlayer;
            	if ( !NewEnemy.Controller.bIsPlayer	&& !bNewMonsterEnemy )
            			return false;
            In other words monsters attack others IF:
            - Monster was shot by the attacker.
            - Theres lesser than 4 players in the server.
            - Monster is not same "species" as the attacker.
            Or if attacker is player controlled.

            Thats the default UT2004 behaviour, however custom mods may override that.

            Comment


              #7
              One question will it effect the friendly monsters in RPG???

              Comment


                #8
                Monsters only attack monsters of a different species. So a pupae won't attack another pupae, but a pupae will attack that krall which just stepped on it xD

                Comment


                  #9
                  Anyone up for the challenge of making this little mod??????

                  Comment

                  Working...
                  X