philipmi
9de5000fb8
Merge branch 'master' of https://github.com/MT-CTF/capturetheflag
...
Conflicts:
mods/ctf/ctf_map/ctf_map_core/chest.lua
mods/ctf/ctf_stats/init.lua
2021-02-25 17:34:31 +01:00
LoneWolfHT
9e20609ed6
Fix /makepro not handling captures
2021-02-25 06:42:13 -08:00
MinetestSam
e9487c6bde
Consider captures as a requirement for pro players ( #541 )
...
Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2021-02-24 08:53:07 -08:00
philipmi
011fc7f573
Make a Capture Rate of 33% and 10 captures a requirement for pro players
2021-02-19 18:12:25 +01:00
philipmi
ca8cde8a0a
Add "Capture Rate" statistic
2021-02-13 20:53:29 +01:00
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
Toby1710
b49909fc50
Change colors for /r output ( #759 )
...
* Change stats color when type /r
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-01-23 09:13:13 -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
LoneWolfHT
b197ead7f0
Fix up code style in last commit
2020-11-24 12:44:16 -08:00
Axaxax88
ac4e98e076
Add Team K/D to summary
...
These changes will add "Team K/D" to summary counted from red and blue kills and deaths.
Update gui.lua
Update gui.lua
2020-11-24 12:40:27 -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
PiMonkey
9c48ad2c7c
Fix total score not fitting in the summary formspec ( #696 )
2020-10-28 08:26:59 -07:00
LoneWolfHT
779e0973a6
Re-add MTG: Trim out the remaining bloat from default
2020-09-22 15:48:35 -07:00
LoneWolfHT
b4f3ea3294
Add automatic skip votes by ANAND ( #675 )
2020-09-03 11:48:33 -07:00
ANAND
1967a83da7
/makepro: Request save if modified
2020-05-31 20:17:42 +05:30
ANAND
3db5696889
ctf_stats: Improve /makepro chat-command ( #638 )
2020-05-30 20:37:57 +05:30
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
ffdb5dd799
Add /s chat-command alias for /summary
2020-04-12 12:37:56 +05:30
rubenwardy
d973815a18
Fix variants of class items being allowed to drop
2020-03-14 20:00:32 +00:00
ANAND
54598ce947
Fix comparison of number with nil
2020-01-10 12:05:13 +05:30
MinetestSam
f955ac8916
Disallow transfer of stats if source and destination are same ( #554 )
2020-01-06 15:05:40 +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
Panquesito7
515b0ca1f7
Use mod.conf and modpack.conf
...
Replaces depends.txt, description.txt, and modpack.txt
2019-08-31 10:31:14 +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
ANAND
84c55a3d7a
Reduce width of name column in scores formspec ( #344 )
2019-02-23 15:11:35 +00:00
rubenwardy
b38a89c2fe
Reorganise game into modpacks
2019-01-11 15:52:47 +00:00