CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.58k stars 4.16k forks source link

1-square vehicles don't have a functional wheelbase #3261

Closed NaturesWitness closed 11 years ago

NaturesWitness commented 11 years ago

I've been trying to build a 1-square, drivable vehicle. One problem I've found is even if a 1-square vehicle has a wheel (like a shopping cart), it still isn't considered as having enough wheels to move. I'd love to be able to plunk a 1-cylinder motor in a shopping cart, hop in and drive it around (actually, I think I have a matchbox car of exactly that). Is there a way to make this possible?

Rivet-the-Zombie commented 11 years ago

This would totally pave the way for Segways and other tiny, ridiculous vehicles.

NaturesWitness commented 11 years ago

From what I can tell, there are only two hurdles to making a one-square vehicle. This is one, and the other is the game doesn't allow a wheel and an engine on the same square, because both have the VARIABLE SIZE flag. I already made a PR to add the size flag to the can_stack list in vehicle.cpp, so if someone can fix this we should be all set.

NaturesWitness commented 11 years ago

Is anyone trying to fix this? It's beyond me :(

ianestrachan commented 11 years ago

It'll probably be done as part of #3301, whenever that one happens.