Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

sub4gman Offline
#1 Posted : Sunday, April 12, 2020 10:46:17 AM(UTC)
sub4gman
Private
Joined: 4/8/2020(UTC)
Posts: 20

Thanks: 4 times
Hey i want to add a decal/fx of an existing unit to another unit. For example, i want to add China's troop crawler/tower's red wave propaganda fx/decal to crusader tank. So the crusader tank has the fx/decal of troop crawler/tower all the time as long as he is alive. Do you know how to do that?
Sponsor
adrianemapmaker Offline
#2 Posted : Monday, April 13, 2020 4:27:55 AM(UTC)
adrianemapmaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,114
Philippines
Location: Norzagaray,Bulacan

Thanks: 312 times
Was thanked: 181 time(s) in 145 post(s)
the code usually is under geometry parrameters.

Shadow texture =
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb






sub4gman Offline
#3 Posted : Monday, April 13, 2020 5:35:30 AM(UTC)
sub4gman
Private
Joined: 4/8/2020(UTC)
Posts: 20

Thanks: 4 times
Originally Posted by: adrianemapmaker Go to Quoted Post
the code usually is under geometry parrameters.

Shadow texture =


For example, i want that yellow circle and red star decal from battlemaster tank to crusader tank. I just want the decal not the whole effect and status. Can it be done through "shadowtexture=". And where can i get all the list of shadowtexture? Because i don't know the name of them.

EDIT; I've tried "shadowtexture" with no luck. Nothing's appear in the game.

Edited by user Monday, April 13, 2020 6:05:10 AM(UTC)  | Reason: Not specified

UTD^Force Offline
#4 Posted : Monday, April 13, 2020 9:30:09 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 793
Jordan
Location: Middle east

Thanks: 448 times
Was thanked: 161 time(s) in 145 post(s)
I was willing to finish the code for you, but I don't have much time now.
Anyway, here is the code, use it as a base and tweak with it until it suits your idea.

Code:
ParticleSystem SonicRangeCrusaderNew
  Priority = CRITICAL
  IsOneShot = No
  Shader = ADDITIVE
  Type = PARTICLE
  ParticleName = EXSonic2.tga
  AngleZ = 0.00 0.00
  AngularRateZ = 0.00 0.00
  AngularDamping = 0.80 0.85
  VelocityDamping = 0.50 0.50
  Gravity = 0.00
  Lifetime = 30.00 30.00
  SystemLifetime = 0

  Size = 50.00 60.00
  StartSizeRate = 0.00 0.00
  SizeRate = 0.20 0.30
  SizeRateDamping = 1.00 1.00

;  Size = 0.00 0.00
;  StartSizeRate = 0.00 0.00
;  SizeRate = 10.00 10.00
;  SizeRateDamping = 0.92 0.92
  Alpha1 = 1.00 1.00 2000
  Alpha2 = 0.00 0.00 30000
  Alpha3 = 0.00 0.00 0
  Alpha4 = 0.00 0.00 0
  Alpha5 = 0.00 0.00 0
  Alpha6 = 0.00 0.00 0
  Alpha7 = 0.00 0.00 0
  Alpha8 = 0.00 0.00 0
  Color1 = R:0 G:255 B:255 2000
  Color2 = R:0 G:0 B:0 30000
  Color3 = R:0 G:0 B:0 0
  Color4 = R:0 G:0 B:0 0
  Color5 = R:0 G:0 B:0 0
  Color6 = R:0 G:0 B:0 0
  Color7 = R:0 G:0 B:0 0
  Color8 = R:0 G:0 B:0 0
  ColorScale = 0.00 0.00
  BurstDelay = 5.00 5.00
  BurstCount = 1.00 1.00
  InitialDelay = 0.00 0.00
  DriftVelocity = X:0.00 Y:0.00 Z:0.00
  VelocityType = ORTHO
  VelOrthoX = 0.00 0.00
  VelOrthoY = 0.00 0.00
  VelOrthoZ = 0.00 0.00
  VolumeType = POINT
  IsHollow = No
  IsGroundAligned = Yes
  IsEmitAboveGroundOnly = No
  IsParticleUpTowardsEmitter = No
  WindMotion = Unused
  WindAngleChangeMin = 0.149924
  WindAngleChangeMax = 0.449946
  WindPingPongStartAngleMin = 0.000000
  WindPingPongStartAngleMax = 0.785398
  WindPingPongEndAngleMin = 5.497787
  WindPingPongEndAngleMax = 6.283185
End

