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

Allow shopping carts to be driveable. #3384

Closed kevingranade closed 11 years ago

kevingranade commented 11 years ago

The vehicle::valid_wheel_config() method unconditionally rejects vehicles that have less than two wheels, which leaves shopping carts undriveable. Perhaps add an exception to allow single-tile vehicles to be driveable if the wheel is of type "casters" (or has an appropriate flag)?

Rivet-the-Zombie commented 11 years ago

Shopping cart races? Post-apocalyptic Jackass?

Seriously though, I like the sound of this a lot.

ianestrachan commented 11 years ago

If wheels = # of sqaures, return true.

Allows not just for stuff on casters, but the wheelie bike proposed in another issue, unicycles, segways, and so forth.

NaturesWitness commented 11 years ago

This is related to #3261. Also, if we ever get NPCs fixed, post-apocalyptic "Jackass" NEEDS to be a faction. Based out of old TV stations, driving motorized shopping carts, still broadcasting their show to anyone who's still alive to watch. We also need roaming NPC group of King Arthur and his knights in power armor wandering around.

kevingranade commented 11 years ago

I'm not really a fan of having single-wheel vehicles "just work", how about a "stable" flag for casters and other extra-stable wheel types (gyrostabalised or active-balance wheels) that allows it?

NaturesWitness commented 11 years ago

Hmm the caster and "stable" flag sounds promising, but active-balance wheels sound like we're cramming too much tech into one part that is difficult to replace if you accidentally drive over a nail board. Actually now that I think of it, how would you STEER a one-wheel vehicle? Here's an idea; have casters have the "stable" flag which allows one square vehicles, but is slow and hard to steer. For higher-performance vehicles, you need a special wheel with a "gyrowheel" flag (craftable with two regular wheels with mechanics skill or findable on vehicles like a Segway or [Uno](http://en.wikipedia.org/wiki/Uno%28dicycle%29) as WELL as a "gyro control processor", again either findable on appropriate vehicles or crafted from various electronic parts with electronics skill. This way, if you get a flat, you're only replacing the wheels and not the electronic components as well. Or an unlucky hit by a zed, "Critical Hit - Gyro" (cookie to whoever remembers that one) could render your vehicle undrivable until repairs are made.

ianestrachan commented 11 years ago

Can be closed.

(Guess I got the "Closes" notation in my PR description wrong. Now I know not to do that again.)