How does weckage work in spring?

How does weckage work in spring?

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
gamer17
Posts: 235
Joined: 21 Feb 2007, 23:51

How does weckage work in spring?

Post by gamer17 »

I want to have units get destroyed, then have infantry be able to enter it like transports and be able to shoot from it.

So really I want to use wreckage as a bunker.

Could I give wreckage the tranport tag, so units can enter it and fire from it
User avatar
rcdraco
Posts: 781
Joined: 22 Nov 2006, 02:50

....

Post by rcdraco »

wrong section first off. And this with most things can probably be done with LUA.
User avatar
Zpock
Posts: 1218
Joined: 16 Sep 2004, 23:20

Post by Zpock »

Yeah, I know the gods kill a bunch of critters like puppies and/or kittens for every time this is mentioned, but you can do this with and only with LUA.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

moved to mods
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Post by SinbadEV »

Would need to have LUA replace the wreckage with a transport capable unit so that couldn't move basically... Features (which is what a wreckage is) inherently have no capabilities, they are just metal or energy available to be claimed. The if you want either team to be able to use this wreckage_bunker you would need some kind of code to switch the bunker's ownership to the target player's team. Or to be really cool you could make custom actions for your infantry to request to be loaded or unloaded by the wreckage_bunker and leave said bunker owned by GAIA or something.

First step would be to make a working bunker in the first place as a transport with "is fire platform" is only "sort of" a functional bunker.
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Post by Saktoth »

For a less complex solution, let infantry fire through features but not tanks or whatever.

That way infantry can 'fire from cover' and sit behind wrecks shooting, while other stuff cant.
User avatar
gamer17
Posts: 235
Joined: 21 Feb 2007, 23:51

Post by gamer17 »

How could I let infantry fore through features?
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

By using the forum's search function. Was mentioned in the KP thread so I took a quick look at KP's weapon files.

collidefriendly, avoidfriendly, collidefeature, avoidfeature
Post Reply

Return to “Game Development”