logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,537
Total Threads: 8,626
Posts: 94,207

Administrators:
DeeZire, Redemption

There are currently 106 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 10-12-2003, 10:12 PM   #1 (permalink)
Senior Member
 
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
Default Why Code Doesn't Work?

Hi,

I'm sorry for making another topic about this thing, but...

Why doesn't this code work?

I want the marauder to use his normal maraudertankgun, but when he gets the sentrydronegun upgrade at the palace, I want the marauder to fire both the maraudertankgun and sentrydronegun at the same time. With this code, the marauder upgrades fine, it says he has been upgraded and everything, but the problem is that nothing changes. He still does everything the same as before the marauder tanks got the upgrade.

Object GLATankMarauder

; *** ART Parameters ***
SelectPortrait = SUMarauder_L
ButtonImage = SUMarauder

UpgradeCameo1 = Upgrade_GLAToxinShells
UpgradeCameo2 = Upgrade_GLAJunkRepair
UpgradeCameo3 = Upgrade_AmericaSentryDroneGun
;UpgradeCameo4 = NONE
;UpgradeCameo5 = NONE

Draw = W3DTankDraw ModuleTag_01
OkToChangeModelColor = Yes

; no crate upgrade
ConditionState = NONE
Model = UVMarauder
Turret = Turret
ShowSubObject = Turret
HideSubObject = TurretUp01 TurretUp02 BarrelFX01 ; Since we are showing one of three turrets, we need to then hide the subobject muzzleflash
WeaponFireFXBone = PRIMARY BarrelMS
WeaponRecoilBone = PRIMARY Barrel
WeaponMuzzleFlash = PRIMARY BarrelFX
WeaponLaunchBone = PRIMARY BarrelMS
End

ConditionState = REALLYDAMAGED
Model = UVMarauder_d
Turret = Turret
ShowSubObject = Turret
HideSubObject = TurretUp01 TurretUp02 BarrelFX01
WeaponFireFXBone = PRIMARY BarrelMS
WeaponRecoilBone = PRIMARY Barrel
WeaponMuzzleFlash = PRIMARY BarrelFX
WeaponLaunchBone = PRIMARY BarrelMS
End

ConditionState = RUBBLE
Model = UVMarauder_d
Turret = Turret
ShowSubObject = Turret
HideSubObject = TurretUp01 TurretUp02 BarrelFX01
WeaponFireFXBone = PRIMARY BarrelMS
WeaponRecoilBone = PRIMARY Barrel
WeaponMuzzleFlash = PRIMARY BarrelFX
WeaponLaunchBone = PRIMARY BarrelMS
End

; crate upgrade 1
ConditionState = WEAPONSET_CRATEUPGRADE_ONE
Model = UVMarauder
Turret = TurretUp01
ShowSubObject = TurretUp01
HideSubObject = Turret TurretUp02 BarrelUp01FX01
WeaponFireFXBone = PRIMARY BarrelUp01MS
WeaponRecoilBone = PRIMARY BarrelUp01
WeaponMuzzleFlash = PRIMARY BarrelUp01FX
WeaponLaunchBone = PRIMARY BarrelUp01MS
End

ConditionState = REALLYDAMAGED WEAPONSET_CRATEUPGRADE_ONE
Model = UVMarauder_d
Turret = TurretUp01
ShowSubObject = TurretUp01
HideSubObject = Turret TurretUp02 BarrelUp01FX01
WeaponFireFXBone = PRIMARY BarrelUp01MS
WeaponRecoilBone = PRIMARY BarrelUp01
WeaponMuzzleFlash = PRIMARY BarrelUp01FX
WeaponLaunchBone = PRIMARY BarrelUp01MS
End

ConditionState = RUBBLE WEAPONSET_CRATEUPGRADE_ONE
Model = UVMarauder_d
Turret = TurretUp01
ShowSubObject = TurretUp01
HideSubObject = Turret TurretUp02 BarrelUp01FX01
WeaponFireFXBone = PRIMARY BarrelUp01MS
WeaponRecoilBone = PRIMARY BarrelUp01
WeaponMuzzleFlash = PRIMARY BarrelUp01FX
WeaponLaunchBone = PRIMARY BarrelUp01MS
End

; crate upgrade 2
ConditionState = WEAPONSET_CRATEUPGRADE_TWO
Model = UVMarauder
Turret = TurretUp02
ShowSubObject = TurretUp02
HideSubObject = Turret TurretUp01 BarrelUp02FX01 BarrelUp02FX02
WeaponFireFXBone = PRIMARY BarrelUp02MS
WeaponRecoilBone = PRIMARY BarrelUp02
WeaponMuzzleFlash = PRIMARY BarrelUp02FX
WeaponLaunchBone = PRIMARY BarrelUp02MS
End

ConditionState = REALLYDAMAGED WEAPONSET_CRATEUPGRADE_TWO
Model = UVMarauder_d
Turret = TurretUp02
ShowSubObject = TurretUp02
HideSubObject = Turret TurretUp01 BarrelUp02FX01 BarrelUp02FX02
WeaponFireFXBone = PRIMARY BarrelUp02MS
WeaponRecoilBone = PRIMARY BarrelUp02
WeaponMuzzleFlash = PRIMARY BarrelUp02FX
WeaponLaunchBone = PRIMARY BarrelUp02MS
End

ConditionState = RUBBLE WEAPONSET_CRATEUPGRADE_TWO
Model = UVMarauder_d
Turret = TurretUp02
ShowSubObject = TurretUp02
HideSubObject = Turret TurretUp01 BarrelUp02FX01 BarrelUp02FX02
WeaponFireFXBone = PRIMARY BarrelUp02MS
WeaponRecoilBone = PRIMARY BarrelUp02
WeaponMuzzleFlash = PRIMARY BarrelUp02FX
WeaponLaunchBone = PRIMARY BarrelUp02MS
End

TrackMarks = EXTnkTrack.tga
TreadAnimationRate = 2.0; amount of tread texture to move per second
TreadDriveSpeedFraction = 0.3 ; fraction of locomotor speed below which treads stop moving.
TreadPivotSpeedFraction = 0.6 ; fraction of locomotor speed below which we allow pivoting.

End

; ***DESIGN parameters ***
DisplayName = OBJECT:Marauder
Side = GLA
EditorSorting = VEHICLE
TransportSlotCount = 3 ;how many "slots" we take in a transport (0 == not transportable)

WeaponSet
Conditions = None
Weapon = PRIMARY MarauderTankGun
Weapon = SECONDARY None
End
WeaponSet
Conditions = PLAYER_UPGRADE
Weapon = PRIMARY MarauderTankGun
Weapon = SECONDARY SentryDroneGun
PreferredAgainst = SECONDARY INFANTRY
AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
End
WeaponSet
Conditions = CRATEUPGRADE_ONE
Weapon = PRIMARY MarauderTankGunUpgradeOne
Weapon = SECONDARY None
End
WeaponSet
Conditions = CRATEUPGRADE_ONE PLAYER_UPGRADE
Weapon = PRIMARY MarauderTankGunUpgradeOne
Weapon = SECONDARY SentryDroneGun
PreferredAgainst = SECONDARY INFANTRY
AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
End
WeaponSet
Conditions = CRATEUPGRADE_TWO
Weapon = PRIMARY MarauderTankGunUpgradeTwo
Weapon = SECONDARY None
End
WeaponSet
Conditions = CRATEUPGRADE_TWO PLAYER_UPGRADE
Weapon = PRIMARY MarauderTankGunUpgradeTwo
Weapon = SECONDARY SentryDroneGun
PreferredAgainst = SECONDARY INFANTRY
AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
End
ArmorSet
Conditions = None
Armor = TankArmor
DamageFX = TankDamageFX
End
BuildCost = 800
BuildTime = 10.0 ;in seconds
VisionRange = 125
ShroudClearingRange = 300
Prerequisites
Object = GLAArmsDealer
Science = SCIENCE_MarauderTank
End

ExperienceValue = 100 100 200 300 ;Experience point value at each level
ExperienceRequired = 0 200 300 600 ;Experience points needed to gain each level
IsTrainable = Yes ;Can gain experience
CrusherLevel = 2 ;What can I crush?: 1 = infantry, 2 = trees, 3 = vehicles
CrushableLevel = 2 ;What am I?: 0 = for infantry, 1 = for trees, 2 = general vehicles
CommandSet = GLATankMarauderCommandSet

; *** AUDIO Parameters ***
VoiceSelect = MarauderTankVoiceSelect
VoiceMove = MarauderTankVoiceMove
VoiceGuard = MarauderTankVoiceMove
VoiceAttack = MarauderTankVoiceAttack
SoundMoveStart = MarauderTankMoveStart
SoundMoveStartDamaged = MarauderTankMoveStart

UnitSpecificSounds
; These have the syntax of SomeNameSomewhereInCode = SomeNameSomewhereInLookupINIs
VoiceCreate = MarauderTankVoiceCreate
;TurretMoveStart = NoSound
TurretMoveLoop = TurretMoveLoop
VoiceSalvage = MarauderTankVoiceSalvage
VoiceCrush = MarauderTankVoiceCrush
VoiceEnter = MarauderTankVoiceMove
End

; *** ENGINEERING Parameters ***
RadarPriority = UNIT
KindOf = PRELOAD SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT CAN_CAST_REFLECTIONS SALVAGER WEAPON_SALVAGER VEHICLE SCORE

Body = ActiveBody ModuleTag_02
MaxHealth = 430.0
InitialHealth = 430.0

; Subdual damage "Subdues" you (reaction defined by BodyModule) when it passes your max health.
; The cap limits how extra-subdued you can be, and the other numbers detemine how fast it drains away on its own.
SubdualDamageCap = 860
SubdualDamageHealRate = 500
SubdualDamageHealAmount = 50
End

Behavior = AIUpdateInterface ModuleTag_03
AutoAcquireEnemiesWhenIdle = Yes
End
Locomotor = SET_NORMAL MarauderLocomotor
Behavior = PhysicsBehavior ModuleTag_04
Mass = 50.0
End
Behavior = AutoHealBehavior ModuleTag_05
HealingAmount = 2
HealingDelay = 1000 ; msec
TriggeredBy = Upgrade_GLAJunkRepair
End

; Catch fire, and explode death
Behavior = SlowDeathBehavior ModuleTag_06
DeathTypes = ALL -CRUSHED -SPLATTED
ProbabilityModifier = 50
DestructionDelay = 1000
DestructionDelayVariance = 300
FX = INITIAL FX_CrusaderCatchFire
OCL = FINAL OCL_MarauderTankDeathEffect
FX = FINAL FX_BattleMasterExplosionOneFinal
End


Behavior = CreateCrateDie ModuleTag_07
CrateData = SalvageCrateData
;CrateData = EliteTankCrateData
;CrateData = HeroicTankCrateData
End

Behavior = TransitionDamageFX ModuleTag_08
ReallyDamagedParticleSystem1 = Bone:Smoke RandomBone:Yes PSys:SmallLightSmokeColumn
ReallyDamagedFXList1 = Loc: X:0 Y:0 Z:0 FXList:FX_BattleMasterDamageTransition
End

; A crushing defeat
Behavior = FXListDie ModuleTag_09
DeathTypes = NONE +CRUSHED +SPLATTED
DeathFX = FX_CarCrush
End

Behavior = FlammableUpdate ModuleTag_21
AflameDuration = 5000 ; If I catch fire, I'll burn for this long...
AflameDamageAmount = 3 ; taking this much damage...
AflameDamageDelay = 500 ; this often.
End

Geometry = BOX
GeometryMajorRadius = 17.0
GeometryMinorRadius = 10.0
GeometryHeight = 9.5
GeometryIsSmall = Yes
Shadow = SHADOW_VOLUME
ShadowSizeX = 45 ; minimum elevation angle above horizon. Used to limit shadow length

End

Can somebody help me make it the way I want it??

Thanks,
-Mishkin- or The Russian Dude
Mishkin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-13-2003, 06:40 AM   #2 (permalink)
Senior Member
 
Join Date: Aug 2003
Posts: 337
Default

You forgot to add the weaponsetupgrade moduletag.

You need to have a weaponsetupgrade moduletag and a commandbutton that activates the upgrade.

Then in the weaponsetupgrade moduletag it should say: triggeredby: (insert upgrade)

okey mishkin i will send the compleet code.
The_Blind_One is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-13-2003, 06:48 AM   #3 (permalink)
Senior Member
 
Join Date: Aug 2003
Posts: 337
Default

ADD THIS TO THE GLAVEHICLE.INI


Object GLATankMarauder

; *** ART Parameters ***
SelectPortrait = SUMarauder_L
ButtonImage = SUMarauder

