Commit graph

12 commits

Author SHA1 Message Date
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
KaylebJay 1bc44d16ee
Give bandages infinite uses (#689)
* infinite bandages for medics

* Little nitpick

* Set stack_max to 1

Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2020-10-24 15:20:16 -07:00
KaylebJay 2501173aac
Optimize texture file sizes (#690) 2020-10-24 15:15:18 -07:00
ANAND 266fdd5a07
ctf_bandages/init.lua: Remove trailing whitespace 2020-05-03 12:10:59 +05:30
ANAND 8301a47f6f
ctf_bandages: Improve bandage item description
- Un-hardcode the healing percentage.
- Remove ambiguous wording.
2020-05-03 11:33:24 +05:30
MinetestSam 7c3d35bd03
ctf_bandages: Add percentage-based healing (#609)
Remove HP hardcoding; heal up to a certain percentage of player's `hp_max` property.
2020-05-02 15:06:06 +05:30
rubenwardy 02d527eaf5 Add class items 2020-03-14 20:00:32 +00:00
ANAND f04663fc6c
Fix depends.txt present in mods from ctf_pvp_engine 2019-08-31 11:40:46 +05:30
MinetestSam 0829d4c700 ctf_bandages: Show coloured alert to target when being healed (#436)
Also increase the spawn rate of bandages.

Co-Authored-By: ANAND <ClobberXD@gmail.com>
2019-07-13 06:48:48 +05:30
MinetestSam 3e57880520 Add bandages 2019-03-05 13:44:14 +00:00