Announcement

Collapse
No announcement yet.

Vehicles and Unlimited Ammo???

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

    Vehicles and Unlimited Ammo???

    I've got some custom code in my Turret's weapon class which forces it to stop firing when it runs out of ammunition. (Duh)

    Now here's the problem.

    When I LEAVE the turret, and RE-ENTER it, my ammo count is magically refilled to the max again, after I had just finished draining it only seconds before.

    It must be something in the Vehicle pawn code...because the Weapon is just a basic instantfire....but yeah.

    Any thoughts?

    #2
    Is there any mention of ammo in the (Client)KDriverEnter/Leave or DrivingStatusChanged events?

    Comment


      #3
      Could you show us some code? Could you store the ammo count in the vehicle? (i assume you have a custom vehicle)

      Comment


        #4
        Well on my way to fixing this, thanks.

        Comment

        Working...
        X