2142GenReaper
17 years ago
I'm starting to wonder if stuff like spreadable diseases can be coded into Zero Hourđź’€!I know that Chemical and Nuclear Warfare is possibleđź’€.I also wonder if it is possible to code a EMP pulse for a secondary explosion for the nukeđź’€.
Attack is the best Defense.
Sponsor
Me Myself and Pi
17 years ago
What you might be able to do is when a infantry guy dies, you can have could have a toxin field spawn there.

ObjectCreationList.ini:
ObjectCreationList OCL_PoisonFieldLarge
  CreateObject
    ObjectNames = PoisonFieldLarge
    IgnorePrimaryObstacle = Yes
    DispositionIntensity = 4
    Count = 1
    RequiresLivePlayer = Yes
  End
End

Each of the infantries object code:
Behavior             = CreateObjectDie ModuleTag_99
  CreationList  = OCL_PoisonFieldLarge
End



As for the EMP turret adding nukes to it, you'd somehow need to combine the NukeMissileWeapon with the EMP's. But I'm not sure how.
Yoshi714
17 years ago
Hmm... Pi you give me an idea. I suppose that code should work to make the poisen field. I could make a map with lots of nuclear reactors on it (the ones that are just buildings, not China PP's) and other stuff that 'looks' nuclear. Then add that as an effect for infantry like GenReaper was asking about. There is one thing I'd like to know how to do though. How do you make the water look disgusting? Like in that generals challenge against the nuc gen, wasn't the water very nuclearish?!
Turtling is not a strategy, its a weakness
CommieDog
17 years ago
Rather than adding a new ObjectCreationList to every infantry unit, it would be easier to simply modify the one that all infantry spawn when killed by toxins. I recommend finding this in ObjectCreationList.ini:
ObjectCreationList OCL_ToxicInfantry
  CreateObject
    ObjectNames = ToxicInfantry
    Disposition = LIKE_EXISTING
    SkipIfSignificantlyAirborne = Yes
  End
End
...and modifying it like this:
ObjectCreationList OCL_ToxicInfantry
  CreateObject
    ObjectNames = ToxicInfantry
    Disposition = LIKE_EXISTING
    SkipIfSignificantlyAirborne = Yes
  End
  CreateObject
    ObjectNames = PoisonFieldMedium
    Disposition = ON_GROUND_ALIGNED
  End
End
You can make similar changes to OCL_ToxicInfantryBeta and OCL_ToxicInfantryGamma to make sure that upgraded toxins have similar effects.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
fleetatks
17 years ago
You could modify the damage to make it super strong so it is like a plague (similar to the virus sniper unit in Yuri's Revenge), that way killing one person would spread to more and keep killing.
Email me if you ever need help (edited signature November 6th, 2014)
Yoshi714
17 years ago
Commie, that wouldn't allow the infantry killed by ANYTHING to spawn a toxin field though would it? Isn't there just a typical death that all infantry suffer that could have the toxin effect added? And I like the idea of upping the effect so if there is a group of infantry it would spread quickly.
Turtling is not a strategy, its a weakness
CommieDog
17 years ago
You know that green guy that appears when infantry die to toxin weapons? My code would only spawn the cloud when killed by a weapon with a DeathType of POISONED.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
Yoshi714
17 years ago
Thats what I thought, and I also thought the guy was blue, but I am not good with colors so... I'll just trust you that hes green.
Turtling is not a strategy, its a weakness
CommieDog
17 years ago
Green is the color of the unupgraded toxin and its victims; blue is Anthrax Beta.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
Yoshi714
17 years ago
Ahh... well you may be surprised to tell that they both look very similar to me, kind of like how the red and yellow lights on a stop light look the same to me : ( it sucks!
Turtling is not a strategy, its a weakness
krit
  • krit
  • 100% (Exalted)
  • Commander in Chief
17 years ago
Color blind?
UserPostedImage 
fleetatks
17 years ago
It might be worth it (If you are making a new unit that has a specific "plague" weapon) to add a damage type of say PLAGUE and have it have the same death model, and add that death type to every infantry unit, so that only when they die by PLAGUE they release the super strong poisons.
Email me if you ever need help (edited signature November 6th, 2014)
Yoshi714
17 years ago
"color deficient" according to the eye doctor. There is actually a difference, but there is one advantage.... One time my tv lost the color red, and playing halo I was the only guy in my room that not only didnt notice, but also was still able to determine what team someone was on based off the dots on the radar, lol, guess I am used to looking at shades and didn't even realize it till then.

Back to topic

Does anyone know how to make a disease infested body of water? I swear the nuc gen challenge had that in the water, or am I crazy? Maybe an INI that edits the color distribution of the water texture, the R, G, and B values?? or is that even possible. And I don't mean litterally infested, but by appearance... although I suppose I could create a polygon around it that causes death by green/blue **** if infantry come too close using scripts.
Turtling is not a strategy, its a weakness
krit
  • krit
  • 100% (Exalted)
  • Commander in Chief
17 years ago
Possible, just look at the water on Dr. Trax's map.
UserPostedImage 
Yoshi714
17 years ago
maybe thats the map I was thinking of, anyway, if they can do it in single player I can do it in skirmish.
Turtling is not a strategy, its a weakness
CommieDog
17 years ago
Try adding this code to your map.ini:
WaterTransparency
  TransparentWaterMinOpacity = 0.8   ;opacity of water at maximum depth - 1.0 is opaque, 0 transparent.
  TransparentWaterDepth = 2.0       ;depth below water surface at which it becomes opaque (unless clipped by TransparentWaterMinOpacity)
  StandingWaterTexture = TSWater03.tga
  ;StandingWaterColor = R:0 G:50 B:0
  ;StandingWaterColor = R:100 G:150 B:100
  StandingWaterColor = R:50 G:75 B:50
  ;AdditiveBlending = Yes
  RadarWaterColor = R:100 G:196 B:100
End

UserPostedImage 
CommieDog: Because someone has to do your dirty work for you