Assisting upgrades/stockpile possible?

Assisting upgrades/stockpile possible?

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
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Assisting upgrades/stockpile possible?

Post by REVENGE »

I saw that in SupCom, you can assist units that are being upgraded, or even help assist launchers in stockpiling ammo. Is this possible at all [lua] right now in Spring, or would we need engine changes?
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

This should be enough:

Code: Select all

4766 created by trepan on 11 November 2007, 06:43:01 +0100
* Added the ability to set the stockpile percent
 (could only set the stockpile count before this change) 
http://spring.clan-sy.com/fisheye/chang ... g/?cs=4766
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Post by jK »

yeah, it is technical possible, but it is more than complicated. Reason are:
*you have to draw and handle the nanoframe by your own
*you have to control the start/stop assist animations by your own
*you have to manage the buildpower by your own
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

The only hard bit would be the nanospray, you'd need a CEG instead. Calling COB functions is trivially easy. It might be hard to keep the units within radius as well, I'm not sure there's a "close in to x distance" command so you'd have to manually find a point near the target.
Post Reply

Return to “Game Development”