Object AmericaTankCrusader
  RemoveModule ModuleTag_01
  AddModule
  Draw = W3DTankDraw ModuleTag_01Override
    DefaultConditionState
      Model               = AVLeopard
      Turret              = Turret
      WeaponFireFXBone    = PRIMARY TurretMS
      WeaponRecoilBone    = PRIMARY Barrel
      WeaponMuzzleFlash   = PRIMARY TurretFX
      WeaponLaunchBone = PRIMARY TurretMS

      ParticleSysBone = NONE SonicRangeCrusaderNew
    End
    ConditionState       = REALLYDAMAGED
      Model              = AVLeopard_D

      ParticleSysBone = NONE SonicRangeCrusaderNew
    End
    ConditionState       = RUBBLE
      Model              = AVLeopard_D
    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
 End
End
<3
The lilacs where the robin built,
And where my brother set
The laburnum on his birthday,
The tree is living yet!

"I rarely have many failures. If I'm baking a cake and it fails, it becomes pudding."

"Sometimes I sit and wonder, "why am I not in a mental asylum?" Then I take a good look at everyone around me and realize, maybe I am."

A flower does not think of competing to the flower next to it. It just blooms.
 1 user thanked UTD^Force for this useful post.
sub4gman on 4/14/2020(UTC)
sub4gman Offline
#5 Posted : Tuesday, April 14, 2020 12:30:13 AM(UTC)
sub4gman
Private
Joined: 4/8/2020(UTC)
Posts: 20

Thanks: 4 times
Originally Posted by: UTD^Force Go to Quoted Post
I was willing to finish the code for you, but I don't have much time now.
Anyway, here is the code, use it as a base and tweak with it until it suits your idea.

Code:
ParticleSystem SonicRangeCrusaderNew
  Priority = CRITICAL
  IsOneShot = No
  Shader = ADDITIVE
  Type = PARTICLE
  ParticleName = EXSonic2.tga
  AngleZ = 0.00 0.00
  AngularRateZ = 0.00 0.00
  AngularDamping = 0.80 0.85
  VelocityDamping = 0.50 0.50
  Gravity = 0.00
  Lifetime = 30.00 30.00
  SystemLifetime = 0

  Size = 50.00 60.00
  StartSizeRate = 0.00 0.00
  SizeRate = 0.20 0.30
  SizeRateDamping = 1.00 1.00

;  Size = 0.00 0.00
;  StartSizeRate = 0.00 0.00
;  SizeRate = 10.00 10.00
;  SizeRateDamping = 0.92 0.92
  Alpha1 = 1.00 1.00 2000
  Alpha2 = 0.00 0.00 30000
  Alpha3 = 0.00 0.00 0
  Alpha4 = 0.00 0.00 0
  Alpha5 = 0.00 0.00 0
  Alpha6 = 0.00 0.00 0
  Alpha7 = 0.00 0.00 0
  Alpha8 = 0.00 0.00 0
  Color1 = R:0 G:255 B:255 2000
  Color2 = R:0 G:0 B:0 30000
  Color3 = R:0 G:0 B:0 0
  Color4 = R:0 G:0 B:0 0
  Color5 = R:0 G:0 B:0 0
  Color6 = R:0 G:0 B:0 0
  Color7 = R:0 G:0 B:0 0
  Color8 = R:0 G:0 B:0 0
  ColorScale = 0.00 0.00
  BurstDelay = 5.00 5.00
  BurstCount = 1.00 1.00
  InitialDelay = 0.00 0.00
  DriftVelocity = X:0.00 Y:0.00 Z:0.00
  VelocityType = ORTHO
  VelOrthoX = 0.00 0.00
  VelOrthoY = 0.00 0.00
  VelOrthoZ = 0.00 0.00
  VolumeType = POINT
  IsHollow = No
  IsGroundAligned = Yes
  IsEmitAboveGroundOnly = No
  IsParticleUpTowardsEmitter = No
  WindMotion = Unused
  WindAngleChangeMin = 0.149924
  WindAngleChangeMax = 0.449946
  WindPingPongStartAngleMin = 0.000000
  WindPingPongStartAngleMax = 0.785398
  WindPingPongEndAngleMin = 5.497787
  WindPingPongEndAngleMax = 6.283185
End

Object AmericaTankCrusader
  RemoveModule ModuleTag_01
  AddModule
  Draw = W3DTankDraw ModuleTag_01Override
    DefaultConditionState
      Model               = AVLeopard
      Turret              = Turret
      WeaponFireFXBone    = PRIMARY TurretMS
      WeaponRecoilBone    = PRIMARY Barrel
      WeaponMuzzleFlash   = PRIMARY TurretFX
      WeaponLaunchBone = PRIMARY TurretMS

      ParticleSysBone = NONE SonicRangeCrusaderNew
    End
    ConditionState       = REALLYDAMAGED
      Model              = AVLeopard_D

      ParticleSysBone = NONE SonicRangeCrusaderNew
    End
    ConditionState       = RUBBLE
      Model              = AVLeopard_D
    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
 End
