enemy.json

This file contains the description of all enemies in the game.

{
"bandit": { // enemy ID
	"weapons": ["w_ak"], // models name from assets/models/ without file type
	"texture": ["pbandit","pbandit_noglass"], // array of textures names for some randomization
	"attack_sound": "rifle_sound.wav", // name of sound from assets/sounds/
	"miss_sounds": ["whine_1","whine_2","whine_3","whine_4","whine_5"], // array names of sounds from assets/sounds/
	"damage": [1.0,3.5], // random damage between 1 and 3.5
	"health": [5,10], // random health from 5 to 10
	"accuracy": 0.45, // accuracy of enemy (chance to hit player)
	"exp": [1,2], // random exp for death
	"attack_delay": [4,5], // delay in seconds between taking covers
	"money": [15,35], // money reward for death
	"loot": [  // loot list on death
		{
			"item": "medkit", // item ID
			"chance": 0.15, // chance of drop 1 = 100%, 0.01 = 1%
			"amount": 1 // amount for one drop
		},
		{
			"item": "ammo_viper5",
			"chance": 0.15,
			"amount": 1
		}
	]
  }
}

Last updated