Wuzzy
21f053270f
Add effect metadata
...
Effect metadata is a means to store additional user-defined data for the effect,
which can be reused when the cancel function of the effect is called.
This commit also adds a new example (blind) to demonstrate usage of that.
2014-07-14 17:28:51 +02:00
Wuzzy
a91e4c79ce
Add autosave functionality
2014-07-14 00:43:16 +02:00
Wuzzy
3f2a23889f
Clean up debug and log messages
2014-07-13 22:09:57 +02:00
Wuzzy
85fbd146b1
Add support for hidden effects
...
Hidden effects are effects which are not exposed to the player’s HUD.
2014-07-13 22:07:04 +02:00
Wuzzy
bf50528228
Add setting use_hud, used to control player HUDs
2014-07-13 21:57:45 +02:00
Wuzzy
25fcabc095
Add playereffects.cancel_effect_type
2014-07-13 21:27:59 +02:00
Wuzzy
58af48a055
Show 20 effects at max on the screen
...
This has been done to avoid having on_globalstep calling hud_update so often.
2014-07-07 10:55:18 +02:00
Wuzzy
050be27a3b
Add stresstest example use globalstep less often
2014-07-07 10:39:21 +02:00
Wuzzy
bbc90ad630
Add support for HUD icons; improve HUD alignment
2014-07-07 09:38:55 +02:00
Wuzzy
49dafa6425
Clean up dead code
2014-07-06 23:17:53 +02:00
Wuzzy
812c15c9dd
Show duration on first HUD add
2014-07-06 22:52:40 +02:00
Wuzzy
33c50c81ac
Save status into playereffects.mt on shutdown
...
The file is stored in the world path. It is loaded again when the server starts again.
If the file does not exist, playereffects starts with an empty set of effects.
2014-07-06 21:16:25 +02:00
Wuzzy
8309b61769
Remove playereffects.hudids
2014-07-06 20:22:27 +02:00
Wuzzy
c796ef7876
Move examples to its own file; it is not loaded
2014-07-06 18:37:32 +02:00
Wuzzy
c62e857564
Add new example effect: grant fly privilege
2014-07-06 18:30:32 +02:00
Wuzzy
e6d96f119a
Implement HUD timers and a proper effect list
2014-07-06 18:04:29 +02:00
Wuzzy
b6b3ac82ce
on_joinplayer workaround
2014-07-06 16:07:00 +02:00
Wuzzy
4c1d480f82
Add basic player join and leave handling
2014-07-06 08:01:09 +02:00
Wuzzy
1b7d45532d
New debug message
2014-07-06 05:25:56 +02:00
Wuzzy
c4cf35a50b
Fix alignment
2014-07-06 05:18:48 +02:00
Wuzzy
0672f80a55
Initial commit
...
The basic stuff works now
2014-07-06 01:04:03 +02:00