Commit graph

13 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
LoneWolfHT 1b689ed6c2 Reset combat on new match 2020-11-22 14:06:25 -08:00
LoneWolfHT 8f2088b92f Misc bug/exploit fixes 2020-11-21 08:31:36 -08:00
LoneWolfHT fd9c6bd34a Allow other mods to check if player is in combat 2020-10-31 09:49:39 -07:00
LoneWolfHT 21ff6f58c1 Fix rare crash and anticoward bug? 2020-10-18 19:52:20 -07:00
LoneWolfHT 90d73f0587 Change fall damage to use combat system 2020-10-13 08:52:38 -07:00
LoneWolfHT 6a0491fa00 Increase combat time again 2020-09-20 11:39:34 -07:00
LoneWolfHT d9771108e5 Improve combat mode 2020-09-20 09:05:31 -07:00
LoneWolfHT 15b8e84589 Remove attacker from combat if attacking victim dies 2020-09-19 15:02:18 -07:00
LoneWolfHT 744a14cd10
Award kill to attacker if victim leaves/suicides (#679)
* Award kill to attacker if player leaves/suicides

* Fix death check

* Prevent immune players from entering combat
2020-09-19 14:35:32 -07:00
LoneWolfHT 179ff104bf
Make fall damage leave at least 1 hp (#678)
* Make fall damage leave at least 1 hp
2020-09-16 08:30:58 -07:00