19.02.2015, 10:10
Yeah I should change the documentation about the inclusion. I think the only part of YSI you need to include before is y_hooks - including some other parts might cause undefined behavior, since YSI wouldn't get data from the hooked natives.
The reason YSI cause errors is I don't forward OnPlayerGive/TakeDamage so people will not use them. I realize now I could do that in a very clever way by allowing only YSI to hook the callback.
As discussed, the custom fall damage is work in progress and should be considered experimental.
The last few days and coming couple of weeks are very busy for me. I'll try to test and merge your pull request soon.
Development of this have not stopped, just paused, as I've been too busy. Here are some things that are planned:
The reason YSI cause errors is I don't forward OnPlayerGive/TakeDamage so people will not use them. I realize now I could do that in a very clever way by allowing only YSI to hook the callback.
As discussed, the custom fall damage is work in progress and should be considered experimental.
The last few days and coming couple of weeks are very busy for me. I'll try to test and merge your pull request soon.
Development of this have not stopped, just paused, as I've been too busy. Here are some things that are planned:
- Improved custom fall damage. Water splash damage, falling out of or jumping off vehicles.
- Customize weapon stunning. Make sniper stunning server-side synced to get rid of player warping and anti-stun cheats.
- Make it possible to slow down passenger-DB (would be really nice for deagle, for example)
- Add the same damage customizing to vehicle (vehicle health hacks will be impossible)
- Improve vehicle ram damage (fix instant-death bug and make the damage based on speed)
pawn Код:
public OnPlayerDamage(playerid, &Float:amount, &issuerid, &weapon, &bodypart) {
// make ram damage based on how fast you're going
if (weapon == WEAPON_VEHICLE && issuerid != INVALID_PLAYER_ID) {
new Float:vx, Float:vy, Float:vz;
GetVehicleVelocity(GetPlayerVehicleID(issuerid), vx, vy, vz);
amount = 30.0 *(vx*vx+vy*vy+vz*vz);
}
return 1;
}