Modding question : Transportable units

Modding question : Transportable units

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Yatta
Posts: 55
Joined: 13 Aug 2006, 17:18

Modding question : Transportable units

Post by Yatta »

I couldnt find in the wiki or forum how to set an unit to be transportable, and if it is possible to set transporters to be able to load only specific unit / unit classes.

Anyone can help me with that ?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

It is controlled by unit footprint etc. We cannot do it based on class.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

smoth wrote:It is controlled by unit footprint etc. We cannot do it based on class.
You can do it via unit height, though. And team.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

unless your units have similar height... which is the case in Gundam and EE.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

units of the same height would be of the same 'class'. ;) this method is used for S44's multi-purpose trucks.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

goufh, goufb and gouf are not all the same class. but they use the same base mech. that is one example. I am sure there are others. you also have to go through all of the caliper stuff.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

smoth wrote:goufh, goufb and gouf are not all the same class. but they use the same base mech. that is one example. I am sure there are others. you also have to go through all of the caliper stuff.
Not if using s3os.
User avatar
Yatta
Posts: 55
Joined: 13 Aug 2006, 17:18

Post by Yatta »

well sorry it is not very clear to me o_o
So if I want to make a factory transportable, I have to change its footprint and height ?
I think I see how to change footprint, but how do you control height ? Is that 'real' model height ? o_o
User avatar
Shadowsage
Posts: 73
Joined: 01 Dec 2005, 05:50

Post by Shadowsage »

Please, allow my limited knowlege to be of use.

All units have a foot print, which is a #by a #. Now, transports basically have a limit to the footprint they can handle.

The bigger the transport, usually it can hold bigger things.

Now, if i remember, there may be a way to set the transport to accept up to a certain footprint.


thanks for your time.
j5mello
Posts: 1189
Joined: 26 Aug 2005, 05:40

Post by j5mello »

Yatta if you looking to setup ur transports in the manner of Transport x can hold:

0 of super unit z
1 of heavy unit a
3 of meduim unit b
6 of light unit c

ur best bet is to use the mass tags, mass = n and transportedmass = n along with the cantbetransported tag = 0/1.

This is done like so:
-untransportable units get the cantbetransported tag = 1

-Figure out the maximum amount of light units you want moved
--multiply the number of units by the mass u want for them (a muliple of 10 thats a little over the metal cost should do it) = max mass (n)
--set n as the number in the TransportMass tag for your transports

-divide n by the number of medium units u want moved and set that as their mass
--repeat for any units u want to have a limited amout of

Code: Select all

Example units:
Transport
lightatk (mass = 200)
medsup
heavyatk

Tranport must carry 6 lightatk, 3 medsup, 1 heavyatk.

transportmass = 6*200 (1200)
medup: mass = 1200/3 (400)
heavyatk: mass = 1200
NOTE: this isn't actually code it just help keep teh example seperate
User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Post by yuritch »

Yatta wrote:...So if I want to make a factory transportable, I have to change its footprint and height ?...
You cannot make a building transportable by using footprint size, mass and any other FBI tags. Building can only be transported using special scripting tricks (I seem to remember there being some examples released, look for "My factories have grown legs" topic, it was quite a time ago).
Post Reply

Return to “Game Development”