Difference between revisions of "Race Module"

From ASSS Wiki
Jump to: navigation, search
m
 
(4 intermediate revisions by 2 users not shown)
Line 28: Line 28:
 
           Minimum time needed to pass a checkpoint before being disqualified.
 
           Minimum time needed to pass a checkpoint before being disqualified.
 
             - d->chkpttime = 0 (start_game)
 
             - d->chkpttime = 0 (start_game)
             - if( (current_ticks() - d->start) / 100 + d->chkpttime > mindelay ) d->chkpttime = current_ticks() - d->start / 100 + d->chkpttime - mindelay;
+
             - if( (current_ticks() - d->start) / 100 + d->chkpttime > mindelay )
             - else FINISH player
+
                d->chkpttime = current_ticks() - d->start / 100 + d->chkpttime - mindelay;
 +
             - else
 +
                FINISH player
 
         * RaceRewardMode
 
         * RaceRewardMode
 
           Add in a new race reward mode based on time.  This will probably be
 
           Add in a new race reward mode based on time.  This will probably be
Line 37: Line 39:
 
== Download ==
 
== Download ==
  
    [http://www.aswz.com/files/race-1.3i.tar.gz Current Tarball]
+
: [http://www.aswz.com/files/race-1.3i.tar.gz Current Tarball]
  
 
== Build Instructions (UNIX) ==
 
== Build Instructions (UNIX) ==
Line 54: Line 56:
 
     * Append cmd_race to /path/to/[ASSS]/conf/groupdef.dir/mod
 
     * Append cmd_race to /path/to/[ASSS]/conf/groupdef.dir/mod
  
== [[Race Settings|Configuration]] ==
+
== [[Race Settings|Configure]] ==
  
 
== Commands ==
 
== Commands ==
Line 62: Line 64:
 
== Contact ==
 
== Contact ==
  
    * [[User:Smong|Smong]]
+
* [[User:Smong|Smong]]
    * [[User:i88gerbils|i88gerbils]]
+
* [[User:i88gerbils|i88gerbils]]
  
 
[[Category: Custom Modules]]
 
[[Category: Custom Modules]]

Latest revision as of 13:11, 31 May 2005

Introduction

   The Race module attempts to implement one of the long requested
   server features.  In the history of zones like Pod Racer comes
   automated racing under an ASSS module.  Race was initially
   developed by Smong, but now maintained by i88gerbils.

Requirements

   ASSS version *1.3.x* or newer.

ChangeLog

11/05/04        v 1.3i          i88gerbils

        * "i" branch started ;-)
        * RaceReward hack, does not use a separate module.
        * RaceDelay timer added to set maximum race time.
        * AutoRace functionality added to start races automatically.
        * InSafeToPlay changed to spec OR ignore non-racers.
        * stats->SendUpdates works.  Now scores will update immediately.  Yay.

Todo

       * RaceMinDelay                                  min=0
         Minimum time needed to pass a checkpoint before being disqualified.
           - d->chkpttime = 0 (start_game)
           - if( (current_ticks() - d->start) / 100 + d->chkpttime > mindelay )
                d->chkpttime = current_ticks() - d->start / 100 + d->chkpttime - mindelay;
           - else
                FINISH player
       * RaceRewardMode
         Add in a new race reward mode based on time.  This will probably be
         players^2 * RaceReward / rank / (mytime-1sttime) [except for 1st place racer
         of course!]

Download

Current Tarball

Build Instructions (UNIX)

    * tar zxf race-*version*.tar.gz
    * cp race-*version*
    * cp race.* /path/to/[ASSS]/src
    * cd /path/to/[ASSS]/src
    * *make -f race.mk*

Installation

    * make -f race.mk install
    * cp race.conf ../arenas/MY_RACE_ARENA/
    * Append race:race to /path/to/[ASSS]/conf/modules.conf
    * Append cmd_race to /path/to/[ASSS]/conf/groupdef.dir/mod

Configure

Commands

   ?race start|stop|status

Contact