This package has been marked as deprecated, and it's suggested another
alternative is used.
GunChargePatch
Makes the Gun.UseCharge field work.
Last updated | 2 years ago |
Total downloads | 396385 |
Total rating | 1 |
Categories | Utilities Patch |
Dependency string | willuwontu-GunChargePatch-0.0.4 |
Dependants | 69 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack_ROUNDS
BepInEx pack for ROUNDS. Preconfigured and ready to use.
Preferred version: 5.4.1100README
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.4
- It worked before, but now errors don't show up.
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;