samp.directory
← Scripts and libraries

Southclaws/samp-weapon-data

With this library you can finely tune weapon damage based on distance. Using min/max range values, a weapon's damage varies depending on the distance between the shooter and the target.

Library★ 15updated Mar 2019No licencePawnsampctlArchived
Open on GitHub

The author has archived this repository, so it is no longer maintained.

This repository has no licence file. It is public to read, but that alone does not give permission to reuse it.

Install with sampctl

sampctl package install Southclaws/samp-weapon-data

Run this in your project folder. sampctl downloads the package and what it depends on.

Try it in the Pawn compiler →

Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.

Depends on 1 package

README.md

weapon-data.inc

With this library you can finely tune weapon damage based on distance. Using min/max range values, a weapon's damage varies depending on the distance between the shooter and the target.

The values below for damage and magsize are NOT real game data values but custom values based on feedback about weapon balancing from the Scavenge and Survive community. All other data is factual.

Installation

Simply install to your project:

sampctl package install Southclaws/samp-weapon-data

Include in your code and begin using the library:

#include <weapon-data>

Usage

Check source for documentation, all functions are commented.

Testing

To test, simply run the package:

sampctl package run

And connect to localhost:7777 to test.

includelibrarysa-mp

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing

Southclaws/samp-weapon-data: SA-MP Library | samp.directory