MT-CTF / capturetheflag

Capture the Flag game using the Minetest Voxel Engine
https://ctf.rubenwardy.com
81 stars 87 forks source link

Make Reinforced Cobblestone harder to break for enemy team #1250

Closed a-blob closed 7 months ago

a-blob commented 8 months ago

Make it so that Reinforced Cobblestone is easier to break for the team that placed it but harder to break for other teams.

LoneWolfHT commented 8 months ago

This works? Feels a little hacky. It might be better to make all reinforced cobble the hardened version, but have enemies dig it twice by replacing it with a second version of itself one dug by an enemy that has a cracked texture applied. Node dig predictions should be considered with that approach

a-blob commented 8 months ago

A bit hacky, but works very well. I'd rather stick to this approach unless there's some unforeseen problem that might cause issues. Currently it is not complete though.

LoneWolfHT commented 8 months ago

How does this work with internet lag? You might be able to simulate it with minetest.after()

a-blob commented 8 months ago

The typical internet lag doesn't seem to affect it much. Bad internet lag (1+ seconds) makes it seem like it is dug "twice by replacing it with a second version of itself once dug by an enemy".

LoneWolfHT commented 7 months ago

I suspect something is going to turn up requiring a change, but I'll go with it as-is for now