Superfighters Deluxe
ProjectileProperties Struct Reference

Public Member Functions

 ProjectileProperties (ProjectileItem projItem, float initialSpeed, float plrDmg, float objDmg, float critChance, float critDamage, float dodgeChance, bool canBeBlocked)
 

Public Attributes

readonly bool CanBeBlocked
 Gets if the projectile can be blocked at all from player melee weapons. More...
 
readonly float CritChance
 Gets the critical hit chance. More...
 
readonly float CritDamage
 Gets the critical damage. More...
 
readonly float DodgeChance
 Gets the dodge chance for this projectile while diving/rolling. Range [0 - 1] More...
 
readonly float InitialSpeed
 Gets the initial speed in world units per second that will decide the velocity vector for the projectile. The velocity is reduced if the projectile bounces. More...
 
readonly float ObjectDamage
 Gets the damage done to objects. More...
 
readonly float PlayerDamage
 Gets the damage done to players. More...
 
readonly ProjectileItem ProjectileItem
 Gets the projectile item ID of this projectile. More...
 

Constructor & Destructor Documentation

◆ ProjectileProperties()

ProjectileProperties ( ProjectileItem  projItem,
float  initialSpeed,
float  plrDmg,
float  objDmg,
float  critChance,
float  critDamage,
float  dodgeChance,
bool  canBeBlocked 
)

Parameters
projItem
initialSpeed
plrDmg
objDmg
critChance
critDamage
dodgeChance
canBeBlocked

Member Data Documentation

◆ CanBeBlocked

readonly bool CanBeBlocked

Gets if the projectile can be blocked at all from player melee weapons.

◆ CritChance

readonly float CritChance

Gets the critical hit chance.

◆ CritDamage

readonly float CritDamage

Gets the critical damage.

◆ DodgeChance

readonly float DodgeChance

Gets the dodge chance for this projectile while diving/rolling. Range [0 - 1]

◆ InitialSpeed

readonly float InitialSpeed

Gets the initial speed in world units per second that will decide the velocity vector for the projectile. The velocity is reduced if the projectile bounces.

◆ ObjectDamage

readonly float ObjectDamage

Gets the damage done to objects.

◆ PlayerDamage

readonly float PlayerDamage

Gets the damage done to players.

◆ ProjectileItem

Gets the projectile item ID of this projectile.