Skip to content

Hornet Barrage empties to 0, when it should have 3 more charges #1020

@geotavros

Description

@geotavros

Video that demonstrates the bug:
https://www.twitch.tv/octa_chi/clip/UnusualBrainyMoonLitFam-GmIwhleUUi0AlrW8

Sometimes when activating Hornet Barrage which has 4 charges, during reload of the main weapon, its charges instantly drop to 0.

Steps to reproduce:

  1. Add the following code into scripts/vscripts/challenge_one_hit.nut
function OnGameplayStart()
{
	marine <- null;
	while ( ( marine = Entities.FindByClassname( marine, "asw_marine" ) ) != null ) 
	{
		for ( local weapon = marine.FirstMoveChild(); weapon != null; weapon = weapon.NextMovePeer() ) 
		{
			if ( weapon.GetClassname() == "asw_weapon_hornet_barrage")
			{
				weapon.SetClip1(5)
			}
		}
	}
}
  1. Load a map and activate One Hit challenge
  2. Pick Crash, two Grenade Launchers, and Hornet Barrage.
  3. Start mission
  4. Shoot GL to empty it, perform fast reload by pressing R and at the same time activate extra. This step is necessary but doesn't trigger the bug yet.
  5. Again, Shoot GL to empty it, perform fast reload by pressing R and at the same time activate extra. This makes Hornets charges drop to 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions