Skip to content

Commit

Permalink
Add: Mammoth Tank Default Implementation With Textures From CCG Alpha…
Browse files Browse the repository at this point in the history
… Version
  • Loading branch information
commy2 authored Oct 17, 2021
1 parent 0cafaec commit 7eb78c5
Show file tree
Hide file tree
Showing 4 changed files with 212 additions and 9 deletions.
3 changes: 3 additions & 0 deletions Patch104pZH/GameFilesEdited/Art/Textures/gxmammoth_co.tga
Git LFS file not shown
3 changes: 3 additions & 0 deletions Patch104pZH/GameFilesEdited/Art/Textures/gxmammothalt_HI.tga
Git LFS file not shown
195 changes: 195 additions & 0 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/CivilianUnit.ini
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,201 @@ Object MilitiaTank

End

; Patch104p @feature commy2 17/10/2021 Add default implementation of Mammoth tank.

;------------------------------------------------------------------------------
Object MammothTank

; *** ART Parameters ***
;SelectPortrait = NONE
;ButtonImage = NONE

;UpgradeCameo1 = NONE
;UpgradeCameo2 = NONE
;UpgradeCameo3 = NONE
;UpgradeCameo4 = NONE
;UpgradeCameo5 = NONE

Draw = W3DTankDraw ModuleTag_01
DefaultConditionState
Model = GXMammoth_a
Animation = GXMammoth_a.GXMammoth_a ;40
AnimationMode = LOOP
Turret = Turret01
WeaponFireFXBone = PRIMARY Muzzle
WeaponRecoilBone = PRIMARY Barrel
WeaponMuzzleFlash = PRIMARY MuzzleFX
WeaponLaunchBone = PRIMARY Muzzle
End
ConditionState = REALLYDAMAGED
Model = GXMammoth_Hi
Animation = GXMammoth_Hi.GXMammoth_Hi
AnimationMode = LOOP
ParticleSysBone = Smoke01 SmokeFactionMedium
End
ConditionState = RUBBLE
Model = GXMammoth_Hi
Animation = GXMammoth_Hi.GXMammoth_Hi
Model = GXMammoth_Hi
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.
OkToChangeModelColor = Yes
End

; ***DESIGN parameters ***
DisplayName = OBJECT:MilitiaTank

; @todo commy2 add name to localization files
;OBJECT:MammothTank
;"Mammoth Tank"
;END

Side = America
EditorSorting = VEHICLE
TransportSlotCount = 3
WeaponSet
Conditions = None
Weapon = PRIMARY OverlordTankGun
End
ArmorSet
Conditions = None
Armor = TankArmor
DamageFX = TankDamageFX
End
ArmorSet
Conditions = PLAYER_UPGRADE
Armor = UpgradedTankArmor
DamageFX = TankDamageFX
End
BuildCost = 2000
BuildTime = 20.0 ;in seconds
VisionRange = 150
ShroudClearingRange = 300
Prerequisites
End
ExperienceValue = 100 100 200 400 ;Experience point value at each level
ExperienceRequired = 0 200 300 600 ;Experience points needed to gain each level
IsTrainable = Yes ;Can gain experience
CrusherLevel = 3 ;What can I crush?: 1 = infantry, 2 = trees, 3 = vehicles
CrushableLevel = 3 ;What am I?: 0 = for infantry, 1 = for trees, 2 = general vehicles
CommandSet = GenericCommandSet

; ; *** AUDIO Parameters ***
VoiceSelect = OverlordTankVoiceSelect
VoiceMove = OverlordTankVoiceMove
VoiceGuard = OverlordTankVoiceMove
VoiceAttack = OverlordTankVoiceAttack
SoundMoveStart = OverlordTankMoveStart
SoundMoveStartDamaged = OverlordTankMoveStart
UnitSpecificSounds
; These have the syntax of SomeNameSomewhereInCode = SomeNameSomewhereInLookupINIs
VoiceCreate = OverlordTankVoiceCreate
VoiceEnter = OverlordTankVoiceMove
TurretMoveStart = NoSound
TurretMoveLoop = TurretMoveLoop
SoundEject = PilotSoundEject
VoiceEject = PilotVoiceEject
VoiceCrush = OverlordTankVoiceCrush
End

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

Body = ActiveBody ModuleTag_02
MaxHealth = 500
InitialHealth = 500

; 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 = 1000
SubdualDamageHealRate = 500
SubdualDamageHealAmount = 50
End

Behavior = AIUpdateInterface ModuleTag_03
Turret
TurretTurnRate = 60 // turn rate, in degrees per sec
ControlledWeaponSlots= PRIMARY
End
AutoAcquireEnemiesWhenIdle = Yes
End
Locomotor = SET_NORMAL OverlordLocomotor
Behavior = PhysicsBehavior ModuleTag_04
Mass = 50.0
End

Behavior = ProductionUpdate ModuleTag_05
; nothing
End

; Turret fly off death
Behavior = SlowDeathBehavior ModuleTag_06
DeathTypes = ALL -CRUSHED -SPLATTED
ProbabilityModifier = 50
DestructionDelay = 500
DestructionDelayVariance = 100
FX = INITIAL FX_GenericTankDeathEffect
FX = FINAL FX_GenericTankDeathExplosion
OCL = FINAL OCL_GenericTankDeathEffect
End

; Catch fire, and explode death
Behavior = SlowDeathBehavior ModuleTag_07
DeathTypes = ALL -CRUSHED -SPLATTED
ProbabilityModifier = 50
DestructionDelay = 2000
DestructionDelayVariance = 300
FX = INITIAL FX_CrusaderCatchFire
OCL = FINAL OCL_GenericTankDeathEffect
FX = FINAL FX_GenericTankDeathExplosion
End

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

Behavior = DestroyDie ModuleTag_09
DeathTypes = NONE +CRUSHED +SPLATTED
End

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

Behavior = CreateObjectDie ModuleTag_11
DeathTypes = NONE +CRUSHED +SPLATTED
CreationList = OCL_CrusaderTank_CrushEffect
End

Behavior = CreateCrateDie ModuleTag_CratesChange
CrateData = SalvageCrateData
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 = 15.0
GeometryMinorRadius = 10.0
GeometryHeight = 10.0
GeometryIsSmall = Yes
Shadow = SHADOW_VOLUME
ShadowSizeX = 45 ; minimum elevation angle above horizon. Used to limit shadow length
Scale = 1.15

End

;------------------------------------------------------------------------------
Object MogadishuMaleCivilian01

Expand Down
20 changes: 11 additions & 9 deletions Patch104pZH/Scripts/MAKE_Patch104pZH.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@ if "%ThisArg1%"=="build" (
:: All files listed here become part of the core of Patch104p and are meant
:: to be critical for client compatibility and essential for functionality.
:: Optional files should be moved into one of the other scripts.
xcopy /y /s "%GameFilesDir%\*.ini" "%GeneratedBigFilesUnpackedDir%\%BigName%\"
xcopy /y /s "%GameFilesDir%\*.wnd" "%GeneratedBigFilesUnpackedDir%\%BigName%\"
xcopy /y "%GameFilesDir%\Art\Textures\exlaser3.dds" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\Textures\"
xcopy /y "%GameFilesDir%\Art\W3D\ABSWGLink_L.W3D" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\W3D\"
xcopy /y "%GameFilesDir%\Art\W3D\AVAvnger.W3D" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\W3D\"
xcopy /y "%GameFilesDir%\Art\W3D\AVAvnger_D.W3D" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\W3D\"
xcopy /y "%GameFilesDir%\Art\W3D\EXCarptBmb2.W3D" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\W3D\"
xcopy /y "%GameFilesDir%\Art\W3D\NVLOutpost.W3D" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\W3D\"
xcopy /y "%GameFilesDir%\Art\W3D\NVLOutpost_D.W3D" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\W3D\"
xcopy /y /s "%GameFilesDir%\*.ini" "%GeneratedBigFilesUnpackedDir%\%BigName%\"
xcopy /y /s "%GameFilesDir%\*.wnd" "%GeneratedBigFilesUnpackedDir%\%BigName%\"
xcopy /y "%GameFilesDir%\Art\Textures\exlaser3.dds" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\Textures\"
xcopy /y "%GameFilesDir%\Art\Textures\gxmammoth_co.tga" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\Textures\"
xcopy /y "%GameFilesDir%\Art\Textures\gxmammothalt_HI.tga" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\Textures\"
xcopy /y "%GameFilesDir%\Art\W3D\ABSWGLink_L.W3D" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\W3D\"
xcopy /y "%GameFilesDir%\Art\W3D\AVAvnger.W3D" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\W3D\"
xcopy /y "%GameFilesDir%\Art\W3D\AVAvnger_D.W3D" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\W3D\"
xcopy /y "%GameFilesDir%\Art\W3D\EXCarptBmb2.W3D" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\W3D\"
xcopy /y "%GameFilesDir%\Art\W3D\NVLOutpost.W3D" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\W3D\"
xcopy /y "%GameFilesDir%\Art\W3D\NVLOutpost_D.W3D" "%GeneratedBigFilesUnpackedDir%\%BigName%\Art\W3D\"

:: Generate .big file(s)
"%ToolsDir%\GeneralsBigCreator\GeneralsBigCreator.exe" -source "%GeneratedBigFilesUnpackedDir%\%BigName%" -dest "%GeneratedBigFilesDir%\%BigName%.big"
Expand Down

0 comments on commit 7eb78c5

Please sign in to comment.