SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 15/02/2015, 05:05 PM   #1
Slice
High-roller
 
Join Date: Mar 2008
Location: Sweden
Posts: 1,896
Reputation: 1590
Spray weapon-config.inc - Damage system with many features

This is an include that provides a more consistent and responsive damage system with many new features.

It's pretty much plug-and-play if you don't have any filterscripts that interfere with the health or death events.

Demo server

Code:
HostName: Slice's test server
Address:  ulclan.com:1234
Players:  0 / 100
Ping:     42
Mode:     Slice's test gm
Map:      San Andreas
Features
  • Server-side health
    • Impossible to use health hacks on lagcomp mode
    • Any type of damage can be modified/prevented, even falling 1000m from the sky
    • Vending machines are controlled server-side (buildings removed and objects created)
    • Paused players can be killed (with death animations) and their HP bars always show the correct values
  • Destroy vehicles with a passenger but no driver
  • Custom falling damage (optional)
    • Adjust the damage and at which speed a player will die
  • Sounds and on-screen TextDraw indicators of damage given/taken
    • Also shows another player's damage feed when spectating
  • New weapon types detected:
    • WEAPON_PISTOLWHIP - When you punch someone with a gun
    • WEAPON_VEHICLE_M4 - Vehicles with M4 guns (e.g. Rustler)
    • WEAPON_VEHICLE_MINIGUN - Vehicles with miniguns (e.g. Hunter)
    • WEAPON_HELIBLADES - Helikill
    • WEAPON_CARPARK - When you park your car on someone
  • Extensive sanity checking on shots:
    • Modified weapon.dat is automatically detected
    • Shot vector, player distance, and much more is examined
    • A callback is invoked for each so-called "rejected hit" so that the player is informed. A few of these are:
      • Inflicting damage when already dead (due to lag)
      • Hit a player too far from the shot hit position (due to severe lag or cheating)
      • Hitting/shooting too fast (due to severe lag or cheating)
  • Modify every weapon's damage amount
    • To a single value
    • To multiple values depending on the shot distance
    • With custom logic in a callback, for example:
      • Increase damage for headshots
      • Increase/lower damage for combos
      • Lower damage for c-bug rapid fire
  • Knife sync fixed in both lagcomp and no-lagcomp
  • New death atnimations and respawn logic
    • Customize respawn time globally and for each death
    • Fully customizable animations, with a nice set of defaults
    • Different animation depending on weapon/bodypart, for example:
      • Headshots make you fall back with both hands in your face
      • Shotgun kills make you fly backward like in GTA:VC (unless killed from behind)

Download

GitHub: https://github.com/oscar-broman/samp-weapon-config
Slice is offline   Reply With Quote
Old 15/02/2015, 05:12 PM   #2
Skully82
Big Clucker
 
Skully82's Avatar
 
Join Date: Apr 2014
Location: Egypt
Posts: 169
Reputation: 22
Default Re: weapon-config.inc - Damage system with many features

Another Awesome Relases Of You,Slice!
Amazing work,Well done
__________________
Playing Samp Since 2009
Skully82 is offline   Reply With Quote
Old 15/02/2015, 05:18 PM   #3
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,493
Reputation: 439
Default Re: weapon-config.inc - Damage system with many features

Second. Great release! Hopefully this will end the era of health hacking in SA-MP.
Abagail is offline   Reply With Quote
Old 15/02/2015, 05:27 PM   #4
Adoniiz
Gangsta
 
Join Date: Mar 2010
Location: Wormhole
Posts: 832
Reputation: 57
Default Respuesta: weapon-config.inc - Damage system with many features

Nice release, Slice. I like the anti hh. thanks
__________________
Adoniiz is offline   Reply With Quote
Old 15/02/2015, 05:39 PM   #5
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 2,045
Reputation: 297
Default Re: weapon-config.inc - Damage system with many features

Looks nice
__________________
QUITED SA-MP
Follow me on Instagram @brandonvanommen
Admigo is offline   Reply With Quote
Old 15/02/2015, 05:46 PM   #6
Ritzy2K
High-roller
 
Ritzy2K's Avatar
 
Join Date: Jun 2014
Location: India
Posts: 1,681
Reputation: 168
Default Re: weapon-config.inc - Damage system with many features

Nice... its gonna help a lot specially to tdm dm...and cnr..
Ritzy2K is offline   Reply With Quote
Old 15/02/2015, 06:13 PM   #7
GiamPy.
Huge Clucker
 
GiamPy.'s Avatar
 
Join Date: Apr 2011
Location: Ravenna, Italy
Posts: 224
Reputation: 16
Default Re: weapon-config.inc - Damage system with many features

I like it.
GiamPy. is offline   Reply With Quote
Old 15/02/2015, 06:24 PM   #8
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,855
Reputation: 602
Default Re: weapon-config.inc - Damage system with many features

Great! Love it!
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Old 15/02/2015, 06:25 PM   #9
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,493
Reputation: 439
Default Re: weapon-config.inc - Damage system with many features

That is some very complex, and lengthy code. How long did it take you to write the include?
Abagail is offline   Reply With Quote
Old 15/02/2015, 07:01 PM   #10
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,855
Reputation: 602
Default Re: weapon-config.inc - Damage system with many features

Is SKY compiled? Where are the binaries... I can't build right now...
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with weapon damage system thanks JessThompson Scripting Help 7 15/07/2014 01:01 PM
[FilterScript] New Weapon Damage System [0.3z] RenSoprano Filterscripts 6 17/01/2014 06:03 AM
[FilterScript] Weapon damage system [v1.0] Darnell Filterscripts 74 21/10/2013 08:53 PM
[FilterScript] Weapon Damage System Donicans Filterscripts 14 06/11/2012 01:22 PM
[FilterScript] Realistic Weapon Damage And Death System [V1.0][New Cool FS] Nirzor Filterscripts 6 08/08/2012 05:34 AM


All times are GMT. The time now is 11:04 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.