How to change the class of the unit?
How to change the class of the unit?
How to change the class of the unit? That the animal was considered infantry
Re: How to change the class of the unit?
at the unit's techtree entry, there's a line that says class = 'ANML' and if you change ANML to CHTR it counts as infantry. it won't display as infantry in its description though, for that you also need to alter the line ANML at its description entry to CHTR
2nd Place Johnnyzocker's Tournament 2008.
2nd Place Saturday Battle Tournament 2010.
3rd Place X-Mas Tournament 2010.
2nd Place Saturday Battle Tournament 2010.
3rd Place X-Mas Tournament 2010.
Re: How to change the class of the unit?
What should be done to rhino transporter could transport animals?Scrat wrote:at the unit's techtree entry, there's a line that says class = 'ANML' and if you change ANML to CHTR it counts as infantry. it won't display as infantry in its description though, for that you also need to alter the line ANML at its description entry to CHTR
Re: How to change the class of the unit?
DryFun wrote:How to change the class of the unit? That the animal was considered infantry
both of those requires serious usl scriptingDryFun wrote:What should be done to rhino transporter could transport animals?
to begin with even if you 'convert' any animal into an infantry unit the unit would have serious bugs (e.g. because of common links and animations infantry units use)
for the rhino transporter to transport animal units too would need both client and server sided scripting (hell lot of it...)
Re: How to change the class of the unit?
So it will be possible do?MrMorgana wrote:DryFun wrote:How to change the class of the unit? That the animal was considered infantryboth of those requires serious usl scriptingDryFun wrote:What should be done to rhino transporter could transport animals?
to begin with even if you 'convert' any animal into an infantry unit the unit would have serious bugs (e.g. because of common links and animations infantry units use)
for the rhino transporter to transport animal units too would need both client and server sided scripting (hell lot of it...)
Re: How to change the class of the unit?
in theory yesDryFun wrote:So it will be possible do?
Re: How to change the class of the unit?
Why not try?MrMorgana wrote:in theory yesDryFun wrote:So it will be possible do?
Re: How to change the class of the unit?
i won't do it because:DryFun wrote:Why not try?
1) ton of work
2) lots of possible bugs (errors)
3) i don't like the idea to be honest (whats the point in having animals in open transporters? imagine having a wild boar or mammth on a rhino basket...)
Re: How to change the class of the unit?
i don't know all the details either, but i can assure you: its complicatedDryFun wrote:But I do not understand how to do it (
Re: How to change the class of the unit?
I almost did what I wanted.It was not as hard as you said,It was only necessary to replace classname = 'CWoolly_Rhino' to classname = 'CHu'MrMorgana wrote:i don't know all the details either, but i can assure you: its complicatedDryFun wrote:But I do not understand how to do it (
Re: How to change the class of the unit?
hmm.. basically if you mount a rhino transporter onto another one, and that one into another one, it will look like a staircase of rhinos
2nd Place Johnnyzocker's Tournament 2008.
2nd Place Saturday Battle Tournament 2010.
3rd Place X-Mas Tournament 2010.
2nd Place Saturday Battle Tournament 2010.
3rd Place X-Mas Tournament 2010.
Re: How to change the class of the unit?
this is a bad workaround if i may add. with replacing simply its classname to CHu (norsemen infantry base class) is taking away everything from it that made the battle rhino special (the defense bonus aura, the shake ability, etc)DryFun wrote:I almost did what I wanted.It was not as hard as you said,It was only necessary to replace classname = 'CWoolly_Rhino' to classname = 'CHu'
the endproduct looks funny though, i must admit
Re: How to change the class of the unit?
please make this with the rhino transporters, then transport a rhino transporter with another rhino transporter, then mount the transporting transporter onto another transporter and so on, and make a screenshot, I really wanna see that
2nd Place Johnnyzocker's Tournament 2008.
2nd Place Saturday Battle Tournament 2010.
3rd Place X-Mas Tournament 2010.
2nd Place Saturday Battle Tournament 2010.
3rd Place X-Mas Tournament 2010.
- AnthonyCole
- - Admin -
- Posts: 2134
- Joined: Sat Apr 18, 2009 13:17 pm
Re: How to change the class of the unit?
Will that work? Doesn't work with transport ships. Apart from that, I belive the transporter is a special class. Making it a CHu will likely break the transporter-behaviour. Could be wrong though.
I've never seen code like this.
CEP Moddb | CEP download
ParaWelt TicTacToe | Multiplayer TicTacToe/Connect four/etc
CEP Moddb | CEP download
ParaWelt TicTacToe | Multiplayer TicTacToe/Connect four/etc
Re: How to change the class of the unit?
you are correct, with CHu all the transporter things are lost, like base rider. which also means it won't have any basket on its back to begin withAnthonyCole wrote:Will that work? Doesn't work with transport ships. Apart from that, I belive the transporter is a special class. Making it a CHu will likely break the transporter-behaviour. Could be wrong though.
Re: How to change the class of the unit?
Pity, it would have looked awesome for sure
2nd Place Johnnyzocker's Tournament 2008.
2nd Place Saturday Battle Tournament 2010.
3rd Place X-Mas Tournament 2010.
2nd Place Saturday Battle Tournament 2010.
3rd Place X-Mas Tournament 2010.
Re: How to change the class of the unit?
Especially when you consider that it is working in multiplayerScrat wrote:Pity, it would have looked awesome for sure