Announcement

Collapse
No announcement yet.

"if the player killed the the enemy"

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

    "if the player killed the the enemy"

    {new_thread_prefill}within this framework, what do i have to
    replace [if the player killed the enemy ] with ?

    var int FragCount;

    function ScoreKill(Pawn Killer, Pawn Other)
    {
    if ((Killer != Other) && (Other != None) && (Killer != None))
    {
    if ( [if the player killed the enemy ] )
    {
    FragCount += 1;
    }
    else { [ enemy killed the player ]
    FragCount = 0;
    }
    }

    if ( (Other != None) && ((Killer == None) || (Killer == Other)) )
    {
    FragCount = 0;
    }

    Super.ScoreKill(Killer, Other);
    }

    defaultproperties
    {
    FriendlyName="Frag/Death Count Mutator"
    Description="Counts Frags since last death."
    }

    thx.

    #2
    Code:
    (Killer != None && Killer.Controller != None && Other != None && Other.Controller != None && !Killer.Controller.SameTeamAs(Other.Controller))

    Comment


      #3
      thanks. now what does it take to show the fragcount number on the hud ?

      Comment


        #4
        making your own hud? the wiki has a tutorial on it.

        Comment


          #5
          Originally posted by -GSF-JohnDoe
          making your own hud? the wiki has a tutorial on it.
          ok thanks. i will have a look.

          Comment


            #6
            Originally posted by GuntiNDDS
            ok thanks. i will have a look.
            Wouldn't an interaction be considerably less work, and work across gametypes?

            Comment


              #7
              Originally posted by neoflame
              Wouldn't an interaction be considerably less work, and work across gametypes?
              ? what ya mean ?

              Comment


                #8
                A HUD overlay would seem to be the easiest solution. Pretty easy and should do what you want.

                Comment

                Working...
                X