Skip to content

Commit

Permalink
Add swarmer weapon (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Jun 21, 2014
1 parent 2649eff commit 3a5dace
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" : [
Expand Down
4 changes: 4 additions & 0 deletions sounds/swarmer.txt
Original file line number Diff line number Diff line change
@@ -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/
Binary file added sounds/swarmer.wav
Binary file not shown.
4 changes: 4 additions & 0 deletions src/cdogs/weapon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3a5dace

Please sign in to comment.