Mmm sounds a lot like Metal Fatigue......I would use a commander that can build an arm, then as soon as the nanoframe of the new arm is spawn, the commander auto-grab it and place it inside its shoulder socket while hiding its former arm, that way you see the commander nanolathing itself an arm.
upgrading commander
Moderator: Moderators
No he doesn't. He's got a list of upgrades and randomly chooses one from it each time you gain a level (~0.5 XP). The visual weapon exchange is done by a couple of hides/shows.
and here's where we start getting into Zwszswzswg's desire for "sub-units" - that is, units that are part of the larger unit in terms of health and movement, but receive orders seperately and function as a turret - this was, by consensus, believed to be the best way to implement mobile factories and units with very complex weapon loadouts (like a primary attack weapon and a secondary artillery weapon).KDR_11k wrote:You can disable one weapon and add another but you can't e.g. give the commander a nuke backpack like the one seen in SupCom because you couldn't access the stockpile command for the loaded unit and can't have a unit have both stockpileable and normal weapons IIRC.
Really, the "stockpile makes other weapons impossible" thing is something of a bug. There's no UI reason why a stockpile weapon shouldn't work like any other - the problem is in legacy code from TA. Whether a weapon is a d-gun, a primary weapon, an "on command-attack only" weapon, it shoudln't matter if it's drawing from a stockpile or not. There's no reason why a unit couldn't have multiple stockpiled weapons - one bound to d-gun, one normal weapon (that the player can disable with on/off) and then a normal, non-stockpiled weapon. Likewise, no UI reason a unit couldn't have a stockpiled (or non-stockpiled) anti-nuke in addition to their usual inventory. These limitations are just legacy code - they could be considered bugs.
Alternately, you could add non-weapon stockpiles (modifiable and readable from COB script) and use those to handle certain kinds of upgrades, instead of your current suggested approach with the transport load/unload.
Of course, you'd still need to script a way to say "they can only build their stockpile weapon once they've received the upgrade"... like a "set stockpile maximum" COB command or something.
- 1v0ry_k1ng
- Posts: 4656
- Joined: 10 Mar 2006, 10:24
It dosnt sound so feasable then... I was just thinking how cool it would be to have coms being able to build on new gadgets like a torpedo launching head for underwater action or a zeus lightning for arm and pyro flame for core, the ability to hover over water, a long range merl tyle missle, a small shield that deflects LRPC, an EMP ability, the ability to get a second nano beam on the other arm to double build power. obviously it would probably only be possible to have like one upgrade on a com, or a choice between hovering or a torp launcher, but it'd be damn cool. I guess it'd even be cool to have it done by exp like war ev does. punishing combombers and rewarding people who use thir com with more gadgets.
Heres an upgrade
I understood you wanted upgrades for your commander?
- Optimus Prime
- Posts: 755
- Joined: 03 Oct 2005, 14:31
i think you can make pseudo buildable upgrades but it wouldnt be as good as in sup com.
You could use the on/off ability for a script that lets the unit need metal and energy while an intern counter is activated and after a while a new weapon will be activated.
Than the unit shuts off and if you click "on" again another upgrade starts.
If you klick off while building the upgrade the counter will be reset.
The difference to sup comm would be that you cant choose which upgrade you are building it would always be the same.
But the code for that shouldnt be too hard (but long) (depending on the upgrades you want).
edit: this was one reason why i asked for variable labeled buttons so you could make an "upgrade" button or "upgrade nuke" and "upgrade armour" buttons...
You could use the on/off ability for a script that lets the unit need metal and energy while an intern counter is activated and after a while a new weapon will be activated.
Than the unit shuts off and if you click "on" again another upgrade starts.
If you klick off while building the upgrade the counter will be reset.
The difference to sup comm would be that you cant choose which upgrade you are building it would always be the same.
But the code for that shouldnt be too hard (but long) (depending on the upgrades you want).
edit: this was one reason why i asked for variable labeled buttons so you could make an "upgrade" button or "upgrade nuke" and "upgrade armour" buttons...
- 1v0ry_k1ng
- Posts: 4656
- Joined: 10 Mar 2006, 10:24
The problem is that we can't add arbitrary functions to build pics, when you click on a build item you build something, if the unit is a factory the thing is built inside, otherwise you then have to pick a place to build whatever you wanted to build in and then your unit drives there and starts building. This behaviour is hard coded and cannot be changed without changing the engine. The engine knows no such thing as an upgrade, all you can do is build a unit in a specific spot. Some script magic can make that unit you build cause another unit to get more abilities and possibly even pick the new unit up to hide it but you cannot make a build button produce anything but a unit.
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
I'd really like to see this get done - I think commander upgrades are really essential to a commander-centric game design. Most mods using it, including my own, have the difficulty facing them of giving players a unit that is not overpowered at the start of the game, useful in the middle of the game, and not a liability at the end of the game, because these three stages of the game offer very different gameplay, and yet the same unit has all your hopes pinned on it (in comm:ends) at every stage of the game. Commander upgrades are really a way to dynamically alter the commander to reflect the state of the game.
- 1v0ry_k1ng
- Posts: 4656
- Joined: 10 Mar 2006, 10:24
it could be like generals; you get your core com, then core "wheelz" general who has wheels and only uses vehicles but with bonus's, and your "flames" general who has a com with a pyro weapon and loads of units with short ranged fire based attacks...
if someone can make this work to a good degree it will almost certainly end up in the mainstream mods imo
if someone can make this work to a good degree it will almost certainly end up in the mainstream mods imo
Re: Upgrade
Then don't use them in your mod because quite a few people want them in theirs. And not just commander upgrades, upgrades for EVERYTHING.Daan wrote:Dont get commander upgrades. He just has command