373
At least it works (lemmy.world)
submitted 1 day ago by [email protected] to c/[email protected]
top 23 comments
sorted by: hot top new old
[-] [email protected] 9 points 1 day ago

Why not let the dog walk under the barrier 🤔.

[-] [email protected] 6 points 13 hours ago

What if the dog walks through a wall because of that? Thats a risk that cannot be taken

[-] [email protected] 13 points 1 day ago

Special animation just for dog?

silent hill 2 dog ending

[-] [email protected] 25 points 1 day ago

Why would dog extend human?

[-] [email protected] 2 points 3 hours ago

IIRC, the screen recording is from a mod of a game. The original game didn't have dogs, just humans, and the modder decided to make the dog NPC from a human NPC and forgot to override that one animation.

[-] [email protected] 36 points 1 day ago

Hmm, 4 limbs, 2 eyes, 2 ears, mammal...
Close enough???

[-] [email protected] 1 points 1 day ago

See you just said mammal. Why not have them both extend from that? Then they define a property or a method which modifies how they jump over a fence.

[-] [email protected] 19 points 1 day ago

They probably thought that all their NPCs would be human when they started the game, so they named their NPC class Human. Then they decided to add dogs, but needed them to do a lot of the same things the human NPCs did, so they made the Dog class a subclass of Human.

[-] [email protected] 3 points 10 hours ago

Object oriented programming was a mistake

[-] [email protected] 9 points 1 day ago

it's probably so much worse

[-] [email protected] 7 points 1 day ago

What is refactoring?

[-] [email protected] 4 points 1 day ago

ND answer is because the dev made the Human class before abstracting everything into the Entity class, dog should extend a game entity and not inherit the human animation behavior.

[-] [email protected] 3 points 1 day ago* (last edited 1 day ago)

In modern games, I think it's fairly common to have a common 3d skeletons share names. So you can make animations like the one above apply to any character even if they have differences. It doesn't mean that dog extends human, but it may mean that a dog model shares a lot of common "bones", that are used for movement, with a human model.

So when a human animation is applied to the dog, you can see it warp to start position of the animation, move, and then then stop at the end position as a standing human, before warping back to idle animation (when it turns back into the dog shape)

Related, weapons in Destiny also share the same components across weapon types, and bugs have caused one weapon type to be used for another weapon, making funny things happen. Like how a hand canon (pistol) stretches like a bow because it's model got used in place of the bow model at the start of this clip:

https://www.youtube.com/watch?v=0YZa9vv5U0M

[-] [email protected] 1 points 1 day ago

Yeah, seems weird.
Normally one would use multiple horses and some ropes for that. No idea how you would manage that with a single dog

[-] [email protected] 30 points 1 day ago

Project Zomboid!

[-] [email protected] 32 points 1 day ago

Is that Dogmeat or the Thing?

[-] [email protected] 6 points 1 day ago
[-] [email protected] 13 points 1 day ago

Same images:

[-] [email protected] 16 points 1 day ago

Project Thingmeat, maybe?

[-] [email protected] 11 points 1 day ago

Rather Lovecraftian, that.

[-] [email protected] 16 points 1 day ago* (last edited 2 hours ago)

That looks crazy like Project Zomboid

Ahh it must be a mod

[-] [email protected] 2 points 1 day ago
[-] [email protected] 3 points 1 day ago

So does the human.

this post was submitted on 05 Jul 2025
373 points (98.7% liked)

Programmer Humor

24790 readers
1107 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS