IcyStarFrost / lambda-admin-module

A module for Lambda Players that allows Lambdas to become admins and enforce certain rules
2 stars 0 forks source link

Uno Reverse Card SWEP Support #1

Open Peekofwar opened 1 year ago

Peekofwar commented 1 year ago

The Admins don't seem to understand that damage dealt via the UNO reverse card SWEP is caused by the attacker, not the person who is technically dealing the damage. Thus they attribute the attack to the player, and not the Lambda bot that's actually attacking the player.

UNO Reverse SWEP https://steamcommunity.com/sharedfiles/filedetails/?id=2202345999 weapon_unoreverse

Hold the UNO reverse card SWEP and let a lambda bot attack you with an admin Lambda bot nearby. They Admin bot will get upset with you because while you weren't the one actually attacking, the damage that would normally be dealt to you is sent from you to the attacker.

Here's a video where I hold an UNO reverse card, a Lambda attacks me, and the admin warns me for attacking the Lambda. (And yes, the lambda did play a falling sound when sprinting up the stairs... No idea why they do that)

https://user-images.githubusercontent.com/10189526/226695507-f1cf464d-ebdc-4917-8cf5-02de5f39ce58.mp4

IcyStarFrost commented 1 year ago

Admins do this because in code the SWEP is setting you as the attacker. It is not the Admin's fault for warning you and not the actual attacker. So in this case there is nothing the admin can do to stop the actual attacker because you are set as the attacker

Peekofwar commented 1 year ago

Admins do this because in code the SWEP is setting you as the attacker. It is not the Admin's fault for warning you and not the actual attacker. So in this case there is nothing the admin can do to stop the actual attacker because you are set as the attacker

That's why I didn't call this a bug. What they would probably need to do is add a special condition that checks if the attacker is using a weapon_unoreverse and then mark the one damaged as the attacker.