[crossfire] [PATCH] Add follow command for non-DMs, allow following into permanent apartments
Kevin Zheng
kevinz5000 at gmail.com
Sun May 30 14:07:48 CDT 2021
Hi there,
The three patches attached here enable the 'follow' command for non-DM
players. It allows players to follow each other, including through exits
and permanent apartments.
When two players are on the same tiled map, this code simply calls
player_move() in the direction of the player being followed. If the
player being followed moves through an exit, that the exit object is
copied to a new field in the player structure. The follower then moves
to the exit (instead of the player) and applies the exit once on top.
This means that gates, check_inv's, and other forms of blocked movement
will still continue to be effective.
This patch reduces the possibility of abuse by requiring players be in
the same party in order to follow each other. If the followed player
leaves the party at any point, players can no longer follow them.
Patch 2 allows followers to follow into unique maps such as permanent
apartments. This allows players to visit each others' permanent apartments.
I welcome your feedback and discussion about these changes here, or on
the SourceForge tracker:
https://sourceforge.net/p/crossfire/patches/400/
Regards,
Kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Enable-follow-command-for-non-DMs.patch
Type: text/x-patch
Size: 12092 bytes
Desc: not available
URL: <http://mailman.metalforge.org/pipermail/crossfire/attachments/20210530/7696ab81/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Follow-followed-player-through-unique-exits.patch
Type: text/x-patch
Size: 1927 bytes
Desc: not available
URL: <http://mailman.metalforge.org/pipermail/crossfire/attachments/20210530/7696ab81/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Update-follow-command-help.patch
Type: text/x-patch
Size: 1444 bytes
Desc: not available
URL: <http://mailman.metalforge.org/pipermail/crossfire/attachments/20210530/7696ab81/attachment-0002.bin>
More information about the crossfire
mailing list