mirror of
https://github.com/cxong/cdogs-sdl.git
synced 2025-07-23 07:23:01 +02:00
Add swarmer weapon (#150)
This commit is contained in:
11
guns.json
11
guns.json
@@ -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
4
sounds/swarmer.txt
Normal 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
BIN
sounds/swarmer.wav
Normal file
Binary file not shown.
@@ -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)
|
||||
|
Reference in New Issue
Block a user