Statistics: Posted by DDDX — 23 Apr 2019, 13:37
wep.DamageMod = val
-- wep.ChangeDamage(val)
Statistics: Posted by Franck — 06 Jan 2016, 15:46
INFO: *BUFF: Unit \000"0"\000 buffed damage to \000450
INFO: > SetProperty(1048576, HitCount): 0
INFO: > SetProperty(1048576, Xp): 0
INFO: { <metatable=table: 1332E370>
INFO: AimControl={ <metatable=table: 177A7370>
INFO: _c_object=userdata: CScriptObject* at 1CD74DF8 = [CScriptObject at 0x156C1180]
INFO: },
INFO: CurrentRackSalvoNumber=1,
INFO: DamageMod=0,
INFO: DamageRadiusMod=0,
INFO: Disabledbf={ },
INFO: NumMuzzles=2,
INFO: RackRecoilReturnSpeed=0.625,
INFO: RecoilManipulators={ },
INFO: WeaponAimIsEnabled=true,
INFO: WeaponCanFire=true,
INFO: WeaponIsEnabled=true,
INFO: __mainthread=thread: 1CBDC2D0,
INFO: _c_object=userdata: CScriptObject* at 1CD74330 = [CScriptObject at 0x159C6A40],
INFO: unit={ <metatable=table: 1332EC30>
INFO: ActiveConsumption=false,
INFO: BeamExhaustEffectsBag={ },
INFO: Buffs={
INFO: Affects={
INFO: Damage={
INFO: TestBoost={ Add=300, BuffName="TestBoost", Count=1, Mult=1.5 }
INFO: },
INFO: MaxHealth={
INFO: TestBoost={ Add=0, BuffName="TestBoost", Count=1, Mult=1.5 }
INFO: },
INFO: MoveMult={
INFO: TestBoost={ Add=0, BuffName="TestBoost", Count=1, Mult=1.5 }
INFO: }
INFO: },
INFO: BuffTable={
INFO: GlobalBoost={
INFO: TestBoost={
INFO: BuffName="TestBoost",
INFO: Count=1,
INFO: Trash={ <metatable=table: 151C1D70> thread: 12424DC0 }
INFO: }
INFO: }
INFO: }
INFO: },
INFO: BuildEffectsBag={ },
INFO: CanBeKilled=true,
INFO: CanTakeDamage=true,
INFO: CaptureEffectsBag={ },
INFO: DamageEffectsBag={ { }, { }, { } },
INFO: Dead=false,
INFO: EnergyModifier=0,
INFO: EventCallbacks={
INFO: OnCaptured={ },
INFO: OnCapturedNewUnit={ },
INFO: OnDamaged={ },
INFO: OnFailedBeingCaptured={ },
INFO: OnFailedCapture={ },
INFO: OnFailedToBuild={ },
INFO: OnHorizontalStartMove={ },
INFO: OnKilled={ },
INFO: OnReclaimed={ },
INFO: OnStartBeingCaptured={ },
INFO: OnStartBuild={ },
INFO: OnStartCapture={ },
INFO: OnStartReclaim={ },
INFO: OnStopBeingBuilt={ },
INFO: OnStopBeingCaptured={ },
INFO: OnStopCapture={ },
INFO: OnStopReclaim={ },
INFO: OnUnitBuilt={ },
INFO: OnVeteran={ },
INFO: ProjectileDamaged={ },
INFO: SpecialToggleDisableFunction=false,
INFO: SpecialToggleEnableFunction=false
INFO: },
INFO: FxDamage1Amount=1,
INFO: FxDamage2Amount=1,
INFO: FxDamage3Amount=1,
INFO: HasFuel=true,
INFO: IdleEffectsBag={ },
INFO: MaintenanceConsumption=false,
INFO: MassModifier=0,
INFO: MovementEffectsBag={ },
INFO: OnBeingBuiltEffectsBag={ },
INFO: ProductionEnabled=true,
INFO: ReclaimEffectsBag={ },
INFO: Sync={ <metatable=table: 18C7E370> army=2, id="1048576" },
INFO: TopSpeedEffectsBag={ },
INFO: TransportBeamEffectsBag={ },
INFO: Trash={ <metatable=table: 151C1D70>
INFO: { <metatable=table: 177A7370>
INFO: _c_object=userdata: CScriptObject* at 1CD74DF8 = [CScriptObject at 0x156C1180]
INFO: },
INFO: thread: 12424DC0
INFO: },
INFO: UpgradeEffectsBag={ },
INFO: VeteranLevel=0,
INFO: _c_object=userdata: CScriptObject* at 1CD743F8 = [CScriptObject at 0x1CBB7800]
INFO: }
INFO: }
Statistics: Posted by Franck — 06 Jan 2016, 15:27
Statistics: Posted by Franck — 06 Jan 2016, 14:59
BuffBlueprint {
Name = 'TestBoost',
DisplayName = 'TestBoost',
BuffType = 'GlobalBoost',
Stacks = 'REPLACE',
Duration = 60,
Affects = {
MaxHealth = {
Add = 0,
Mult = 1.5,
},
MoveMult = {
Add = 0,
Mult = 1.5,
},
Damage = {
Add = 300,
Mult = 1.5,
},
},
}
Buff.ApplyBuff( self, 'TestBoost')
local wep = unit:GetWeapon(i)
wep:ChangeDamage(val)
Statistics: Posted by Franck — 06 Jan 2016, 14:42