SA-MP Forums

SA-MP Forums (
-   Includes (
-   -   [Include] - Damage system with many features (

Slice 15/02/2015 05:05 PM - 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


HostName: Slice's test server
Players:  0 / 100
Ping:    42
Mode:    Slice's test gm
Map:      San Andreas

  • 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)



Skully82 15/02/2015 05:12 PM

Re: - Damage system with many features
Another Awesome Relases Of You,Slice!
Amazing work,Well done

Abagail 15/02/2015 05:18 PM

Re: - Damage system with many features
Second. Great release! Hopefully this will end the era of health hacking in SA-MP.

Adoniiz 15/02/2015 05:27 PM

Respuesta: - Damage system with many features
Nice release, Slice. I like the anti hh. thanks

Admigo 15/02/2015 05:39 PM

Re: - Damage system with many features
Looks nice;)

Ritzy2K 15/02/2015 05:46 PM

Re: - Damage system with many features
Nice... :D its gonna help a lot :) specially to tdm dm...and cnr..

GiamPy. 15/02/2015 06:13 PM

Re: - Damage system with many features
I like it.

Crayder 15/02/2015 06:24 PM

Re: - Damage system with many features
Great! Love it!

Abagail 15/02/2015 06:25 PM

Re: - Damage system with many features
That is some very complex, and lengthy code. How long did it take you to write the include?

Crayder 15/02/2015 07:01 PM

Re: - Damage system with many features
Is SKY compiled? Where are the binaries... I can't build right now...

All times are GMT. The time now is 10:12 PM.

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