Report article 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 Nition on Jul 8th, 2014

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 Jul 8 2014, 9:08am says:

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.

+1 vote     reply to comment
Nition Author
Nition Jul 8 2014, 5:05pm replied:

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.

+1 vote   reply to comment
Nuttah
Nuttah Jul 9 2014, 7:03pm replied:

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

+1 vote     reply to comment
Nition Author
Nition Jul 9 2014, 7:25pm replied:

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

+1 vote   reply to comment
Admiral_Skeybar
Admiral_Skeybar Jul 8 2014, 11:58am says:

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

+1 vote     reply to comment
Nition Author
Nition Jul 8 2014, 5:06pm replied:

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

+1 vote   reply to comment
ishide
ishide Jul 8 2014, 3:27pm says:

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 ?

+1 vote     reply to comment
fascka
fascka Jul 9 2014, 8:58am says:

really liking the model of the storage box

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

News
Browse
News
Report Abuse
Report article
Related Games
Scraps
Scraps Multiplayer Car Combat
Related Engines
Unity
Unity Commercial Released May 30, 2005
Related Groups
Moment Studio
Moment Studio Developer & Publisher with 2 members