The last few months we have been working on integrating a new damage system. This is something that we've tried a couple of times already, but we always ran into a lot of problems making it work with all of our scripts and systems, and put it aside. Now we've finally found the issue, and sorted it out to make it work.
The damage system we've implemented is called weapon-config
(Click for more information). What it does is basically make the health server sided instead of client sided. That means the health and armour you'll see from now on, isn't your real health, but what the server thinks your health is. Basically, you will never actually die or lose health, it's just simulated by the server. If you're using visual mods, such as a custom health indicator, you might notice some 'weird' behaviour with it, but don't worry about that. The new health bar is the only thing that counts from now on.
This damage system introduces a lot of advantages and fixes. First of all, having server sided health, means that health or armour hacks are no longer possible (they won't have any effect). The same goes for any type of damage mods. Being sniper bugged is also not possible anymore. Paused players can now be damaged and killed as well. Any type of wrong shooting data will be rejected by the server automatically (such as out of range shots, shooting too fast, ...). Overall it should just handle damage a lot better than the normal SAMP system.
This did mean we had to change some things in order to make this work. The most notable change will be the pickups. They used to be client sided, but now that's not possible anymore. In order to make them work correctly, we can't 'hide' them anymore after you pick them up (pickups are global, they can't be hidden for just 1 player). Simulating the respawning as it used to (so respawning after moving away a certain distance), is also not possible, since that will require too many checks. So, the solution we have now is putting a timer on it. You can pick up health or armour again after 3 minutes (this is per pickup, so going to another pickup will work).
You'll also notice your hitsounds might have changed, you can update it with /hs (you can turn on taken and given hitsounds now, team hitsounds are no longer possible). For the taken hitsounds, be aware that it's a very subtle sound (it's not broken). We've also added an indicator for spawn protection, as the health will no longer be flashing.
We've been testing it extensively, but there still might be issues or weird things popping up. If you notice a bug or something else, don't hesitate to make a bug report. I know this might not seem like a big update (behind the screens it was), but we hope this will result in a much better fighting experience.Changes (/updates):
- Added weapon-config: (https://forum.sa-mp.com/showthread.php?t=563387)
- Changed health & armour pickup behaviour (each pickup has a 3 minute cooldown now)
- Changed spawn protection behaviour (added indicator in the top right, health will no longer be flashing)
- Changed /hs (4 options now: 1. All off - 2. Given on - 3. Taken on - 4. All on)
- Added /togglefeed (toggles the damage feed on and off)
- Added messages on spawning weapons
- Fixed AC bug when spawning weapons