10.05.2008, 01:04:29
I would like to ask if I could add a tutorial to ModEnc for making a self mutating infantry, and also how I would do it. The code for it was given me by someone named rc22fires on the CnC Den Forums.
Quote:self mutating infantryI feel there's more behind this tutorial than in the article you linked Marshall. Just add it Tesla, so we can discuss it.
Quote:I'd suggest adding the relevant details to the existing MakeInfantry tutorial.Good idea.
Marshall Wrote:By all means go ahead, I just can't imagine that it's anything more than 'infantry deploys to fire 0.1 cellspread weapon that kills itself in order to mutate' - doesn't really need a whole tutorial to say that. I'd suggest adding the relevant details to the existing MakeInfantry tutorial.Actually, the code involves the infantry deploying and the deploy weapon creates an invisible gas particle which instantly kills the infantry, and the killing warhead has InfDeath=9. Since the particle was created by the weapon the infantry unit fired, it is "owned" by the side which owned the infantry, and so the new brute is also owned by that side. I tried a suicide weapon at first (before I was given the gas particle code) with InfDeath=9, but that just caused the infantry to die normally.
Quote:# (diff) (hist) . . ! Making a Self-Mutating Infantry; 19:16 . . Professor Tesla (Talk | contribs)
# (diff) (hist) . . ! Making a Self-Mutating Infantry; 19:14 . . Professor Tesla (Talk | contribs) (→The Self-Mutation Weapon:: )
# (diff) (hist) . . ! Making a Self-Mutating Infantry; 19:12 . . Professor Tesla (Talk | contribs) (→The Infantry code:: )
# (diff) (hist) . . ! Making a Self-Mutating Infantry; 19:11 . . Professor Tesla (Talk | contribs) (→The Infantry code:: )
# (diff) (hist) . . ! Making a Self-Mutating Infantry; 19:11 . . Professor Tesla (Talk | contribs) (→The Infantry code:: )
Marshall Wrote:0.1 cellspread should work without having to go to the trouble of using a particle. Would have to set AffectsAllies=yes too.I tried that, and it didn't work.
Professor_Tesla Wrote:It took me a while to figure out how to put the code in grey boxes.