Scrap heli killing with crushing.

Nivex, is there any way to prevent the scrap helicopter from killing other players by crushing them? Some players use this to harm others.

is it just scrap heli? what of attack heli, mini, chinook, etc

I tested all of them including the balloon and none of them kills when crushed like the scrap heli does.

ok, will prevent it in the next update then

nivex

ok, will prevent it in the next update then

Thanks for the nivex update, you're a really hardworking guy solving problems. Other developers should use your dedication as an example to run their projects.

nivex

ok, will prevent it in the next update then

It was reported to me that scrap is still killing people, it doesn't kill people sleeping, but it kills people online and awake. I tested it and it really happened. The result of the death in the log shows that it was the player driving who killed, not the scrap transporter.

"Block Scrap Heli Damage": true,

if (hitInfo.Initiator is BasePlayer && hitInfo.WeaponPrefab is ScrapTransportHelicopter)

change to

if (hitInfo.Initiator is BasePlayer driver && (hitInfo.WeaponPrefab is ScrapTransportHelicopter || driver.GetMountedVehicle() is ScrapTransportHelicopter))

make sure to copy the entire line and try that

nivex
if (hitInfo.Initiator is BasePlayer && hitInfo.WeaponPrefab is ScrapTransportHelicopter)

change to

if (hitInfo.Initiator is BasePlayer driver && (hitInfo.WeaponPrefab is ScrapTransportHelicopter || driver.GetMountedVehicle() is ScrapTransportHelicopter))

make sure to copy the entire line and try that

I tested it and it worked, now the scrap is no longer killing players awake or asleep. Thank you so much nivex, you are the best!

no problem

nivex

no problem

Nivex, I tested it and players once again died from being crushed by the scrap transporter while asleep and awake.

 

make sure you enabled Block Scrap Heli Damage in the config. you will have to tell me exactly how it's happening because it shouldn't be possible.

nivex

make sure you enabled Block Scrap Heli Damage in the config. you will have to tell me exactly how it's happening because it shouldn't be possible.

"Block Scrap Heli Damage": true,

This is true, could it be that facepunch didn't change something?
If you want to reproduce, it happens when you land on someone who is awake or sleeping.

The cause of death shows the person who was driving the scrap transporter.

V.O.I.D[76561199*******] was killed by [Mestre] Darth_Kintry[76561******] at (1090.34, 0.35, 1670.20)

ok i'll take a look when i can. busy with moving this week though so too tired to by the time i log in

DamageType.Fall prevent returns NULL, need to change blocks placements

I pathed the plugin

thank you. updated