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 Fri Apr 19, 2024 1:35 pm
All times are UTC + 0
Virus Demolition Truck Not Working ?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
adamstrange
Tiberian Fiend


Joined: 07 Mar 2013

PostPosted: Mon Dec 07, 2020 3:05 pm    Post subject:  Virus Demolition Truck Not Working ? Reply with quote  Mark this post and the followings unread

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


;[WEAPON]

[Demovirusbomb]
Damage=300 ;was 400, changed 11/30
ROF=100
Range=100
Projectile=InvisibleLow
Speed=100
RadLevel=100
Warhead=ViruS;DemovirusbombWH
Report=DemoTruckDie
Suicide=yes


;[ *** Warhead List **]
106=DemovirusbombWH


[WARHEAD]

[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%
AnimList=PIFF

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


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Mon Dec 07, 2020 3:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

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.

_________________



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
4StarGeneral
General


Joined: 14 Sep 2006
Location: Limbo

PostPosted: Mon Dec 07, 2020 4:32 pm    Post subject: Reply with quote  Mark this post and the followings unread

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."

Back to top
View user's profile Send private message Send e-mail YouTube User URL
adamstrange
Tiberian Fiend


Joined: 07 Mar 2013

PostPosted: Mon Dec 07, 2020 11:20 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks guys

Back to top
View user's profile Send private message
adamstrange
Tiberian Fiend


Joined: 07 Mar 2013

PostPosted: Wed Dec 09, 2020 1:11 am    Post subject: Reply with quote  Mark this post and the followings unread

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


For some reason, the moment that I select the truck to target a unit, the game freezes using this code.

Back to top
View user's profile Send private message
4StarGeneral
General


Joined: 14 Sep 2006
Location: Limbo

PostPosted: Wed Dec 09, 2020 1:53 am    Post subject: Reply with quote  Mark this post and the followings unread

It shouldn't be freezing from that code, it should just not work, because oops.

Should be Particle=VirusCloudSys and you have to make the new system.

Code:
[ParticleSystems]
+=VirusCloudSys    ; change + to whatever number at the bottom of the list if you don't know how + works.

[VirusCloudSys]
HoldsWhat=VirusCloud1
BehavesLike=Gas

[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=VirusCloudSys

_________________
"Don't beg for things; Do it yourself or you'll never get anything."

Back to top
View user's profile Send private message Send e-mail YouTube User URL
McPwny
Cyborg Artillery


Joined: 29 Jan 2018

PostPosted: Wed Dec 09, 2020 2:28 am    Post subject: Reply with quote  Mark this post and the followings unread

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

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 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.1442s ][ Queries: 11 (0.0088s) ][ Debug on ]