Skip to content

Commit

Permalink
Gun adjustments (fixes #268)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Apr 30, 2022
1 parent 621fbfa commit a8bdb21
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions missions/custom/techdemo/cyberdogs.cdogscpn/bullets.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@
"Wall": {}
},
"Falling": {
"GravityFactor": 0.3
"GravityFactor": 0.7,
"FallsDown": true
},
"OutOfRangeGuns": [
"blast_weak",
Expand Down Expand Up @@ -294,7 +295,7 @@
"Name": "demo_weak",
"Range": 1,
"Power": 40,
"Size": [2, 2],
"Size": [4, 4],
"Spark": "",
"Hit": {
"Object": {}
Expand All @@ -304,7 +305,7 @@
"Name": "demo_strong",
"Range": 1,
"Power": 200,
"Size": [2, 2],
"Size": [4, 4],
"Spark": "",
"Hit": {
"Object": {}
Expand Down
8 changes: 4 additions & 4 deletions missions/custom/techdemo/cyberdogs.cdogscpn/guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"Lock": 30,
"Sound": "bottle_pop",
"SwitchSound": "swarmer_switch",
"Elevation": 12,
"Elevation": 14,
"Ammo": "Grenades"
},
{
Expand Down Expand Up @@ -120,7 +120,7 @@
"Name": "Lazer",
"Bullet": "laser",
"Lock": 65,
"Sound": "powergun",
"Sound": "pistol",
"MuzzleFlashSprite": "muzzle_flash_big",
"MuzzleFlashColor": "ffff00",
"MuzzleFlashDuration": 5
Expand All @@ -130,7 +130,7 @@
"Name": "TurboLazer",
"Bullet": "turbo_laser",
"Lock": 35,
"Sound": "powergun",
"Sound": "pistol",
"MuzzleFlashSprite": "muzzle_flash_big",
"MuzzleFlashColor": "ffff00",
"MuzzleFlashDuration": 5
Expand All @@ -141,7 +141,7 @@
"Icon": "blaster",
"Bullet": "pulse",
"Lock": 12,
"Sound": "pulse",
"Sound": "pistol",
"SwitchSound": "pulse_switch",
"MuzzleFlashParticle": "muzzle_flash_pulse",
"Ammo": "Mini cells"
Expand Down
3 changes: 2 additions & 1 deletion src/cdogs/handle_game_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ static void HandleGameEvent(
ActorAddAmmo(a, e.u.AddAmmo.Ammo.Id, e.u.AddAmmo.Ammo.Amount);
// Tell the spawner that we took ammo so we can
// spawn more (but only if we're the server)
if (e.u.AddAmmo.IsRandomSpawned && !gCampaign.IsClient)
if (e.u.AddAmmo.IsRandomSpawned &&
gCampaign.Setting.RandomPickups && !gCampaign.IsClient)
{
PowerupSpawnerRemoveOne(
CArrayGet(ammoSpawners, e.u.AddAmmo.Ammo.Id));
Expand Down

0 comments on commit a8bdb21

Please sign in to comment.