UpgradeCameo1 = Upgrade_GLAToxinShells
UpgradeCameo2 = Upgrade_GLAJunkRepair
UpgradeCameo3 = Upgrade_AmericaSentryDroneGun
;UpgradeCameo4 = NONE
;UpgradeCameo5 = NONE

Draw = W3DTankDraw ModuleTag_01
OkToChangeModelColor = Yes

; no crate upgrade
ConditionState = NONE
Model = UVMarauder
Turret = Turret
ShowSubObject = Turret
HideSubObject = TurretUp01 TurretUp02 BarrelFX01 ; Since we are showing one of three turrets, we need to then hide the subobject muzzleflash
WeaponFireFXBone = PRIMARY BarrelMS
WeaponRecoilBone = PRIMARY Barrel
WeaponMuzzleFlash = PRIMARY BarrelFX
WeaponLaunchBone = PRIMARY BarrelMS
End

ConditionState = REALLYDAMAGED
Model = UVMarauder_d
Turret = Turret
ShowSubObject = Turret
HideSubObject = TurretUp01 TurretUp02 BarrelFX01
WeaponFireFXBone = PRIMARY BarrelMS
WeaponRecoilBone = PRIMARY Barrel
WeaponMuzzleFlash = PRIMARY BarrelFX
WeaponLaunchBone = PRIMARY BarrelMS
End

ConditionState = RUBBLE
Model = UVMarauder_d
Turret = Turret
ShowSubObject = Turret
HideSubObject = TurretUp01 TurretUp02 BarrelFX01
WeaponFireFXBone = PRIMARY BarrelMS
WeaponRecoilBone = PRIMARY Barrel
WeaponMuzzleFlash = PRIMARY BarrelFX
WeaponLaunchBone = PRIMARY BarrelMS
End

; crate upgrade 1
ConditionState = WEAPONSET_CRATEUPGRADE_ONE
Model = UVMarauder
Turret = TurretUp01
ShowSubObject = TurretUp01
HideSubObject = Turret TurretUp02 BarrelUp01FX01
WeaponFireFXBone = PRIMARY BarrelUp01MS
WeaponRecoilBone = PRIMARY BarrelUp01
WeaponMuzzleFlash = PRIMARY BarrelUp01FX
WeaponLaunchBone = PRIMARY BarrelUp01MS
End

ConditionState = REALLYDAMAGED WEAPONSET_CRATEUPGRADE_ONE
Model = UVMarauder_d
Turret = TurretUp01
ShowSubObject = TurretUp01
HideSubObject = Turret TurretUp02 BarrelUp01FX01
WeaponFireFXBone = PRIMARY BarrelUp01MS
WeaponRecoilBone = PRIMARY BarrelUp01
WeaponMuzzleFlash = PRIMARY BarrelUp01FX
WeaponLaunchBone = PRIMARY BarrelUp01MS
End

ConditionState = RUBBLE WEAPONSET_CRATEUPGRADE_ONE
Model = UVMarauder_d
Turret = TurretUp01
ShowSubObject = TurretUp01
HideSubObject = Turret TurretUp02 BarrelUp01FX01
WeaponFireFXBone = PRIMARY BarrelUp01MS
WeaponRecoilBone = PRIMARY BarrelUp01
WeaponMuzzleFlash = PRIMARY BarrelUp01FX
WeaponLaunchBone = PRIMARY BarrelUp01MS
End

; crate upgrade 2
ConditionState = WEAPONSET_CRATEUPGRADE_TWO
Model = UVMarauder
Turret = TurretUp02
ShowSubObject = TurretUp02
HideSubObject = Turret TurretUp01 BarrelUp02FX01 BarrelUp02FX02
WeaponFireFXBone = PRIMARY BarrelUp02MS
WeaponRecoilBone = PRIMARY BarrelUp02
WeaponMuzzleFlash = PRIMARY BarrelUp02FX
WeaponLaunchBone = PRIMARY BarrelUp02MS
End

ConditionState = REALLYDAMAGED WEAPONSET_CRATEUPGRADE_TWO
Model = UVMarauder_d
Turret = TurretUp02
ShowSubObject = TurretUp02
HideSubObject = Turret TurretUp01 BarrelUp02FX01 BarrelUp02FX02
WeaponFireFXBone = PRIMARY BarrelUp02MS
WeaponRecoilBone = PRIMARY BarrelUp02
WeaponMuzzleFlash = PRIMARY BarrelUp02FX
WeaponLaunchBone = PRIMARY BarrelUp02MS
End