End


1. Can i put multiple particlesysbone in 1 unit?
2. So i have to put that particlesytem name in "ParticleSysBone = NONE", right?

By the way, thank you very much... that's helping me a lotBig Smile

Edited by user Tuesday, April 14, 2020 12:58:03 AM(UTC)  | Reason: Not specified

UTD^Force Offline
#6 Posted : Tuesday, April 14, 2020 3:04:59 AM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 793
Jordan
Location: Middle east

Thanks: 448 times
Was thanked: 161 time(s) in 145 post(s)
You're welcome, it always feels good to help.
So this explains the code, again taken from the module list which rrtaya uploaded.

Code:

		ParticleSysBone = [Bone name  Entry from ParticleSystem.INI, multiple statements can be used]


So basically the code is to add a particlesystem (or multiple) to a named bone.
NONE, means that the particle system doesn't have to be shown from a specific bone, and as far as I remember it means the particle system will fire from the middle of the unit.

Side note, bones are used in W3D models of the game's units, they are used for different kinds of stuff like where the weapon fires from or the muzzle when a tank fires etc..
Example:
Quote:
WeaponFireFXBone = SECONDARY WeaponB
WeaponLaunchBone = SECONDARY WeaponB
WeaponFireFXBone = TERTIARY WeaponB
WeaponLaunchBone = TERTIARY WeaponB
<3
The lilacs where the robin built,
And where my brother set
The laburnum on his birthday,
The tree is living yet!

"I rarely have many failures. If I'm baking a cake and it fails, it becomes pudding."

"Sometimes I sit and wonder, "why am I not in a mental asylum?" Then I take a good look at everyone around me and realize, maybe I am."

A flower does not think of competing to the flower next to it. It just blooms.
sub4gman Offline
#7 Posted : Tuesday, April 14, 2020 11:59:31 AM(UTC)
sub4gman
Private
Joined: 4/8/2020(UTC)
Posts: 20

Thanks: 4 times
Originally Posted by: UTD^Force Go to Quoted Post
You're welcome, it always feels good to help.
So this explains the code, again taken from the module list which rrtaya uploaded.

Code:

		ParticleSysBone = [Bone name  Entry from ParticleSystem.INI, multiple statements can be used]


So basically the code is to add a particlesystem (or multiple) to a named bone.
NONE, means that the particle system doesn't have to be shown from a specific bone, and as far as I remember it means the particle system will fire from the middle of the unit.

Side note, bones are used in W3D models of the game's units, they are used for different kinds of stuff like where the weapon fires from or the muzzle when a tank fires etc..
Example:
Quote:
WeaponFireFXBone = SECONDARY WeaponB
WeaponLaunchBone = SECONDARY WeaponB
WeaponFireFXBone = TERTIARY WeaponB
WeaponLaunchBone = TERTIARY WeaponB

Thank you very much my friend. Can i ask one more question? How to make a unit fire/toxic/radiation resistance?
UTD^Force Offline
#8 Posted : Tuesday, April 14, 2020 5:18:45 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 793
Jordan
Location: Middle east

Thanks: 448 times
Was thanked: 161 time(s) in 145 post(s)
You're welcome.
You can change that by editing the armor of that unit.
Example, the chemsuits upgrade for USA:
Code:

  Armor = ARMOR_PIERCING    10%     ;humans don't get hit by tank rounds.  
  Armor = INFANTRY_MISSILE  10%
  Armor = FLAME             150%    ;humans don't like fire
  Armor = POISON            20%     ;Unharmed by poison
  Armor = RADIATION         20%     ;Unharmed by radiation too
  Armor = MICROWAVE         20%
  Armor = PARTICLE_BEAM     150%    ;humans don't fare well against orbital beams...
  Armor = SNIPER            200%
  Armor = LASER             50%     ;LASERs are anti-personel and anti-projectile only (for point defense laser)
  Armor = HAZARD_CLEANUP    0%      ;Not harmed by cleaning weapons
  Armor = KILL_PILOT        0%      ;Jarmen Kell uses against vehicles only.
  Armor = SURRENDER         100%    ;Capture type weapons are effective only against infantry.
  Armor = SUBDUAL_MISSILE   0%
  Armor = SUBDUAL_VEHICLE   0%
  Armor = SUBDUAL_BUILDING  0%
End


