public PlayerWeaponProjectile( Player pOwner, HeroBasicWeaponConfig pConfig) : base(pOwner, pConfig.Id, new InHandWeaponInfo(true), pConfig.VisualInfo) { ProjectileInfo = new ProjectileWeaponInfo(pConfig); }
/// <summary> /// Hero basic projectile info is in hero weapon config /// </summary> public ProjectileWeaponInfo(HeroBasicWeaponConfig pConfig) : this() { Projectile = pConfig.Projectile; //CHANGE: hero projectiles may differ //Projectile.Visual = pConfig.ProjectileVisual; //Projectile.Damage = 5; //Projectile.Dispersion = 0.5f; //Projectile.Speed = 2; //Projectile.WeaponId = pConfig.Id; }
internal void AddHeroBasicWeapon(EHero pHero) { HeroBasicWeaponConfig config = brainiacs.ItemManager.GetHeroBasicWeaponConfig(pHero); if (config == null) { Debug.LogError($"Added weapon was null"); return; } PlayerWeaponProjectile weaponProjectile = new PlayerWeaponProjectile(player, config); weapon.AddWeapon(weaponProjectile); }