Page 1 of 1

How does weckage work in spring?

Posted: 20 Oct 2007, 04:55
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

....

Posted: 20 Oct 2007, 05:03
by rcdraco
wrong section first off. And this with most things can probably be done with LUA.

Posted: 20 Oct 2007, 05:07
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.

Posted: 20 Oct 2007, 11:33
by Tobi
moved to mods

Posted: 20 Oct 2007, 15:10
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.

Posted: 20 Oct 2007, 15:34
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.

Posted: 20 Oct 2007, 17:51
by gamer17
How could I let infantry fore through features?

Posted: 20 Oct 2007, 18:34
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