Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Sat Jul 20, 2024 12:08 am
All times are UTC + 0
Death Weapon Not Working ?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
adamstrange
Cyborg Cannon


Joined: 07 Mar 2013

PostPosted: Thu Oct 19, 2023 1:06 am    Post subject:  Death Weapon Not Working ? Reply with quote  Mark this post and the followings unread

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

[MCVCannon]
Damage=300
ROF=120
Range=15
MinimumRange=3
Projectile=GrandCannonBall
Speed=1
Report=GMCVFire
Bright=yes
Warhead=GrandCannonWH
Anim=GCMUZZLE


[MCV-AreaExplosion]
Projectile=Invisible
Damage=1750
ROF=50
Range=1
Projectile=InvisibleLow2
Speed=35
Warhead=MCVExplosionWH
Report=ConyardExplo
Anim=RING1

[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


Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Thu Oct 19, 2023 6:52 am    Post subject: Reply with quote  Mark this post and the followings unread

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.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
adamstrange
Cyborg Cannon


Joined: 07 Mar 2013

PostPosted: Fri Oct 20, 2023 9:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks for reminding me Mig, sorry but I got a really bad memory.

As for the turret settings, I do have a working cannon on top of the MCV for defence when moving to another location.

You never know who will try to steal your poptarts Laughing



Allied Grand MCV.png
 Description:
 Filesize:  473.75 KB
 Viewed:  2344 Time(s)

Allied Grand MCV.png



Back to top
View user's profile Send private message
wow4ik81
Soldier


Joined: 30 Nov 2023
Location: Germany

PostPosted: Fri Jan 19, 2024 6:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

; 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

DebrisTypes=TIRE,AXLE,PIECE
DebrisMaximums=20,20,20
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS2SM,DBRIS3SM,DBRIS4SM,DBRIS5SM,DBRIS6SM,DBRIS7SM,DBRIS8SM,DBRIS9SM,DBRS10SM
MaxDebris=60
;MinDebris= ;new

Explodes=yes ;new
DeathWeapon=MCV_AreaExplosion ;was MCV-AreaExplosion

VoiceSelect=MCVAlliedSelect
VoiceMove=MCVAlliedMove
VoiceAttack=MCVAlliedMove
DieSound=TankExplosion
;VoiceFeedback=
DamageSound=ShellImpact
DeploySound=HeavyDrop
MoveSound=MCVMoveStart
CreateSound=MCVAlliedSelect ;new

Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
Weight=3.5
MovementZone=Normal
ThreatPosed=0
DamageParticleSystems=LGSparkSys,BiggerGreyDamageSmokeSys ;?
SpecialThreatValue=1
ZFudgeColumn=12
ZFudgeTunnel=15
Size=6
Trainable=no
Bunkerable=no
OmniCrushResistant=yes
OpportunityFire=yes
ToProtect=yes
Parasiteable=no ;new
TooBigToFitUnderBridge=yes ;new


; Primary
[MCVCannon]
Damage=300
ROF=120
Range=15
MinimumRange=3
Projectile=GrandCannonBall
Speed=1
Report=GMCVFire
Bright=yes
Warhead=GrandCannonWH
Anim=GCMUZZLE


; DeathWeapon
[MCV_AreaExplosion]; was MCV-AreaExplosion
Projectile=Invisible
Damage=1750
ROF=50
Range=1
;is double Projectile=InvisibleLow2
Speed=35
Warhead=MCVExplosionWH
Report=ConyardExplo
Anim=RING1

[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

Back to top
View user's profile Send private message
adamstrange
Cyborg Cannon


Joined: 07 Mar 2013

PostPosted: Sat Jan 20, 2024 1:16 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks WOW

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.1524s ][ Queries: 14 (0.0105s) ][ Debug on ]