Page 2 of 2
Re: Spring 100 flying with fuel
Posted: 24 Jul 2015, 11:10
by yuritch
hokomoko wrote:RFC
IMO the land/take off callins should be sent to both air unit and the 'airpad' unit it lands on.
Re: Spring 100 flying with fuel
Posted: 24 Jul 2015, 16:42
by hokomoko
yuritch wrote:IMO the land/take off callins should be sent to both air unit and the 'airpad' unit it lands on.
Yes they should probably be
UnitEnteredPad(unitID, padID, pieceNum)
UnitLeftPad(unitID, padID, pieceNum)
And from there you'd be able to call script functions or whatever you want.
Re: Spring 100 flying with fuel
Posted: 24 Jul 2015, 16:59
by abma
hokomoko wrote:UnitEnteredPad(unitID, padID, pieceNum)
UnitLeftPad(unitID, padID, pieceNum)
isn't that the same as for transports?
-> make it more generic: UnitAttached / UnitDetached ?!
Re: Spring 100 flying with fuel
Posted: 24 Jul 2015, 18:02
by hokomoko
What they mean is very different though, I think.
(Entirely different code should run for repaired units and loaded units)
Re: Spring 100 flying with fuel
Posted: 24 Jul 2015, 18:24
by abma
hokomoko wrote:What they mean is very different though, I think.
(Entirely different code should run for repaired units and loaded units)
thats not what i mean, a transported unit attachs to an other unit like a unit that lands on a repair pad, they both attach to a piece of a different unit.
imo repairing/refuel should go to lua, a transport could do the same only difference to a repair pad is, that a transport is a moveable unit.
Re: Spring 100 flying with fuel
Posted: 28 Jul 2015, 13:58
by PepeAmpere
Once we talk about the changes, airpad is not only static concept, there are carriers and airpad spiders moving around.
From game dev perspective the only features i need in engine is:
- reliable option of general attaching unit to other unit piece
- landing assistance on given spot (because flight itself is driven by the engine) - that spot can move - so its about having command which can take as parameter position or position on a unit => so in the end it can be just the second case, position on a unit as general use case.
- disable current hardcoded behavior of planes without fuel (which also causes the the crash i think)
Things i can handle in lua:
- implement fuel gain + repair
- keep automatic control of plane without fuel (once engine default behavior is disabled)
Re: Spring 100 flying with fuel
Posted: 18 Aug 2015, 14:17
by hokomoko
abma wrote:hokomoko wrote:What they mean is very different though, I think.
(Entirely different code should run for repaired units and loaded units)
thats not what i mean, a transported unit attachs to an other unit like a unit that lands on a repair pad, they both attach to a piece of a different unit.
imo repairing/refuel should go to lua, a transport could do the same only difference to a repair pad is, that a transport is a moveable unit.
You were more correct than I thought, it appears I need to refactor transporting as well.