Page 1 of 1

Velocity Drivers (veldrv plugin)

Posted: Tue Jun 29, 2010 11:55 pm
by trepan
Here's a plugin for BZFlag v2.0 that implements "velocity drivers". Velocity drivers
are physics drivers that change a player's linear and angular speeds when they
touch them. You could use this to add mud, tar, and speed-up zones to your maps.

This plugin probably only works on systems that use gcc for compiling
(linux and freebsd have been tested and do work).

Here's the link:
http://trepan.bzflag.bz/veldrv_v1.0.tgz

To add a veldrv physics driver, use the following pattern for the phydrv name:
veldrv_lin<linear scale>_ang<angular scale>
(the scales are floating point values). Example: veldrv_lin0.5_ang0.5

P.S. Included in the TGZ file is an example map. You'll probably want to take a look
through it before using the plugin.

P.P.S. Consider this "beta" software; it hasn't been tested all that much.

P.P.P.S. I have the example map running at trepan.bzflag.bz:5432

Re: Velocity Drivers (veldrv plugin)

Posted: Wed Jun 30, 2010 2:48 am
by mrapple
Wow. Great job!

I think there have been quite a few posts in the past mentioning how tanks can go faster using phydrv in a certain direction, but they can't just get added speed.

This is an amazing plugin - nice work.

Also I love the negative values. When i first tested your server i thought my keys were mapped wrong :D

P.S. Whats the license on this plugin?

Re: Velocity Drivers (veldrv plugin)

Posted: Wed Jun 30, 2010 3:01 am
by trepan
From the top of veldrv.cpp:

Code: Select all

//============================================================================//
//
//  VELOCITY DRIVERS
//
//    author:   Dave Rodgers  (a.k.a. trepan)
//    brief:    BZFS plugin to implement velocity drivers  (via physics drivers)
//    date:     June 28, 2010
//    license:  LGPL v2.1
//
//============================================================================//

Re: Velocity Drivers (veldrv plugin)

Posted: Wed Jun 30, 2010 7:01 pm
by mrapple
Oh didn't see that there. Thanks trepan

Re: Velocity Drivers (veldrv plugin)

Posted: Thu Jul 01, 2010 6:04 pm
by trepan
Here's a lua module version for 2.99.x:
http://trepan.bzflag.bz/veldrv.lua