Post news Report content RSS feed Picking up wreckage, plus some new cosmetic blocks

New wreckage pickup system with containers to hold it, and new cosmetic extender blocks.

Posted by on

Wreckage

testing_wreckage_spawning
Testing wreckage spawning with placeholder wreckage models.


A scrap is a fight, but scrap is also junk that can be reused. When a vehicle part is destroyed in a Scraps game, it'll drop some wreckage. Nothing like the amount you see above, but enough that maybe you can scavenge some and get back to an evac pad, where you can spend it on improving your vehicle.

To pick up scrap, you'll need something to put it in. So far, I've made this tall container:

container_tall
Pretty much like something you'd buy at Storage Box.

The white fill bars and plastic viewing window help you - and your enemies - see how much scrap you're carrying. The lid also bounces around as you drive:

gif2

Scrap that you pick up is divided evenly between all your containers. Scrap does have some weight, so putting all your containers on one side may not be a good idea.

I'm going to anticipate someone suggesting an even cooler way of handling scrap collection by both proposing and debunking it as an option now: Wouldn't it be cool if the scrap you collected actually went into your containers? Like, the actual scrap piece sat in a container with its own physics, instead of this abstract representation on how full your containers are?

Yes it would. It would be the coolest. You could try to carry too much while driving carefully like a combat version of Tricky Truck. You could ram people who were carrying too much to topple some of their scrap and steal it.

There are two reason why that wouldn't work unfortunately, one much bigger than the other:

  • Minor reason: Getting physics-based scrap into containers. Dropping scrap correctly into containers on moving vehicles would be hard, but working out where there's space to spawn scrap inside a container would be a lot worse. There'd probably be some cases where you picked up some scrap but it didn't make it into the container properly even when it clearly should have.
  • Major reason: Network bandwidth. When scrap is spawned as a part is destroyed, it does its own special deterministic physics, ignores anything moving, and the server tells it exactly where to go (it's partly random, but the server sends a seed to use, like how putting a seed into Minecraft always gets you the same "random" map).

Using actual physics-based scrap pieces flying all over the place, with Unity's physics being non-deterministic as well, would just be impossible. If scrap was just cosmetic, it'd be fine because it wouldn't matter if the server's scrap pieces didn't match the clients, but it can be picked up by anyone. So the positional data of every active piece of scrap on the map would have to be synchronised over the network all the time.

So that's why I'm using a more abstract representation here. You can still destroy their container to get the scrap that's in it!

Blocks

extenders
New: Half-height blocks and slope blocks.

I also made a few more cosmetic blocks this week. I will put these into the demo, but not right now: It's not in a good place to update right now because my demo branch is getting too out-of-date to merge changes into, but in the main game the vehicle building and testing process is a little broken and not tested properly since I've made lots of changes. When things are more stable I'll be able to put this stuff into the demo.

aerodynamic
This isn't Minecraft - We have slopes! This would be even better if the game calculated aerodynamics, which is a future possibility.

I have one issue with half blocks that I'm not sure of the ideal way to solve. It's easiest to show via image:

position_issues

Any clever suggestions are welcome. For now, I've omitted snap points from the sides of half-blocks, which limits some arrangements but at least everything sits nicely.

Post comment Comments
Nuttah
Nuttah

Would it be possible to make the fill bar on the boxes the same colour as the scrap, or does that make it hard to see? Looks a bit funny like that.
And, looking at the slopes: Any chances of giving shots a chance to ricochet at more extreme angles?
Snap points: Could doing it like LEGO and just showering the things in snap points at work? I'm thinking standard 2x4 for the long ones right now. Or four points down the middle, if having two makes stuff wonky.

Reply Good karma Bad karma+1 vote
Nition Author
Nition

Untextured fill bars are simpler because then the bar can be easily scaled to whatever size without stretching the textures. That's the main reason.

Reply Good karma+1 vote
Nuttah
Nuttah

Aaaah! I take it you can't hide it underneath an opaque 'shadow' and inversely scaling that thing?

Reply Good karma Bad karma+1 vote
Nition Author
Nition

Oh yeah, that could work. Although the "shadow" would have to be on top of the scrap view.

Reply Good karma+1 vote
Admiral_Skeybar
Admiral_Skeybar

If you can make different kinds of snap points then here is kind of an idea: I.imgur.com

Reply Good karma Bad karma+1 vote
Nition Author
Nition

Good idea. I like this because although it adds some complexity for the user, it does it in a fairly intuitive way.

Reply Good karma+1 vote
ishide
ishide

Admiral_Skeybar Exactly!
If you can do some... switch (like in KSP ?), to snap things to the center or to the corners/edges, so users can with some [key] change the order of snapping ?

Reply Good karma Bad karma+1 vote
fascka
fascka

really liking the model of the storage box

Reply Good karma Bad karma+1 vote
Post a comment

You are not logged in, your comment will be anonymous unless you join the community. Or sign in with your social account:

News
Browse
News
New
Post news
Share
Related Games
Related Engines
Unity
Unity Commercial
Related Groups
Moment Studio
Moment Studio Developer & Publisher