IMO the land/take off callins should be sent to both air unit and the 'airpad' unit it lands on.hokomoko wrote:RFC
Spring 100 flying with fuel
Moderator: Moderators
Re: Spring 100 flying with fuel
Re: Spring 100 flying with fuel
Yes they should probably beyuritch wrote:IMO the land/take off callins should be sent to both air unit and the 'airpad' unit it lands on.
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
isn't that the same as for transports?hokomoko wrote:UnitEnteredPad(unitID, padID, pieceNum)
UnitLeftPad(unitID, padID, pieceNum)
-> make it more generic: UnitAttached / UnitDetached ?!
Re: Spring 100 flying with fuel
What they mean is very different though, I think.
(Entirely different code should run for repaired units and loaded units)
(Entirely different code should run for repaired units and loaded units)
Re: Spring 100 flying with fuel
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.hokomoko wrote:What they mean is very different though, I think.
(Entirely different code should run for repaired units and loaded units)
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.
- PepeAmpere
- Posts: 591
- Joined: 03 Jun 2010, 01:28
Re: Spring 100 flying with fuel
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:
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)
- implement fuel gain + repair
- keep automatic control of plane without fuel (once engine default behavior is disabled)
Re: Spring 100 flying with fuel
You were more correct than I thought, it appears I need to refactor transporting as well.abma wrote: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.hokomoko wrote:What they mean is very different though, I think.
(Entirely different code should run for repaired units and loaded units)
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.