Commit graph

16 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
Apelta
62cedd9267
Fix medkits not allocating deaths/score after death (#749)
* Fix medkits preventing kills or score from being given on death
* Remove HUD
2021-01-17 20:25:08 -08:00
Emojigit
88c326f13d
Fix up medkit interrupt reasons (#734)
* Bugfix of "Add reason to medkit"
 * Fix reasons while attack and damage
 * Remove `die` reason, add `attack` reason

* Change suggested code

* Fix doc

* fix line contains trailing whitespace

* Update init.lua

Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2021-01-05 19:56:55 -08:00
Emojigit
518e3f0807
Fix medkit interrupt reason (#732)
* Add medkit interrupt reason and some bugfix

* Bugfix

* Fix Bug
2021-01-04 20:27:43 -08:00
Emojigit
1da0840f11
Add medkit interrupt reasons (#729) 2021-01-03 09:20:59 -08:00
KaylebJay
2501173aac
Optimize texture file sizes (#690) 2020-10-24 15:15:18 -07:00
ANAND
fffe0ea3d6
medkits: Remove hardcoded regen_max; use hp_max instead (#584) 2020-04-23 22:18:17 +05:30
rubenwardy
f610722b83 Remove false promises in class selection, add random messages 2020-03-14 20:00:32 +00:00
ANAND
1aca94fd8c
medkits: Fix missing return statement
This fixes the flags not being capture-able
2019-07-03 12:24:54 +05:30
Lars Müller
b8d1bdc9f3 Fix healing interrupted on new match due to respawn (#400) 2019-05-11 09:57:25 +05:30
Anand S
8b706130aa Fix medkits HP leak due to missing check 2019-03-08 17:43:31 +00:00
Anand S
92c5600d7e Tweak and optimize medkits 2019-03-06 07:27:29 +00:00
rubenwardy
2789d141c3 Tweak medkit settings 2019-03-05 13:54:34 +00:00
Anand S
b7bab11c3b Add medkits, remove apples 2019-03-05 13:54:25 +00:00