[OneSync/Server] weaponDamageEvent does not behave correctly on build 2060

Client

Using canary? false
Windows version: not important in this case
System specifications: not important in this case

Server

Operating system: Linux
Artifact version: 2967
IP address: 103.130.144.10
Resources: not important in this case
System specifications: not important in this case

Incident

Summary: I use weapondamage event to stop cheaters troll players with a taser, today after updating to build 2060 (sv_enforceGameBuild 2060) the event does not behave correctly and gives false information

Code:
image

Player shot someone with a taser and debug will print information but weaponType is an invalid hash and damageType is always zero which means unknown or invalid

cfx> 1  {
["silenced"] = false,
["overrideDefaultDamage"] = true,
["willKill"] = false,
["f135"] = false,
["damageType"] = 0,
["tyreIndex"] = 0,
["f48"] = 2944,
["f116"] = 0,
["f80_1"] = false,
["weaponType"] = 1259094,
["f68"] = 0,
["hitWeaponAmmoAttachment"] = false,
["f112"] = false,
["damageTime"] = 0,
["f64"] = 0,
["hasVehicleData"] = false,
["f125"] = false,
["f104"] = 0,
["f120"] = 0,
["weaponDamage"] = 32,
["f100"] = 0,
["f133"] = false,
["suspensionIndex"] = 0,
["hitGlobalId"] = 352,
["f112_1"] = 0,
["f56"] = 15168,
["f52"] = 3328,
["hitComponent"] = 0,
["hitEntityWeapon"] = true,
["f72"] = 0,
["damageFlags"] = 1147648,
["parentGlobalId"] = 1024,
}
2       {
["silenced"] = true,
["overrideDefaultDamage"] = false,
["willKill"] = false,
["f135"] = false,
["damageType"] = 0,
["tyreIndex"] = 0,
["f48"] = 0,
["f116"] = 0,
["f80_1"] = false,
["weaponType"] = 204472485,
["f68"] = 0,
["hitWeaponAmmoAttachment"] = false,
["f112"] = false,
["damageTime"] = 0,
["f64"] = 0,
["hasVehicleData"] = false,
["f125"] = false,
["f104"] = 0,
["f120"] = 0,
["weaponDamage"] = 0,
["f100"] = 0,
["f133"] = false,
["suspensionIndex"] = 0,
["hitGlobalId"] = 0,
["f112_1"] = 0,
["f56"] = 0,
["f52"] = 0,
["hitComponent"] = 0,
["hitEntityWeapon"] = true,
["f72"] = 0,
["damageFlags"] = 0,
["parentGlobalId"] = 0,
}
3 Likes

@nta +

1 Like

After several tests, I achieved my goal which was stopping kids by damageFlags but this issue still remains on build 2060 weaponType is an invalid hash and damageType is always 0 but at least damageFlags are correct

1 Like
1 Like

what does sender return?

1 Like