Page 1 of 1

Two transport related tags

Posted: 14 Sep 2007, 10:25
by Gnomre
Nothing too difficult, I hope.

1) cantbetransported FBI tag. Or rename it if you want, I know some of the devs don't like negative names. OTA krogoths and sumos and I think a couple others had this tag so they couldn't be transported at any time, except by zwzsg trickery.

2) Mintransportmass and Mintransportsize (which is footprint based):
Image
'Nuff said.

Posted: 14 Sep 2007, 10:29
by AF
I believe 1) has already been implemented.

2) can be done very easily using a lua gadget.

Posted: 14 Sep 2007, 10:35
by Gnomre
1) https://spring.clan-sy.com/wsvn/filedet ... rev=0&sc=0

Searched "tran" and got nothing relating to it. Nothing in the changelog either. Closest is the enemy transport one, which is not quite the aim.

2) I'm going to fly to the UK and strangle you if you suggest lua again. Unless the transport code is exponentially more retarded than it visibly is right now, both these requests should only require a couple more conditions in an if statement in this file near this line of code:

Code: Select all

if((*ui)->mass>=100000 || (*ui)->immobile)
https://spring.clan-sy.com/wsvn/filedet ... rev=0&sc=0

So there you go. Would someone be so kind?

Posted: 14 Sep 2007, 10:43
by tombom
1) Cantbetransported=1 works. I don't know how it works despite not being in UnitDefHandler, but it does.

Posted: 14 Sep 2007, 11:41
by KDR_11k
Use Lua, engine patches take forever to reach the end user, a gadget will work NOW. This is really not complicated, just have AllowCommand return false if the unit is the transport, the command is load and the target is a unit you don't want loaded.

Posted: 14 Sep 2007, 13:04
by AF
lua also allows greater control over the feature than an engine patch. It can be as specific to your mod as you want. And fi a problem arises you can fix iy in minutes and have immediate results rather than wait a few months for a spring release.

Posted: 15 Sep 2007, 08:26
by Warlord Zsinj
You'll have to excuse me, I'm sweeping up pieces of Gnome off the floor. He spontaneously combusted in lua-related fury.

;)

Posted: 15 Sep 2007, 10:37
by Guessmyname
*hands Zsinj ceramic glue*

Posted: 15 Sep 2007, 14:12
by FLOZi
Add them to the 'vroom vroom' list in the S44 forum. Time for me to get back to coding.