Announcement

Collapse
No announcement yet.

no weapon

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

    no weapon

    I have added a no weapon feature to my game. I did this by adding a invisible weapon into the actors hands. It works, however there are two problems.

    1) The weapon will start with one round. If I set the ammo or magazine size to zero, the weapon will fire with -1, -2, -3 ammo etc.

    2) After the clip is empty, the weapon will still fire with an emtpy weapon sound playing.

    How can I resolve these problems? Idealy I would like to swtich the fire on the weapon to a punching animation, and with no empty weapon sound.

    #2
    You could try something like this in the Weapon code:

    Code:
    simulated function bool StartFire(int Mode)
    {
        return false;
    }

    Comment

    Working...
    X