ROUNDS
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
4 years ago
Downloads
595.9K
Size
28KB

GunChargePatch

A mod that makes use of the built in charge system for the Gun class, and makes it viable.

To use, simply set gun.Charge = true; in your card's SetupCard.

Change log

v0.0.2

  • Patches an issue with not properly recognizing other bullet types.

v0.0.0

  • Added the ability to RPC a bullet charge to bullets.

v0.0.0

  • Initial Release
Gun Fields ### useCharge() ```cs bool useCharge ``` #### Description Tells a gun that it's a charged weapon now.

chargeDamageMultiplier()

float chargeDamageMultiplier

Description

The multiplier for a gun's damage based on its charge. Default value of 1.

chargeSpeedTo()

float chargeSpeedTo

Description

The multiplier for a gun's bullet speed based on its charge. Default value of 1.

Extension Methods

ProjectileHit


BulletCharge()

float GetBulletCharge(this ProjectileHit instance)

Description

Returns the charge of the bullet instance.

Parameters

Example Usage

float charge = this.gameObject.GetComponent<ProjectileHit>().GetBulletCharge().charge;

Gun


BulletCharge()

GunAdditionalData GetAdditionalData(this Gun instance)

Description

Returns the additional data associated with a gun object.

Parameters

Example Usage

gun.GetAdditionalData().chargeTime = 1f;
Classes

GunAdditionalData

class GunAdditionalData

Fields

  • float chargeTime - default 1. How long it takes to charge a weapon.
  • bool useDefaultChargingMethod - default true. Only change if you know what you're doing.

Description

Information associated with the Gun object for a player.

Example Usage

gun.GetAdditionalData().chargeTime = 1f;
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.