Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Releases Libraries [Library] Calculate accuracy of individual shotgun shots

 
  • 0 Vote(s) - 0 Average
Library Calculate accuracy of individual shotgun shots
Markski
Offline

Burgershot Clerk

Posts: 127
Threads: 6
Joined: Apr 2019
Reputation: 5
Location: La Plata, Argentina
#1
2019-04-17, 02:05 PM (This post was last modified: 2019-04-17, 02:06 PM by Markski.)
Very simple library based on damage measurement, all it does is calculate how many pellets of a shotgun shot hit the player, and returns the amount of pellets that hit or the percentage, depending on parameters. Might be useful for accuracy measurements, and maybe you can implement some interesting tools if coupled with distance measurement and logging..

Consists of only two functions, one for Normal or Sawnoff shotgun and one for Combat shotgun. The functions should be called from within your OnPlayerGiveDamage, if the correct weaponid hits.

Configuration

None required.

Installation

Just #include the file into your script.

Download
Website
Salesman
Offline

Burgershot Member
Posts: 21
Threads: 2
Joined: Apr 2019
Reputation: 0
#2
2019-04-17, 02:08 PM
Should be usefull for somethings, nice addition!
BigETI
Offline

open.mp Developer

Posts: 107
Threads: 5
Joined: Feb 2019
Reputation: 12
Location: Germany
#3
2019-04-18, 10:57 AM
Make a sampctl package out of that, please.
[Image: github-samp-icon.png]
Markski
Offline

Burgershot Clerk

Posts: 127
Threads: 6
Joined: Apr 2019
Reputation: 5
Location: La Plata, Argentina
#4
2019-04-18, 11:55 AM
(2019-04-18, 10:57 AM)BigETI Wrote: Make a sampctl package out of that, please.

Sorry, I do not use sampctl as it is not practical with my current development practices. It's just a single drop-in include file with no configuration anyways.
Website
kristo
Offline

Burgershot Member
Posts: 47
Threads: 10
Joined: Feb 2019
Reputation: 7
Location: Estonia
#5
2019-04-19, 12:13 AM (This post was last modified: 2019-04-19, 12:15 AM by kristo.)
(2019-04-18, 11:55 AM)Markski Wrote:
(2019-04-18, 10:57 AM)BigETI Wrote: Make a sampctl package out of that, please.

Sorry, I do not use sampctl as it is not practical with my current development practices. It's just a single drop-in include file with no configuration anyways.

Could you at least make it a git repository so it could be downloaded with sampctl? Single-file libraries don't technically need a pawn.json file, but it's a good practice to have one anyway. Someone else could add it if you don't use it yourself.
RogueDrifter
Offline

Burgershot Member
Posts: 16
Threads: 6
Joined: Apr 2019
Reputation: 1
Location: Canada
#6
2019-04-20, 12:47 PM
You're a genius, i love this
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode