Velocity Drivers (veldrv plugin)

Questions, comments, and news on the server side plug-ins and it's API
Post Reply
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Velocity Drivers (veldrv plugin)

Post 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
User avatar
mrapple
Sergeant Major
Sergeant Major
Posts: 460
Joined: Wed May 27, 2009 11:59 am
Location: Unknown
Contact:

Re: Velocity Drivers (veldrv plugin)

Post 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?
Image
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Re: Velocity Drivers (veldrv plugin)

Post 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
//
//============================================================================//
User avatar
mrapple
Sergeant Major
Sergeant Major
Posts: 460
Joined: Wed May 27, 2009 11:59 am
Location: Unknown
Contact:

Re: Velocity Drivers (veldrv plugin)

Post by mrapple »

Oh didn't see that there. Thanks trepan
Image
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Re: Velocity Drivers (veldrv plugin)

Post by trepan »

Here's a lua module version for 2.99.x:
http://trepan.bzflag.bz/veldrv.lua
Post Reply