Commit Graph

28 Commits (master)

Author SHA1 Message Date
ANAND 769b278494
Pass tool_capabilities to on_killedplayer callbacks (#38)
Provides a solution to the regression introduced by 1c373b66, which removed passing of hard-coded kill types to on_killedplayer callbacks, and passed the wielditem instead.

The problem with passing wielditem is that throwables can't be detected, as the wielditem would be nil. Grenades used to be detected before the aforementioned commit due to the special `grenade` damage group in the grenade's toolcaps.
2019-07-06 21:27:15 +05:30
ANAND 4a2a907bd1
Fix call to deprecated method ObjectRef:moveto 2019-07-05 16:12:14 +05:30
ANAND 48545e39e8 Fix on_killedplayer callbacks running when victim has already died 2019-04-11 19:26:00 +01:00
ANAND 8f341538f4
Add custom autoalloc mode (#30)
Adds a new alloc_mode 4. Setting config key `allocate_mode` to 4 will make `ctf.autoalloc` invoke `ctf.custom_alloc`. If unimplemented, `ctf.custom_alloc` will throw an error when invoked.
2019-04-09 19:37:31 +05:30
rubenwardy 93ba341695 Add ctf.chat_send_team 2019-03-22 03:20:31 +00:00
ClobberXD 1c373b663b Pass wielded to on_killedplayer callbacks instead of hard-coded type 2018-12-31 12:36:26 +00:00
ClobberXD e7d5044afb Add support for separating static spawn-point from team-base 2018-11-11 20:24:37 +00:00
Gaël C aa12c0d2f7 Prevent players from switching teams 2018-03-31 21:44:58 +01:00
rubenwardy 254d147bb2 Add team locking 2017-10-10 22:40:23 +01:00
rubenwardy 80c47dd99b Add missing ctf.needs_save sets 2016-11-12 15:40:50 +00:00
rubenwardy aa6cef7a39 Check for grenade 2016-04-06 00:11:10 +01:00
rubenwardy f3379d0dfd Allow friendly fire if you're killing yourself 2016-04-05 23:18:08 +01:00
rubenwardy d92650158d Fix on_killedplayer being called multiple times 2016-04-05 17:25:11 +01:00
rubenwardy f1bc56f4cd Give kill type to on_killedplayer, and fix crash in ctf_colors.get_color() 2016-04-05 17:15:59 +01:00
rubenwardy 88aea4acb7 Add ctf.create_team(name, data) 2016-03-30 01:13:05 +01:00
rubenwardy 59d220f9a2 Fix some typos 2016-03-30 00:39:22 +01:00
rubenwardy b70fb29a11 Add ctf_team_mgr priv, clean ctf_chat 2015-12-08 00:15:24 +00:00
rubenwardy cbb838eb40 Add ctf.register_on_killedplayer callback 2015-12-04 00:14:36 +00:00
rubenwardy d273457d99 More callbacks 2015-11-29 00:05:20 +00:00
rubenwardy e672344383 Add logging to /t 2015-11-28 00:55:46 +00:00
rubenwardy b72072c3ce Clean ups 2015-11-22 20:06:02 +00:00
rubenwardy 59a3d275bc Remove unnecessary logging 2015-09-08 14:08:51 +01:00
rubenwardy 8f1b6c7abd fix typo 2015-09-01 18:59:05 +01:00
rubenwardy e078025fa5 Message on friendly fire 2015-09-01 18:44:55 +01:00
rubenwardy 665030b5d5 Option to disable friendly fire 2015-09-01 18:27:43 +01:00
rubenwardy 9196eec940 Fix team spawn on new player 2015-07-17 19:25:20 +01:00
rubenwardy f961d96d68 newgame + endgame = match 2015-07-16 18:53:25 +01:00
rubenwardy 68e7cd397f Convert to ModPack 2015-07-16 18:25:25 +01:00