How to change the class of the unit?

Post Reply
User avatar
Zidell
- Dragon Clan -
- Dragon Clan -
Posts: 268
Joined: Tue Mar 24, 2015 13:53 pm

How to change the class of the unit?

Post by Zidell »

How to change the class of the unit? That the animal was considered infantry
Image
User avatar
Scrat
- Mod -
Posts: 14223
Joined: Sat Jul 14, 2007 14:44 pm
Location: Bamberg / Budapest
Contact:

Re: How to change the class of the unit?

Post by Scrat »

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
User avatar
Zidell
- Dragon Clan -
- Dragon Clan -
Posts: 268
Joined: Tue Mar 24, 2015 13:53 pm

Re: How to change the class of the unit?

Post by Zidell »

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
What should be done to rhino transporter could transport animals?
Image
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: How to change the class of the unit?

Post by MrMorgana »

DryFun wrote:How to change the class of the unit? That the animal was considered infantry
DryFun wrote:What should be done to rhino transporter could transport animals?
both of those requires serious usl scripting
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...)
User avatar
Zidell
- Dragon Clan -
- Dragon Clan -
Posts: 268
Joined: Tue Mar 24, 2015 13:53 pm

Re: How to change the class of the unit?

Post by Zidell »

MrMorgana wrote:
DryFun wrote:How to change the class of the unit? That the animal was considered infantry
DryFun wrote:What should be done to rhino transporter could transport animals?
both of those requires serious usl scripting
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...)
So it will be possible do?
Attachments
1437406678131571686.jpg
Image
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: How to change the class of the unit?

Post by MrMorgana »

DryFun wrote:So it will be possible do?
in theory yes
User avatar
Zidell
- Dragon Clan -
- Dragon Clan -
Posts: 268
Joined: Tue Mar 24, 2015 13:53 pm

Re: How to change the class of the unit?

Post by Zidell »

MrMorgana wrote:
DryFun wrote:So it will be possible do?
in theory yes
Why not try?
Image
User avatar
Zidell
- Dragon Clan -
- Dragon Clan -
Posts: 268
Joined: Tue Mar 24, 2015 13:53 pm

Re: How to change the class of the unit?

Post by Zidell »

But I do not understand how to do it (
Image
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: How to change the class of the unit?

Post by MrMorgana »

DryFun wrote:Why not try?
i won't do it because:
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...)
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: How to change the class of the unit?

Post by MrMorgana »

DryFun wrote:But I do not understand how to do it (
i don't know all the details either, but i can assure you: its complicated
User avatar
Zidell
- Dragon Clan -
- Dragon Clan -
Posts: 268
Joined: Tue Mar 24, 2015 13:53 pm

Re: How to change the class of the unit?

Post by Zidell »

MrMorgana wrote:
DryFun wrote:But I do not understand how to do it (
i don't know all the details either, but i can assure you: its complicated
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'
Attachments
scr_20150729_003218.jpg
Image
User avatar
Scrat
- Mod -
Posts: 14223
Joined: Sat Jul 14, 2007 14:44 pm
Location: Bamberg / Budapest
Contact:

Re: How to change the class of the unit?

Post by Scrat »

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
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: How to change the class of the unit?

Post by MrMorgana »

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'
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)
the endproduct looks funny though, i must admit :)
User avatar
Scrat
- Mod -
Posts: 14223
Joined: Sat Jul 14, 2007 14:44 pm
Location: Bamberg / Budapest
Contact:

Re: How to change the class of the unit?

Post by Scrat »

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
User avatar
AnthonyCole
- Admin -
Posts: 2134
Joined: Sat Apr 18, 2009 13:17 pm

Re: How to change the class of the unit?

Post by AnthonyCole »

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.
User avatar
Zidell
- Dragon Clan -
- Dragon Clan -
Posts: 268
Joined: Tue Mar 24, 2015 13:53 pm

Re: How to change the class of the unit?

Post by Zidell »

When replacing classname,rhino transporter becoming rhino
Image
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: How to change the class of the unit?

Post by MrMorgana »

AnthonyCole 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.
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 with
User avatar
Scrat
- Mod -
Posts: 14223
Joined: Sat Jul 14, 2007 14:44 pm
Location: Bamberg / Budapest
Contact:

Re: How to change the class of the unit?

Post by Scrat »

Pity, it would have looked awesome for sure
User avatar
Zidell
- Dragon Clan -
- Dragon Clan -
Posts: 268
Joined: Tue Mar 24, 2015 13:53 pm

Re: How to change the class of the unit?

Post by Zidell »

Scrat wrote:Pity, it would have looked awesome for sure
Especially when you consider that it is working in multiplayer
Image
Post Reply

Return to “English”