Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

2 years ago

Advertisement
August 24, 2019, 12:17:35 am

Author Topic: Basic Duel Script  (Read 1977 times)

Arnie

  • Newbie
  • *
  • Posts: 24
    • View Profile
Basic Duel Script
« on: December 17, 2013, 10:27:26 am »
Super simple, just starting off by modifying that gamemode script in the tutorial, ideally I'd like to turn it into a mutual hunting kind of game on one of the small islands.

To use, just load it up and type /duel playername
Things I'd like to add:

-Countdown to the start of the duel, since whoever loads first has a bit of an advantage
-A way to accept the duel before it begins
-A few more weapon options
-Figure out how to make it in a separate world like the races and derbies

Glover

  • Donator
  • Newbie
  • *****
  • Posts: 45
    • View Profile
Re: Basic Duel Script
« Reply #1 on: December 17, 2013, 09:16:51 pm »
I'm working on something very similar, have you got Steam or GTalk? We could compare.

zoydbot

  • Donator
  • Jr. Member
  • *****
  • Posts: 56
    • View Profile
Re: Basic Duel Script
« Reply #2 on: December 18, 2013, 09:23:32 am »
thanks for the work arnie. the script loaded successfully, nothing seems to happen when users type /duel validplayername. we tried several users and tried with correct cases, i dont see any errors in the server log. thanks again.

Arnie

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Basic Duel Script
« Reply #3 on: December 18, 2013, 08:46:43 pm »
Hmm, odd. I noticed it has a tendency to only work once, and then it needs to be reloaded. Thanks for the feedback, I'll look into it :)

Orinoco

  • Donator
  • Jr. Member
  • *****
  • Posts: 53
    • View Profile
Re: Basic Duel Script
« Reply #4 on: December 21, 2013, 06:54:26 pm »
This script is fun - because it is simple and quick event. It is ok to play it with a friend. But as you wrote, few items should be improved to be able to use it for general server:
  • disable a chance to buy weapon or spawn a vehicle during duel
  • the other player has to accept the duel and there should be countdown
  • there should be multiple places randomly selected for a duel
  • add a detection that one of players left the zone for duel
  • run duel in a separate world

ROODAY

  • Sr. Member
  • ****
  • Posts: 298
    • View Profile
Re: Basic Duel Script
« Reply #5 on: December 21, 2013, 10:58:59 pm »
yeah i can't wait for this mod to be improved, it looks really fun