Announcement

Collapse
No announcement yet.

Making VERY simple weapon

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

    Making VERY simple weapon

    I am trying to make a weapon, specifically a subclassed ShockRifle, called DiscriminatingShockRifle. All it needs to do is when alt-fired, it ONLY affects Bots. I think I have to subclass ShockProjectile and modify the ProcessTouch function. Am I close? To tell if it is a bot isn't there a isHumanControllable() function? Which classes do I need to subclass to make this work? Thanks.

    #2
    No one has any hints?

    Comment


      #3
      Are you doing this for a class?

      Comment


        #4
        Yes I am. I'm just trying to find out as much as I can since their isn't a lot of documentation on this stuff.

        Comment


          #5
          You might to try playing with the HurtRadius. It's part of Actor.

          Comment


            #6
            So I would have to make a new HurtRadius method. I do believe that HurtRadius is declared final. But I noticed in the ShockProjectile class in ProcessTouch, HurtRadius is never called. I am confused then how this works.

            Comment


              #7
              or in a GameRules::NetDamage you could remove damage ( and momentum ) for humans for that DamageType.

              Comment

              Working...
              X