Two transport related tags

Two transport related tags

Requests for features in the spring code.

Moderator: Moderators

Post Reply
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Two transport related tags

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I believe 1) has already been implemented.

2) can be done very easily using a lua gadget.
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post 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?
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

1) Cantbetransported=1 works. I don't know how it works despite not being in UnitDefHandler, but it does.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post 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.
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Post 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.

;)
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post by Guessmyname »

*hands Zsinj ceramic glue*
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

Add them to the 'vroom vroom' list in the S44 forum. Time for me to get back to coding.
Post Reply

Return to “Feature Requests”