ConditionState = RUBBLE WEAPONSET_CRATEUPGRADE_TWO
Model = UVMarauder_d
Turret = TurretUp02
ShowSubObject = TurretUp02
HideSubObject = Turret TurretUp01 BarrelUp02FX01 BarrelUp02FX02
WeaponFireFXBone = PRIMARY BarrelUp02MS
WeaponRecoilBone = PRIMARY BarrelUp02
WeaponMuzzleFlash = PRIMARY BarrelUp02FX
WeaponLaunchBone = PRIMARY BarrelUp02MS
End

TrackMarks = EXTnkTrack.tga
TreadAnimationRate = 2.0; amount of tread texture to move per second
TreadDriveSpeedFraction = 0.3 ; fraction of locomotor speed below which treads stop moving.
TreadPivotSpeedFraction = 0.6 ; fraction of locomotor speed below which we allow pivoting.

End

; ***DESIGN parameters ***
DisplayName = OBJECT:Marauder
Side = GLA
EditorSorting = VEHICLE
TransportSlotCount = 3 ;how many "slots" we take in a transport (0 == not transportable)

WeaponSet
Conditions = None
Weapon = PRIMARY MarauderTankGun
Weapon = SECONDARY None
End
WeaponSet
Conditions = PLAYER_UPGRADE
Weapon = PRIMARY MarauderTankGun
Weapon = SECONDARY SentryDroneGun
PreferredAgainst = SECONDARY INFANTRY
AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
End
WeaponSet
Conditions = CRATEUPGRADE_ONE
Weapon = PRIMARY MarauderTankGunUpgradeOne
Weapon = SECONDARY None
End
WeaponSet
Conditions = CRATEUPGRADE_ONE PLAYER_UPGRADE
Weapon = PRIMARY MarauderTankGunUpgradeOne
Weapon = SECONDARY SentryDroneGun
PreferredAgainst = SECONDARY INFANTRY
AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
End
WeaponSet
Conditions = CRATEUPGRADE_TWO
Weapon = PRIMARY MarauderTankGunUpgradeTwo
Weapon = SECONDARY None
End
WeaponSet
Conditions = CRATEUPGRADE_TWO PLAYER_UPGRADE
Weapon = PRIMARY MarauderTankGunUpgradeTwo
Weapon = SECONDARY SentryDroneGun
PreferredAgainst = SECONDARY INFANTRY
AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
End
ArmorSet
Conditions = None
Armor = TankArmor
DamageFX = TankDamageFX
End
BuildCost = 800
BuildTime = 10.0 ;in seconds
VisionRange = 125
ShroudClearingRange = 300
Prerequisites
Object = GLAArmsDealer
Science = SCIENCE_MarauderTank
End

ExperienceValue = 100 100 200 300 ;Experience point value at each level
ExperienceRequired = 0 200 300 600 ;Experience points needed to gain each level
IsTrainable = Yes ;Can gain experience
CrusherLevel = 2 ;What can I crush?: 1 = infantry, 2 = trees, 3 = vehicles
CrushableLevel = 2 ;What am I?: 0 = for infantry, 1 = for trees, 2 = general vehicles
CommandSet = GLATankMarauderCommandSet

; *** AUDIO Parameters ***
VoiceSelect = MarauderTankVoiceSelect
VoiceMove = MarauderTankVoiceMove
VoiceGuard = MarauderTankVoiceMove
VoiceAttack = MarauderTankVoiceAttack
SoundMoveStart = MarauderTankMoveStart
SoundMoveStartDamaged = MarauderTankMoveStart

UnitSpecificSounds
; These have the syntax of SomeNameSomewhereInCode = SomeNameSomewhereInLookupINIs
VoiceCreate = MarauderTankVoiceCreate
;TurretMoveStart = NoSound
TurretMoveLoop = TurretMoveLoop
VoiceSalvage = MarauderTankVoiceSalvage
VoiceCrush = MarauderTankVoiceCrush
VoiceEnter = MarauderTankVoiceMove
End

; *** ENGINEERING Parameters ***
RadarPriority = UNIT
KindOf = PRELOAD SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT CAN_CAST_REFLECTIONS SALVAGER WEAPON_SALVAGER VEHICLE SCORE

Body = ActiveBody ModuleTag_02
MaxHealth = 430.0
InitialHealth = 430.0

