monkeydevDe / piLaz0rTag

Lasertag system on a PI
3 stars 0 forks source link

Create Weapons #26

Open tuxBurner opened 7 years ago

tuxBurner commented 7 years ago

It would be nice to have weapons as cfg like this:

weapons : [
  {
    name: 'Pistol',
    cost: 20
   strength: 25
    default_mags: 5
    default_rounds_per_mag: 15
   modes [
    { 
      type: single,
      delay: 300,
      sound: 'pistol_shoot.mp3'
    }
   ]
  },{
    name: 'MG',
    cost: 50
    strength: 50
    default_mags: 3
    default_rounds_per_mag: 25
   modes [
    { 
      type: single,
      delay: 200,
      sound: 'mg_shoot.mp3'
    },{ 
      type: semi_auto,
      shots: 3,
      delay: 50,
      sound: 'mg_shoot.mp3'
    },{ 
      type: full_auto,
      delay: 50,
      sound: 'mg_shoot.mp3'
    }
   ]
  }
]