UncreatedStaff / UncreatedWarfare

Core gameplay functionality of Uncreated Warfare Server for Unturned.
Other
11 stars 1 forks source link

Insurgency Cache Damage Filter #267

Open AngelAbov3 opened 6 months ago

AngelAbov3 commented 6 months ago

Can't find the original discussion but this was deemed doable I think.

Insurgency Damage Filter.

Can do Damage.

Can't do Damage.

realtrollman2319 commented 6 months ago

a way you can do this thing is:

Guid mortarGunGuid = new Guid("d6424d034309417dbc5f17814af905a8");
if (pl.player.equipment.asset.GUID == mortarGunGuid)
{
    shouldAllow = false;
    return;
}

inside EventFunctions' OnBarricadeDamaged method

DanielWillett commented 6 months ago

That doesn't work because the player can get off the mortar in between the time it's launched and hits. We have a way to track projectiles origins which we use for death messages.

realtrollman2319 commented 6 months ago

I see, thanks for letting me know it won't work

That doesn't work because the player can get off the mortar in between the time it's launched and hits. We have a way to track projectiles origins which we use for death messages.