; Subdual damage "Subdues" you (reaction defined by BodyModule) when it passes your max health.
; The cap limits how extra-subdued you can be, and the other numbers detemine how fast it drains away on its own.
SubdualDamageCap = 860
SubdualDamageHealRate = 500
SubdualDamageHealAmount = 50
End

Behavior = AIUpdateInterface ModuleTag_03
AutoAcquireEnemiesWhenIdle = Yes
End
Locomotor = SET_NORMAL MarauderLocomotor
Behavior = PhysicsBehavior ModuleTag_04
Mass = 50.0
End
Behavior = AutoHealBehavior ModuleTag_05
HealingAmount = 2
HealingDelay = 1000 ; msec
TriggeredBy = Upgrade_GLAJunkRepair
End

Behavior = WeaponSetUpgrade ModuleTag_09
TriggeredBy = Upgrade_GlaMarauderSentryDroneGun
End

; Catch fire, and explode death
Behavior = SlowDeathBehavior ModuleTag_06
DeathTypes = ALL -CRUSHED -SPLATTED
ProbabilityModifier = 50
DestructionDelay = 1000
DestructionDelayVariance = 300
FX = INITIAL FX_CrusaderCatchFire
OCL = FINAL OCL_MarauderTankDeathEffect
FX = FINAL FX_BattleMasterExplosionOneFinal
End


Behavior = CreateCrateDie ModuleTag_07
CrateData = SalvageCrateData
;CrateData = EliteTankCrateData
;CrateData = HeroicTankCrateData
End

Behavior = TransitionDamageFX ModuleTag_08
ReallyDamagedParticleSystem1 = Bone:Smoke RandomBone:Yes PSys:SmallLightSmokeColumn
ReallyDamagedFXList1 = Loc: X:0 Y:0 Z:0 FXList:FX_BattleMasterDamageTransition
End

; A crushing defeat
Behavior = FXListDie ModuleTag_09
DeathTypes = NONE +CRUSHED +SPLATTED
DeathFX = FX_CarCrush
End

Behavior = FlammableUpdate ModuleTag_21
AflameDuration = 5000 ; If I catch fire, I'll burn for this long...
AflameDamageAmount = 3 ; taking this much damage...
AflameDamageDelay = 500 ; this often.
End

Geometry = BOX
GeometryMajorRadius = 17.0
GeometryMinorRadius = 10.0
GeometryHeight = 9.5
GeometryIsSmall = Yes
Shadow = SHADOW_VOLUME
ShadowSizeX = 45 ; minimum elevation angle above horizon. Used to limit shadow length

End



ADD THIS TO THE UPGRADE.INI

Upgrade Upgrade_GlaMarauderSentryDroneGun
DisplayName = UPGRADE:AmericaSentryDroneGun
BuildTime = 30.0
BuildCost = 1000
ButtonImage = SASentryUpgr
End

ADD THIS TO THE COMMANDBUTTON.INI

CommandButton Command_UpgradeGlaMarauderSentryDroneGun
Command = PLAYER_UPGRADE
Upgrade = Upgrade_GlaMarauderSentryDroneGun
TextLabel = CONTROLBAR:UpgradeAmericaSentryDroneGun
ButtonImage = SASentryUpgr
ButtonBorderType = UPGRADE
DescriptLabel = CONTROLBAR:TooltipUSAUpgradeSentryDroneGun
End

REPLACE THE GLA PALACE WITH THIS IN THE COMMANDSET.INI

CommandSet GLAPalaceCommandSet
1 = Command_StructureExit
2 = Command_StructureExit
3 = Command_StructureExit
4 = Command_StructureExit
5 = Command_StructureExit
6 = Command_Evacuate
7 = Command_UpgradeGLAFortifiedStructure
8 = Command_UpgradeGLAArmTheMob
9 = Command_UpgradeGLACamouflage
10 = Command_UpgradeGLAToxinShells
11 = Command_UpgradeGLAAnthraxBeta
12 = Command_UpgradeGlaMarauderSentryDroneGun
14 = Command_Sell
End


Thats all forlks.

Now if you did everything like it stands here IT MUST WORK i tried it with the EXACT same code.

if you dont get it to work you either messed something up or did not follow the procedure steps correctly.

Furthermore ONLY TEST IT WITH GLA
The_Blind_One is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-13-2003, 09:02 AM   #4 (permalink)
Senior Member
 
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
Default

