Forged Alliance Forever Forums
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
Ze_PilOt wrote:Maybe we can ask mavor what he wants for his unit next time he come to the chat ?
MainGun = Class(TIFArtilleryWeapon) {
FxMuzzleFlashScale = 3,
IdleState = State(TIFArtilleryWeapon.IdleState) {
OnGotTarget = function(self)
TIFArtilleryWeapon.IdleState.OnGotTarget(self)
if not self.ArtyAnim then
self.ArtyAnim = CreateAnimator(self.unit)
self.ArtyAnim:PlayAnim(self.unit:GetBlueprint().Display.AnimationOpen)
self.unit.Trash:Add(self.ArtyAnim)
end
end,
},
CreateProjectileAtMuzzle = function(self, muzzle)
### Updates firing Randomness
self.unit.CurrentAccuracy = self.unit.MyWeapon:GetFiringRandomness()
if self.unit.CurrentAccuracy >= 0.5 then
self.unit.MyWeapon:SetFiringRandomness(self.unit.CurrentAccuracy - 0.05)
end
### Resets weapon acuracy if the target has changed
if not self.unit:IsDead() and self.unit.MyWeapon:GetCurrentTarget() then
self.unit.CurrentTarget = self.unit.MyWeapon:GetCurrentTarget():GetEntityId()
if self.unit.OldTarget == nil then
### Inputs new values into table
self.unit.OldTarget = self.unit.CurrentTarget
elseif self.unit.OldTarget ~= self.unit.CurrentTarget then
self.unit.MyWeapon:SetFiringRandomness(self.unit.MyWeapon:GetBlueprint().FiringRandomness)
### Inputs new target values into OldTarget
self.unit.OldTarget = self.unit.CurrentTarget
end
end
TIFArtilleryWeapon.CreateProjectileAtMuzzle(self, muzzle)
end,
OnLostTarget = function(self)
### Resets weapon acuracy if target is lost
if not self.unit:IsDead() then
self.unit.MyWeapon:SetFiringRandomness(self.unit.MyWeapon:GetBlueprint().FiringRandomness)
end
TIFArtilleryWeapon.OnLostTarget(self)
end,
},
Myrdral wrote:Mavor is most likely balanced and working as intended.
ShadowKnight wrote:Ze_PilOt wrote:Maybe we can ask mavor what he wants for his unit next time he come to the chat ?
He comes onto the chat... ? 0_0
EDIT:
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
Users browsing this forum: No registered users and 1 guest