Resource:Realdriveby

From Multi Theft Auto: Wiki
Revision as of 21:12, 21 February 2008 by Talidan (talk | contribs) (New page: == Introduction == RealDriveby is a fully customisable resource which allows a flexible driveby system for your server. All of GTA's driveby compatible weapons, including the shotguns,pis...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

RealDriveby is a fully customisable resource which allows a flexible driveby system for your server.

All of GTA's driveby compatible weapons, including the shotguns,pistols,M4 and AK-47 are supported by this resource. Shot delays for weapons such as pistols are fixed to their normal rate.

Users can switch weapons by default using the "Vehicle Look Left" and "Vehicle Look Right" keys while in driveby mode.

However, it is completely up to the admin how he or she wants drivebys to be: Using MTA's settings system, shot delays for weapons can be modified; the weapons which a driver can driveby with are customisable; the weapons a passenger can driveby with are customisable.

There are also options available to disable steering whilst in driveby mode, or disable drivebys altogether for certain vehicles.

On top of this, RealDriveby provides clientside scripting functions so that users can modify these attributes on a player-basis, allowing different players the ability to driveby different weapons and different delays.

Settings

All settings can be modified using MTA's set() functions, modifying the meta.xml of the resource, or modifying the settings.xml.

Driver weapons

  • Setting name: driveby_driver
  • Description: Sets the weapons that a driver can driveby with. To disable driver drivebys, just pass an empty table.
  • XML Example:
    <setting name="driveby_driver" value="[[ 22,23,24,26,28,29,32 ]]"/>

Passenger weapons

  • Setting name: driveby_passenger
  • Description: Sets the weapons that a passenger can driveby with. To disable passenger drivebys, just pass an empty table.
  • XML Example:
    <setting name="driveby_passenger" value="[[ 22,23,24,25,26,28,29,32,30,31,33 ]]"/>

Shot delay

  • Setting name: driveby_shot_delay
  • Description: Sets the delay between each individual shot for the specified weapons. Unspecified weapons have GTA's default driveby fire rate. The setting is in the format of a table where the key is a string of the weapon ID, and the value is the delay in milliseconds.
  • XML Example:
    <setting name="driveby_shot_delay" value="[{ '22':300,'23':300,'24':800,'26':700 }]"/>

Blocked vehicles

  • Setting name: driveby_blocked_vehicles
  • Description: Sets the vehicles which driveby mode cannot be accessed in. Useful to block strange effects such as drivebys in tanks. In the format of an array of vehicle IDs.
  • XML Example:
    <setting name="driveby_blocked_vehicles" value="[[ 432,601,437,431,592,553,577,488,497,548,563,512,476,447,425,519,520,460,417,469,487,513,441,464,501,465,564,538,449,537,539,570472,473,493,595,484,430,453,452,446,454,606,591,607,611,610,590,569,611,435,608,584,450 ]]"/>

Steer Cars while in driveby mode

  • Setting name: driveby_steer_cars
  • Description: Sets whether drivers can steer left or right while in driveby mode for vehicles besides bikes. The setting is in the format of a bool, where true allows steering.
  • XML Example:
    <setting name="driveby_steer_cars" value="[true]"/>

Steer Bikes while in driveby mode

  • Setting name: driveby_steer_bikes
  • Description: Sets whether drivers can steer left or right while in driveby mode for bikes/bicycles. If set to false, it allows extra realism. The setting is in the format of a bool, where true allows steering.
  • XML Example:
    <setting name="driveby_steer_bikes" value="[true]"/>

Toggle driveby mode key

  • Setting name: driveby_toggle_mode
  • Description: Sets the key which will be used to toggle driveby mode.
  • XML Example:
    <setting name="driveby_toggle_mode" value="mouse2"/>

Next driveby weapon key

  • Setting name: driveby_next_weapon
  • Description: Sets the key which will be used to change to the next driveby weapon (if there is one).
  • XML Example:
    <setting name="driveby_next_weapon" value="vehicle_look_right"/>

Previous driveby weapon key

  • Setting name: driveby_prev_weapon
  • Description: Sets the key which will be used to change to the previous driveby weapon (if there is one).
  • XML Example:
    <setting name="driveby_prev_weapon" value="vehicle_look_left"/>

Scripting functions