THX!!!

Everything now works!
But you know how theres an Icon in the Unit picture at the right of the command bar that shows what upgrades the unit got?
Well the sentry-drone gun doesnt turn to color when you upgrade the tank...

no matter, thank you, i am very grateful to you.

One more quick question,
what does this line in the GLAVeicle mean?
AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI

something about automatically choosing somethign for the sentrydronegun... right?
Mishkin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-13-2003, 09:16 AM   #5 (permalink)
Senior Member
 
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
Default

Nevermind, I still had the old cameo upgrade... he-he-he, clumsy me.

That is the worst part that I hate in the FACTION.INI files, the damn module-tags. What there's like 13 of them, and each one does a different thing!

Now if somebody would do a small model, which adds a machine gun on the marauder... lol
Mishkin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-13-2003, 11:10 AM   #6 (permalink)
Senior Member
 
Join Date: Aug 2003
Posts: 337
Default

Copy it from the crusader and place it on the marauder using gmax.

AND CLUMPSY YOU.

Sheesh that costed me like 40 minutes.
The_Blind_One is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-14-2003, 06:06 PM   #7 (permalink)
Senior Member
 
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
Default

Sorry for wasting about 30 minuets of your life. :lol:

What the hell are you talking about, the crusader dosnt even hav a gun! :scared:

Oh yeah, I want to ask u 1 more thing.

I want to give the upgrade to all the GLA Generals. So I went in the commandset.INI, and put the sentrydronegun upgrade in the sam slot in the GC_Chem_GLAPalaceCommandSet. I also edited the chemical generals marauder, I justa dded the same lines as I did with the normal side GLA marauder.

The problem is this, when I play with the GLAChemicalGeneral, I dont even see the Damn icon for the sentrydronegun upgrade in the palace.
How come?
Mishkin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-14-2003, 06:27 PM   #8 (permalink)
Senior Member
 
Join Date: Aug 2003
Posts: 337
Default

Whell it wasnt the crusader actually i think.

If you look really closely youll see that the battlemaster has that big machine gun ontop of the thing i think that whas the old crusader and things changed with names during the proces of making the game i dont really know much about it.

Oh and your commandset things.

Just look really carefully because i aint gonne waste another 30 minutes

Just use this following procedure.

For each general.
1. Find the building, find the commandset.
2. Open the commandset.
3. Give it the sentry drone gun upgrade commandbutton.
4. Go find the marauder. Yes there are 3 marauders if i am correct (didnt check it myself though)
5. add the codes. ALL OF THEM DOUBLE CHECK

your done now start up generals.
6.
The_Blind_One is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-15-2003, 12:13 AM   #9 (permalink)
Senior Member
 
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
Default

Hah, funny.

In the ChemicalGeneral.INI, as you should know there are structures for the Generals too. Well, in the palace, the commandsetlines are different that from commandset.INI, in the commandset.INI, they have a GC_ before the chemical generals palace, and in the chemicalgeneral they dont. Thats why the upgrade wasnt working. Same goes for the Stealth general. But amazingly the demo general is fine.

Shit (sorry for profanity), EA needs to get it together, and if they have a group of people working together, they need to stick to the same format. Also, have you seen their CSF labels. Some are seriously screwed up. Nothing pisses me more off than a mixed up code (well, u know what i mean).

On the gmax note, can you give me some kind of a link to a tutorial, which enables u to take stuff from one unit and add it to another. Like taking the battlemaster gun and adding it to my souped up marauder.

I really appreciate all the help u've given me, and if I make a mod, I will be certain to put ure name on it 2.

P.S. Are u working on any mods right now? Or ar u just messing around?

-Mishkin- or The Russian Dude
Mishkin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where does this code go ? adamstrange Generals & Zero Hour Editing 3 06-27-2007 09:21 PM
Help with code Vanguard Generals & Zero Hour Editing 0 06-15-2004 11:53 AM
Help with code. Vanguard Generals & Zero Hour Editing 0 06-15-2004 11:52 AM
Help with code. Vanguard Generals & Zero Hour Editing 0 06-15-2004 11:52 AM
Code Red 0.95 Dgaaz Red Alert 2 & Yuri's Revenge Editing 0 04-29-2003 08:09 AM


All times are GMT -4. The time now is 09:16 AM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.0 Release Candidate 2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.