As far as I can remember, the percentage is how much damage the unit takes. So if you decrease the POISON and RADIATION to 0% the unit should become immune to them. I'm not sure, but you can try it in your mod/map and will find out.
Good luck.


The sentences after the semicolons do not affect the code and are just explanatory sentences added by the game's developers (I'm sure you already know that, but that's just a note).
Some of the sentences were from copying and pasting from other codes, so they are not always talking about what's before them, as an example, in the code above they said that the armor makes the units be unharmed by poison and radiation, which isn't correct as they are set to deal damage, but that is from copying the HazMatHumanArmor.
Just a side note ;)

Edited by user Tuesday, April 14, 2020 5:22:10 PM(UTC)  | Reason: Not specified

<3
The lilacs where the robin built,
And where my brother set
The laburnum on his birthday,
The tree is living yet!

"I rarely have many failures. If I'm baking a cake and it fails, it becomes pudding."

"Sometimes I sit and wonder, "why am I not in a mental asylum?" Then I take a good look at everyone around me and realize, maybe I am."

A flower does not think of competing to the flower next to it. It just blooms.
 1 user thanked UTD^Force for this useful post.
sub4gman on 4/15/2020(UTC)
sub4gman Offline
#9 Posted : Wednesday, April 15, 2020 12:05:17 AM(UTC)
sub4gman
Private
Joined: 4/8/2020(UTC)
Posts: 20

Thanks: 4 times
Originally Posted by: UTD^Force Go to Quoted Post
You're welcome.
You can change that by editing the armor of that unit.
Example, the chemsuits upgrade for USA:
Code:

  Armor = ARMOR_PIERCING    10%     ;humans don't get hit by tank rounds.  
  Armor = INFANTRY_MISSILE  10%
  Armor = FLAME             150%    ;humans don't like fire
  Armor = POISON            20%     ;Unharmed by poison
  Armor = RADIATION         20%     ;Unharmed by radiation too
  Armor = MICROWAVE         20%
  Armor = PARTICLE_BEAM     150%    ;humans don't fare well against orbital beams...
  Armor = SNIPER            200%
  Armor = LASER             50%     ;LASERs are anti-personel and anti-projectile only (for point defense laser)
  Armor = HAZARD_CLEANUP    0%      ;Not harmed by cleaning weapons
  Armor = KILL_PILOT        0%      ;Jarmen Kell uses against vehicles only.
  Armor = SURRENDER         100%    ;Capture type weapons are effective only against infantry.
  Armor = SUBDUAL_MISSILE   0%
  Armor = SUBDUAL_VEHICLE   0%
  Armor = SUBDUAL_BUILDING  0%
End


As far as I can remember, the percentage is how much damage the unit takes. So if you decrease the POISON and RADIATION to 0% the unit should become immune to them. I'm not sure, but you can try it in your mod/map and will find out.
Good luck.


The sentences after the semicolons do not affect the code and are just explanatory sentences added by the game's developers (I'm sure you already know that, but that's just a note).
Some of the sentences were from copying and pasting from other codes, so they are not always talking about what's before them, as an example, in the code above they said that the armor makes the units be unharmed by poison and radiation, which isn't correct as they are set to deal damage, but that is from copying the HazMatHumanArmor.
Just a side note ;)


Thank you so muchh. You're really really helpful. May I ask you when I have more questions later?Big Smile
UTD^Force Offline
#10 Posted : Wednesday, April 15, 2020 1:23:04 AM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 793
Jordan
Location: Middle east

Thanks: 448 times
Was thanked: 161 time(s) in 145 post(s)
You're very welcome.
Yeah sure, just make sure to make a public topic here (or wherever your question should be) so that someone else might benefit as well.
<3
The lilacs where the robin built,
And where my brother set
The laburnum on his birthday,
The tree is living yet!

"I rarely have many failures. If I'm baking a cake and it fails, it becomes pudding."

"Sometimes I sit and wonder, "why am I not in a mental asylum?" Then I take a good look at everyone around me and realize, maybe I am."

A flower does not think of competing to the flower next to it. It just blooms.
 1 user thanked UTD^Force for this useful post.
sub4gman on 4/15/2020(UTC)
sub4gman Offline
#11 Posted : Wednesday, April 15, 2020 3:31:05 AM(UTC)
sub4gman
Private
Joined: 4/8/2020(UTC)
Posts: 20

Thanks: 4 times
Originally Posted by: UTD^Force Go to Quoted Post
You're very welcome.
Yeah sure, just make sure to make a public topic here (or wherever your question should be) so that someone else might benefit as well.

Big Smile Thumb Up
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.6.1 | YAF © 2003-2020, Yet Another Forum.NET
This page was generated in 1.056 seconds.