Posted: Mon Dec 07, 2020 3:05 pm Post subject:
Virus Demolition Truck Not Working ?
Hey guys I have been trying to create a virus demolition truck for Yuri so that when it detonates it creates a huge virus cloud that lingers.
The truck does explode but no virus cloud so what am I doing wrong ?
Code:
;Yuri Demolition Truck
[YDTRUCK]
UIName=Name:YDTRUCK
Image=TRUCKA
Name=Demolitions Truck
Prerequisite=YAWEAP
Category=AFV
Primary=Demovirusbomb
Secondary=none
Strength=150
Armor=light
Turret=no
TechLevel=10
Sight=5
Speed=5 ;changed on 11/29 from 6 to 5
Owner=YuriCountry
AllowedToStartInMultiplayer=no
Cost=1500
Soylent=1500
Points=40
ROT=5
Crusher=no
SelfHealing=no
Crewed=no
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
VoiceSelect=DemoTruckSelect
VoiceMove=DemoTruckMove
VoiceAttack=DemoTruckAttackCommand
VoiceFeedback=
DieSound=DemoTruckDie
MoveSound=DemoTruckMoveStart
CreateSound=DemoTruckCreated
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
Weight=2
MovementZone=Normal
ThreatPosed=50 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
MaxDebris=2
DebrisTypes=TIRE
DebrisMaximums=4
Size=3
DeathWeapon=Demovirusbomb
Explodes=yes
CanPassiveAquire=no ; Won't try to pick up own targets
CanRetaliate=no; Won't fire back when hit
Trainable=no
Virus clouds are spawned from the infantry death animation (specified with InfDeath=8 ), so first it will only work if there are a lots of enemy infantry near the truck when it explodes.
Your weapon also creates a radiation field with RadLevel=100 too though which might be overriding the virus death anim with the radiation anim.
If you want the demo truck to just spawn the same amount of virus gas every time then attach the virus gas particle system to the weapons explosion anim instead of InfDeath. _________________
Look at VirusGas warhead and you'll see that you need to add a Particle= tag. With this, then you'd follow the trail of VirusDeath in artmd and find that you want VirusCloud1.
Code:
[DemovirusbombWH]
CellSpread=24
PercentAtMax=.1 ;was .25
Verses=100%,100%,100%,1%,1%,1%,1%,1%,1%,1%,100% ; see note in comments above about 1%
InfDeath=8
Sparky=no
ProneDamage=100%
Particle=VirusCloud1
Just my opinion, but with a CellSpread that large you'd probably want to spawn multiple particles in the area which you'd use debris with SpawnsParticle=VirusCloud1 to achieve. There's no tutorial I know of for this specifically, but see this tutorial to learn some things about spawning debris. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
i suggest you create a special voxel debris that have a warhead that has the particle= attached to the warhead. _________________ visit my moddb profile for .shp downloads and stuff 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