Posted: Thu Oct 19, 2023 1:06 am Post subject:
Death Weapon Not Working ?
I gave the Allied MCV a deathweapon so that when its escaping but gets destroyed, it takes out near by soldiers but now when its destroyed nothing happens.
Code:
; Allied Grand MCV
[AGMCV]
UIName=Name:Allied Grand MCV
Name=Allied Grand MCV
Image=AGMCV
Prerequisite=GAWEAP
Strength=1575rt
;PipScale=Passengers
;Passengers=8
;OpenTopped=yes;passengers can shoot out
AllowedToStartInMultiplayer=yes
Armor=heavy
;DeploysInto=GAWEAP
DeploysInto=GACNST
ROT=10
Primary=MCVCannon
Turret=yes
TurretAnim=AGMCVTUR
TurretAnimIsVoxel=true
TurretAnimX=3
TurretAnimY=28
TurretAnimZAdjust=-60
TurretRecoil=yes
TurretTravel=0
BarrelTravel=8
BarrelCompressFrames=3
BarrelHoldFrames=3
BarrelRecoverFrames=40
;TurretRotateSound=GrandCannonRotate
TechLevel=10
Sight=11
Speed=4
Accelerates=true
Owner=British,French,Germans,Americans,Alliance
CrateGoodie=yes
Cost=3750
Soylent=3000
Points=60
ROT=5
Crewed=yes
Crusher=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=60
DebrisTypes=TIRE,AXLE,PIECE
DebrisMaximums=20,20,20
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS2SM,DBRIS3SM,DBRIS4SM,DBRIS5SM,DBRIS6SM,DBRIS7SM,DBRIS8SM,DBRIS9SM,DBRS10SM
DeathWeapon=MCV-AreaExplosion
VoiceSelect=MCVAlliedSelect
VoiceMove=MCVAlliedMove
VoiceAttack=MCVAlliedMove
DieSound=TankExplosion
VoiceFeedback=
DamageSound=ShellImpact
DeploySound=HeavyDrop
MoveSound=MCVMoveStart
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
Weight=3.5
MovementZone=Normal
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=LGSparkSys,BiggerGreyDamageSmokeSys
SpecialThreatValue=1
ZFudgeColumn=12
ZFudgeTunnel=15
Size=6
Trainable=no
Bunkerable=no; Units default to yes, others default to no
OmniCrushResistant=yes; so Crusher can crush Crushable, OmniCrusher trumps Crushable=no, and then OmniCrushResistant trumps OmniCrusher
OpportunityFire=yes
ToProtect=yes
You need to add Explodes=yes to the unit for the death weapon to work. I'm pretty sure you've asked this question before & was missing the same tag..?
There are a lot of other problems with the units code;
Strength=1575rt isn't a valid setting, so I presume it will instead default to 0.
TurretAnim= is only used on buildings. For units the game automatically takes the unit's name & adds "tur" to the end.
TurretAnimIsVoxel= is only used on buildings. On units if it's a SHP unit it will have a SHP turret & if it's a Voxel unit it will have a Voxel turret. On buildings you can use ether SHP or Voxel tho.
TurretAnimX=, TurretAnimY=, TurretAnimZAdjust= are only used on buildings. Units use TurretOffset= in the art ini file.
TurretRecoil=, TurretTravel=, BarrelTravel=, BarrelCompressFrames=, BarrelHoldFrames=, BarrelRecoverFrames= these are all only used on buildings. If you want to add recoil to a unit's barren then use an animated HVA file.
Again I'm pretty sure I've seen you incorrectly use all the above tags before & explained that they dont do anything on units.
[MCV-AreaExplosion] You should avoid using nonstandard character like "-" in names. _________________
; Allied Grand MCV
[AGMCV]
UIName=Name:Allied_Grand_MCV ;was Allied Grand MCV
Name=Allied Grand MCV
;Image=AGMCV
Prerequisite=GAWEAP
Strength=1575 ;was 1575rt
Category=Support ;new
;PipScale=Passengers
;Passengers=8
;OpenTopped=yes
AllowedToStartInMultiplayer=yes ;?
Armor=heavy
DeploysInto=GACNST; GAWEAP
; is double ROT=10
Primary=MCVCannon
Turret=yes
;------------------- for buildings only ------------------
;TurretAnim=AGMCVTUR
;TurretAnimIsVoxel=true
;TurretAnimX=3
;TurretAnimY=28
;TurretAnimZAdjust=-60
;TurretRecoil=yes
;TurretTravel=0
;BarrelTravel=8
;BarrelCompressFrames=3
;BarrelHoldFrames=3
;BarrelRecoverFrames=40
;---------------------------------------------------------
TurretRotateSound=GrandCannonRotate; for VehicleTypes,BuildingTypes
TechLevel=10
Sight=11
Speed=4
Accelerates=true
Owner=British,French,Germans,Americans,Alliance
CrateGoodie=no ;was yes, Problem for the AI when there are two construction yards (DeploysInto=GACNST)
Cost=3750
Soylent=3000
Points=60
ROT=5
Crewed=yes
Crusher=yes
;Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60 ; doesn't work if DeathWeapon is used
[MCVExplosionWH]
Verses=200%,100%,50%,25%,25%,50%,25%,25%,25%,25%,25%
Sparky=no
Fire=yes
InfDeath=4
Rocker=yes
CellSpread=3
Wood=yes
Wall=yes Last edited by wow4ik81 on Sat Jan 20, 2024 11:17 am; edited 1 time in total QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum