Commit graph

29 commits

Author SHA1 Message Date
savilli
5f456a504a
Make ctf_stats award kills again (#788)
* Restore register_on_killedplayer callback in ctf_stats

* Remove unused args

Co-authored-by: savilli <savilli>
Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2021-02-10 21:18:09 -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
009b5d952c Make combat loggers give more score than usual 2020-12-27 10:03:27 -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
KaylebJay
a48be11d74
Give capturers 10% of the match score (Limited 50-750) (#700)
* Give capturers 10% of the match.score or 50 points

* limit max capturing score to 750

* fix my commit

* OKAY OKAY I'll make it i

* missed the most important part
2020-11-24 12:32:18 -08:00
LoneWolfHT
b4f3ea3294
Add automatic skip votes by ANAND (#675) 2020-09-03 11:48:33 -07:00
ANAND
181b13d1d0 ctf_stats: Add ctf_stats.request_save
This functionality allows mods to request a save (not immediate) if they modify player stats.
2020-05-20 23:28:30 +05:30
ANAND
f1a2006ec5 ctf_stats: Separate save-checking code from the actual saving code
This allows mods to directly call ctf_stats.save without having to pass unnecessary params like force_save = true.
2020-05-20 23:28:30 +05:30
ANAND
5dfa347642
ctf_stats: Immediately write to mod storage at end of match (#608)
Add an optional force_save param to ctf_stats.save to allow bypassing the _needs_save check.
2020-05-07 11:19:20 +05:30
MinetestSam
6238fb2540
ctf_stats: Add sniper rifles to good_weapons (#605) 2020-05-01 18:32:36 +05:30
ANAND
733f4460f7
ctf_stats: Remove unused code
Leftover by commit a417e857
2020-04-23 12:16:45 +05:30
ANAND
a417e857ef
Improve match duration metric; move to ctf_match (#539) 2020-04-21 20:19:57 +05:30
ANAND
446def1294
Rename on_skip_map to on_skip_match (#581) 2020-04-21 07:38:31 +05:30
ANAND
123695cd0e
ctf_stats: Tweak scoring algorithm a bit (#538) 2019-12-27 19:10:27 +05:30
MinetestSam
daafb12363 Change greater than operations to greater than or equal to in is_pro (#528) 2019-12-15 20:47:19 +01:00
MinetestSam
d25e060d90 Double the scores awarded for attempts and captures (#526) 2019-12-15 18:59:37 +05:30
Thomas--S
19ce34153b
Increase score requirements for is_pro
Closes #519
2019-12-05 19:36:03 +01:00
ANAND
6e35425e4c Add ctf_stats.is_pro; consolidate "pro-ness" calculations (#517) 2019-12-05 19:33:38 +01:00
ANAND
6b33c8e9cc
ctf_stats: Add support for retrieving stats by rank (#454) 2019-11-27 11:30:39 +05:30
ANAND
7e73ff05eb
Refactor ctf_stats [Part 1] (#491)
Move all chat-commands into separate file - chat.lua
2019-11-25 10:31:53 +05:30
ANAND
4de074dc17 ctf_stats: Add map name to match summary (#495) 2019-11-24 21:38:15 +01:00
ANAND
5eb5d3311a
Improve log messages (#422)
- Add log messages wherever required/useful
- Remove unnecessary log messages and print statements
- Convert print statements to minetest.log
- Fix incorrect log level for some messages
- Trivial code-style fixes
2019-10-18 11:22:18 +05:30
rubenwardy
e53732f41e Remove saving from ctf_pvp_engine 2019-08-28 18:46:14 +01:00
ANAND
29a0861aef
Add HUD score elements for flag pickup and capture (#378) 2019-03-19 22:34:41 +05:30
ANAND
123ed6d1f5 Extend /summary to show scores of current match as well
Fixes #310
2019-03-17 01:37:20 +00:00
ANAND
5643fdf802 Add hud_score mod API
Fixes #72
2019-03-17 01:35:51 +00:00
rubenwardy
b38a89c2fe Reorganise game into modpacks 2019-01-11 15:52:47 +00:00
Renamed from mods/ctf_stats/init.lua (Browse further)