Skip to content

willuwontu/GunChargePatch

Repository files navigation

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.3

  • GunChargePatch will now search for modded prefab bullets when a card is picked.

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;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published