Remove: takedown feature

I don't know if players would like it.
master
Coder12a 2020-11-01 14:54:26 -06:00
parent 31dada114f
commit dea8bf0f31
5 changed files with 1 additions and 26 deletions

View File

@ -134,9 +134,6 @@ Any damage from a punch in pvp is put in a queue for a duration. This makes it p
4. *Counter* reverses all damage plus bonus damage to the aggressor. (Must be within counter duration and full punch only)
5. *Hasty guard* when you block immediately after being hit you can block the any damage from any angle, but this has a small-time window to activate. (depends on config or tool settings)
#### takedown
If enabled full punches can only kill a player. Spam punches will only bring the hp to one (half a heart).
### effects
#### disarming
@ -323,10 +320,6 @@ This is used to divide the range value into two parts. The parts being optimal a
``` lua
pvp_revamped.optimal_distance_mul = 0.625
```
If true you would need a full punch in order to kill a player. Spam punches will only bring the hp to one.
``` lua
pvp_revamped.takedown = true
```
#### maneuvers
Set how fast eachh player should dash.

View File

@ -39,7 +39,6 @@ pvp_revamped.config.lower_elevation_dmg_mul = tonumber(minetest.settings:get("pv
pvp_revamped.config.velocity_dmg_mul = tonumber(minetest.settings:get("pvp_revamped.velocity_dmg_mul")) or 0.15
pvp_revamped.config.optimal_distance_dmg_mul = tonumber(minetest.settings:get("pvp_revamped.optimal_distance_dmg_mul")) or 0.2
pvp_revamped.config.maximum_distance_dmg_mul = tonumber(minetest.settings:get("pvp_revamped.maximum_distance_dmg_mul")) or 0.1
pvp_revamped.config.takedown = minetest.settings:get_bool("pvp_revamped.takedown")
pvp_revamped.config.optimal_distance_mul = tonumber(minetest.settings:get("pvp_revamped.optimal_distance_mul")) or 0.625
pvp_revamped.config.projectile_full_throw_mul = tonumber(minetest.settings:get("pvp_revamped.projectile_full_throw_mul")) or 2
pvp_revamped.config.projectile_half_throw_mul = tonumber(minetest.settings:get("pvp_revamped.projectile_half_throw_mul")) or 0.000005
@ -81,7 +80,3 @@ pvp_revamped.config.shield_entity_rotate = {x = tonumber(xyz[1]), y = tonumber(x
xyz = split("pvp_revamped.shield_entity_scale", {0.35, 0.35})
pvp_revamped.config.shield_entity_scale = {x = tonumber(xyz[1]), y = tonumber(xyz[2]), z = tonumber(xyz[3])}
if pvp_revamped.config.takedown == nil then
pvp_revamped.config.takedown = true
end

View File

@ -13,7 +13,6 @@ local projectile_spinning_gravity_mul = pvp_revamped.config.projectile_spinning_
local projectile_dip_gravity_mul = pvp_revamped.config.projectile_dip_gravity_mul
local clash_duration = pvp_revamped.config.clash_duration
local hasty_guard_duration = pvp_revamped.config.hasty_guard_duration
local takedown = pvp_revamped.config.takedown
local projectile_throw_style_dip = pvp_revamped.projectile_throw_style_dip
local projectile_throw_style_spinning = pvp_revamped.projectile_throw_style_spinning
local player_data = pvp_revamped.player_data
@ -333,20 +332,11 @@ minetest.register_globalstep(function(dtime)
if damage > 0 and not (block and block.initial_time + block.hasty_guard_duration > timeframe) and not (shield and shield.initial_time + shield.hasty_guard_duration > timeframe) then
hp = hp - damage
if takedown and not data.full_punch and (hp - damage) < 1 then
hp = 1
end
hp_change = true
elseif damage < 0 then
local hitter = get_player_by_name(data.name)
local hitter_hp = hitter:get_hp()
if (takedown and data.full_punch and (hitter_hp + damage) >= 1) or (not takedown and hitter_hp >= 1) then
hitter:set_hp(hitter_hp + damage)
elseif takedown and hitter_hp > 1 then
hitter:set_hp(max(hitter_hp + damage, 1))
end
hitter:set_hp(hitter:get_hp() + damage)
end
local count = #hit_data

View File

@ -619,7 +619,6 @@ local function punch(player, hitter, time_from_last_punch, tool_capabilities, di
local counter_dmg_mul = tool_capabilities.counter_dmg_mul or counter_dmg_mul
hd.damage = -(hd.damage + (damage * counter_dmg_mul))
hd.full_punch = true
else
-- Reduce, remove, or reverse the damage and resolve the clash.
-- Negative damage will be applied to the hitter.

View File

@ -83,8 +83,6 @@ pvp_revamped.parry_dmg_mul (Parry damage multiplier) float 1.2
pvp_revamped.counter_dmg_mul (Counter damage multiplier) float 1.5
# This is used to divide the range value into two parts. The parts being optimal and maximum range.
pvp_revamped.optimal_distance_mul (Optimal distance multiplier) float 0.625
# If true you would need a full punch in order to kill a player. Spam punches will only bring the hp to 1.
pvp_revamped.takedown (Take down) bool true
[Maneuvers]
# Set how fast eachh player should dash.