MT-CTF / capturetheflag

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

Add TNT for CTF #1284

Open farooqkz opened 2 months ago

farooqkz commented 2 months ago

This PR aims to add TNTs to CTF, one of popular suggestions made by players.

farooqkz commented 2 months ago

This PR is ready to review. Though I cannot tell how to fix the remaining luacheck lints. There is one issue though:

When TNT explodes and removes blocks, it gives score to the owner according to the number of removed blocks. Like 70 removed blocks give 70 score. And since a TNT can only be placed near enemy base, this is the score for enemy base sabotage and/or destruction. However, 70 score seems too much to give away. Perhaps I divide the removed blocks number by something like... 5?

AnonomousAccount commented 2 months ago

Does it damage players? IMO it should be used to remove blocks, not kill people. That's what nades are for

AnonomousAccount commented 2 months ago

Also, IDK about awarding score... Seems bad to offer an incentive for destruction

LoneWolfHT commented 1 month ago

I'd rather not award score, and I'd like to keep the rules for placement as simple and non-restrictive as possible.

It would probably be best to restrict this change to nade fight at first

farooqkz commented 1 month ago

I'd rather not award score, and I'd like to keep the rules for placement as simple and non-restrictive as possible.

It would probably be best to restrict this change to nade fight at first

I'm in favor of awarding score as TNT can be placed only near an enemy base. And it is most likely enemy base destruction which is score-worthy and contributes to the goal of game which is CTF.

Edit:

But if you think 1 score per destroyed block is too much, we can reduce it to like 1/5 per block or even 1/10

farooqkz commented 1 month ago

BTW, what do you think about adding a new stat: "Enemy base destruction". Could be number of blocks removed from the enemy base.

AnonomousAccount commented 1 month ago

What count's as an "enemy base" tho, unfourtunatly, i can see how this could be exploited

farooqkz commented 1 month ago

What count's as an "enemy base" tho, unfourtunatly, i can see how this could be exploited

Hello. It cannot be exploited since TNTs can be placed only close to enemy base.