[Mod] Duel [duel]

red-001
Member
 
Posts: 126
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

[Mod] Duel [duel]

by red-001 » Tue Nov 01, 2016 23:10

This mod adds a duel system to minetest. It's still very much a work in progress. Currently it only allows one duel at a time between two players. You can challenge a player to a duel using the /duel chat command. You can leave a duel using the /duel_abandon chat command.
Features
  • The mod saves the contents of the inventory and the position of the players before the duel starts and restores it at the end
  • Both players are granted the same items at the start of each duel. By default this is a steel sword.
  • The items granted to the players can be changed by setting the duel_items setting. It uses the same syntax as initial_stuff.
  • Bones aren't placed when a player dies in a duel
Planned Features
  • Add reward/punishment for losing or winning
  • Make it easier to set spawn positions for duels
  • Save player position to disk and auto-restore inventory and position after a server crash
  • Allow multiple arenas for duels, so that multiple duels can occur at the same time
  • Allow for team-based combat
  • Allow spectators?
  • Add formspecs?
[/list]
License
This mod is released under the MIT License
Download
Browse the Github repository
Download form Github
Last edited by red-001 on Wed Nov 02, 2016 22:22, edited 5 times in total.
 

User avatar
bigfoot547
Member
 
Posts: 172
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
In-game: bigfoot547

Re: [Mod] Duel [duel]

by bigfoot547 » Wed Nov 02, 2016 00:11

I love this mod! I think you should add a thing so that when a player loses, they should not see the "you died" screen, but should just be only spectators until they type /leave.

I think that you should have a HUD item saying the nearest alive player and your opponent's health. Another thing: As well as teleporting players to the duel arena, set their yaw and pitch.

May I help you develop this mod?
God's not dead, He's surely alive!
My Stuff | My User Page | Check out my website!
<bigfoot547> I major in existing. | <RedPanda246> Not every day is good, but there is good in every day.
I, bigfoot, have this special ability to destroy cameras and recording devices within a 5 mile radius of myself. Mystery solved.
 

red-001
Member
 
Posts: 126
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: [Mod] Duel [duel]

by red-001 » Wed Nov 02, 2016 00:21

bigfoot547 wrote:I think you should add a thing so that when a player loses, they should not see the "you died" screen

I don't think it really possible to disable the death formspec.
bigfoot547 wrote:I think that you should have a HUD item saying the nearest alive player and your opponent's health.

Nice Idea, will add it if I figure out how to do it.
bigfoot547 wrote:May I help you develop this mod?

Sure, just make a pull request. But be aware that the mod is still in early development so large parts of the code may be rewritten.
 

red-001
Member
 
Posts: 126
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: [Mod] Duel [duel]

by red-001 » Wed Nov 02, 2016 08:05

Update: You can now leave a duel early using the /duel_abandon chat command
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
GitHub: DS-Minetest
In-game: DS

Re: [Mod] Duel [duel]

by DS-minetest » Wed Nov 02, 2016 08:07

nice mod!

ps ive tidied up the BBcode of your first post:
Code: Select all
This mod adds a duel system to minetest. It's still very much a work in progress. Currently it only allows one duel at a time between two players. You can challenge a player to a duel using the [color=#0040FF]/duel [/color]chat command.
[b][size=150]Features[/size][/b]
[list]
[*] The mod saves the contents of the inventory and the position of the players before the duel starts and restores it at the end
[*] Both players are granted the same items at the start of each duel. By default this is a steel sword.
[*] The items granted to the players can be changed by setting the  [color=#0040FF]duel_items [/color] setting. It uses the same syntax as [color=#0040FF]initial_stuff[/color].
[*] Bones aren't placed when a player dies in a duel
 [/list]
[b][size=125]TODO list [/size][/b]
[list]
[*] Restore player data on shutdown and leave player
[*] Save player position to disk and auto-restore inventory and position after a server crash
[*] Add chat command for leaving a duel[/list]
[b][size=125]Planned Features[/size][/b]
[list]
[*] Add reward/punishment for losing or winning
[*] Make it easier to set spawn positions for duels
[*] Allow multiple arenas for duels, so that multiple duels can occur at the same time
[*] Allow for team-based combat
[*] Add formspecs?[/list]
[size=150]License[/size]
This mod is released under the [url=https://github.com/red-001/duel/blob/master/LICENSE]MIT License[/url]
[size=150]Download[/size]
[url=https://github.com/red-001/duel]Browse the Github repository[/url]
[url=https://github.com/red-001/duel/archive/master.zip]Download form Github[/url]
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

red-001
Member
 
Posts: 126
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: [Mod] Duel [duel]

by red-001 » Wed Nov 02, 2016 22:21

Update: Leaving the game while in a duel will now cause the other player to win. Player inventories are now restored on shutdown.
 

User avatar
Nabi
Member
 
Posts: 10
Joined: Wed Feb 01, 2017 17:06
In-game: sam7777

Re: [Mod] Duel [duel]

by Nabi » Fri Mar 31, 2017 21:09

in my server this mod crash xd
is a very nice mod
can you fix it?
 

red-001
Member
 
Posts: 126
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: [Mod] Duel [duel]

by red-001 » Fri Mar 31, 2017 22:00

Should be fixed, could you try again with the latest version?
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 6 guests

cron