helloo,,
i made a new upgrade for my paladin (still in testing) that it have a 25% damage bonus when you buy the upgrade, but when i buy it, it becomes upgraded on al paladins, but i want that you have to buy it seperatly, just like if you buy a overlordgattlinggun you only buy it for that overlord
here are some codes
weapon:
Weapon PaladinTankGun
PrimaryDamage = 200.0
PrimaryDamageRadius = 10.0
ScatterRadiusVsInfantry = 10.0 ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
AttackRange = 750.0
MinTargetPitch = -15 ; we may not target anything outside of this pitch range
MaxTargetPitch = 15 ; ditto
DamageType = ARMOR_PIERCING
DeathType = NORMAL
WeaponSpeed = 300 ; dist/sec
WeaponRecoil = 5 ; angle to deflect the model when firing
ProjectileObject = GenericTankShell
FireFX = WeaponFX_GenericTankGunNoTracer
VeterancyFireFX = HEROIC WeaponFX_HeroicGenericTankGunNoTracer
ProjectileDetonationFX = WeaponFX_GenericTankShellDetonation
FireSound = PaladinTankWeapon
RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
DelayBetweenShots = 750 ; time between shots, msec
ClipSize = 3 ; how many shots in a Clip (0 == infinite)
ClipReloadTime = 10000 ; how long to reload a Clip, msec
WeaponBonus = PLAYER_UPGRADE DAMAGE 125%
; note, these only apply to units that aren't the explicit target
; (ie, units that just happen to "get in the way"... projectiles
; always collide with the Designated Target, regardless of these flags
ProjectileCollidesWith = STRUCTURES WALLS
ProjectileDetonationOCL = OCL_FireFieldSmall
ScatterRadius = 20 ;5
MinimumAttackRange = 40 ;20.0
End
Upgrade:
Upgrade Upgrade_PaladinUraniumShells
DisplayName = UPGRADE:UraniumShells
Type = OBJECT
BuildTime = 30.0
BuildCost = 1000
ButtonImage = SSDepletedU_Shell
ResearchSound = NoSound
End
commandbutton:
CommandButton Command_UpgradePaladinUraniumShells
Command = PLAYER_UPGRADE
Upgrade = Upgrade_PaladinUraniumShells
Options = IGNORES_UNDERPOWERED
TextLabel = CONTROLBAR:UpgradeChinaUraniumShells
ButtonImage = SSDepletedU_Shell
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipUpgradeChinaUraniumShells
End
commandset:
CommandSet AmericaTankPaladinCommandSet
1 = Command_ConstructAmericaVehicleBattleDrone
2 = Command_ConstructAmericaVehicleScoutDrone
3 = Command_ConstructAmericaVehicleHellfireDrone
4 = Command_UpgradePaladinUraniumShells
11 = Command_AttackMove
13 = Command_Guard
14 = Command_Stop
End
how do i have to change it so that it works like the overlordgattlinggun?
eventually i want the upgrade to be that it creates a firefieldsmall (OCL_FireFieldSmall)
and with a new image, strings, ect, but it is still in testing :P
Update:
i changed PLAYER_UPGRADE in OBJECT_UPGRADE in the 2 files (commandbutton and weapon)
the game crashed so i starded WB, to study the error
the error is: OBJECT_UPGRADE is not a valid member of the index list.
so how do i solve this?
Edited by moderator
15 years ago |
Reason: Double post merge