PadWorld-Entertainment / worldofpadman

World of PADMAN game repository
https://worldofpadman.net
Other
38 stars 8 forks source link

Restore and adjust player event "denied" #186

Closed kai-li-wop closed 1 year ago

kai-li-wop commented 1 year ago

The player event "denied" is deactivated in World of Padman and the code has been partially removed. Denied is awarded as an anti-reward, for example, when a player has not won a race for a powerup and it has been snatched from under his nose. The Impressive reward is misused in World of Padman and instead of a medal with announcement only the gleeful laughter of the player sounds hehe1/hehe2. This approach can also be used for the denied event. If a player doesn't get a powerup any more because another player snatched it away, the laughter of the other player should be heard. In this respect, no new announcer sound is needed here.

ToDo "denied"

Implementation: Instead of restoring the vQ3 code to play a global "denied" sound, the person who picks up a powerup, such as PadPower, now laughs at other opponents who wanted to pick up the same powerup but weren't fast enough. This happens when there is at least one enemy player within 192 units range of the item who is facing the item and can see it directly. If this applies to more than one opponent, only one laugh is made. It works only with powerups, not holdables or anything else. Also does not apply to teammates.

3aTmE commented 1 year ago

Tried to trigger the player event "denied" with an local game with 2 clients on wop_anteroom.

Worked like it should!

I also tried different Characters.

The two I've tested so far worked like intended (Padman / Fatpad )