Commit graph

16 commits

Author SHA1 Message Date
rubenwardy 1e80291664 Add log level to avoid logs being printed to chat 2021-02-19 22:24:57 +00:00
savilli abf1fa2ad5
Don't count kill assist on build time or player immunity (#795)
* Don't count kill assist on build time or player immunity

* Remove register_can_attack, use can_attack global func
2021-02-13 14:17:05 -08:00
Anthony-De f8cb85be9f
Fix up and re-add kill assists (#782)
* Add kill assists

* Fix bug

* Move to seperate mod

* Fix bugs and improve code some more

Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2021-02-08 16:03:03 -08:00
LoneWolfHT 510ca896cd
Revert "Add kill assists (#755)" (#781)
This reverts commit 49f4e6fd47.
2021-02-05 15:46:29 -08:00
Anthony-De 49f4e6fd47
Add kill assists (#755)
* Update teams.lua

* Update teams.lua and init.lua

* Update teams.lua and init.lua

* Update teams.lua and init.lua

* Update teams.lua and init.lua Kill assist implemented

* Update init.lua Remove unused variables

* Added ctf.clearAssists function
Only awards those who did more that 50% of damage
Clears attackers stats after suicide

* Remove unused variable

* Minor modifications

renamed ctf.clearAssists to ctf.clear_assists
changed playerName to player

* Cap assist points

* Reaching full health while in combat clears assist data

* split points between assisting players by damage done

* Reworked assist data storage to work with a table rather than player metadata

* Fix lua check

* Removed duplicate scoring

* Change kill assist color

* Health regen subtracts from assist.
Suicide gives assist points

* Fixed accessing nil value for max_hp

* Corrected max_hp

* hardcode hp list for max hp
2021-02-01 08:24:29 -08:00
LoneWolfHT fbf0126599
Allow more than two teams in a match at once (#724)
* Fix bugs with more than two teams

* Fix team allocation

* Fix bugz

* Fix crash

* Fix crash with crash fix
2020-12-25 10:37:02 -08:00
MinetestSam 1f10fd9e22 Remove unused team ownership code; improve team listing (#512) 2019-11-25 13:05:45 +05:30
ANAND 2845448e6e Combine server join message into team join message (#499) 2019-11-24 21:38:56 +01:00
MinetestSam 67cb9b255d Remove unused textures diplo_*.png (#511) 2019-11-16 19:01:36 +05:30
MinetestSam 1c439b163b Remove unused function ctf.post() (#513) 2019-11-16 19:01:02 +05:30
ANAND 720f29adc6 Disable knockback completely 2019-11-11 20:57:10 +05:30
ANAND 579d449ef4 ctf/core.lua: Fix incorrect indentation 2019-11-09 12:25:45 +05:30
ANAND 38c27736f6 Improve format of ctf.log 2019-11-09 12:25:45 +05:30
ANAND f04663fc6c
Fix depends.txt present in mods from ctf_pvp_engine 2019-08-31 11:40:46 +05:30
rubenwardy ebf4316594 Fix issues found by luacheck 2019-08-28 18:54:24 +01:00
rubenwardy 450027c3b7 Dissolve ctf_pvp_engine modpack into other modpacks 2019-08-28 18:46:14 +01:00