Add swarmer weapon (#150)

This commit is contained in:
Cong
2014-06-21 18:39:05 +10:00
parent 2649eff350
commit 3a5dace1e9
4 changed files with 19 additions and 0 deletions

View File

@@ -213,6 +213,17 @@
"Lock": 30,
"Sound": "swell",
"MuzzleFlashParticle": "muzzle_flash_heatseeker"
},
{
"Name": "Swarmer",
"Bullet": "heatseeker",
"Cost": 20,
"Lock": 50,
"Recoil": 0.2,
"SpreadCount": 4,
"SpreadWidth": 0.4,
"Sound": "swarmer",
"MuzzleFlashParticle": "muzzle_flash_heatseeker"
}
],
"PseudoGuns" : [

4
sounds/swarmer.txt Normal file
View File

@@ -0,0 +1,4 @@
Derived from Jet_Whoosh.WAV by Benboncan
http://freesound.org/people/Benboncan/sounds/167563/
http://creativecommons.org/licenses/by/3.0/

BIN
sounds/swarmer.wav Normal file

Binary file not shown.

View File

@@ -145,6 +145,10 @@ void WeaponInitialize(CArray *descs, const char *filename)
{
memcpy(CArrayGet(descs, idx), &g, sizeof g);
}
else
{
CArrayPushBack(descs, &g);
}
}
json_t *pseudoGunsNode = json_find_first_label(root, "PseudoGuns")->child;
for (json_t *child = pseudoGunsNode->child; child; child = child->next)