Plugin interface - penalties

Discussion in 'Wish Lists' started by Lazza, Apr 1, 2017.

  1. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600
    Please pass penalties through plugins, so they can modify/add as desired.

    A function that is called when penalties are going to be applied, and called periodically otherwise (same frequency as UpdateScoring() would be plenty), with pending penalties passed in as an array of penalty-definition structs, and a few blank ones stuck on the end for plugin additions.

    Currently we can detect a penalty by using the results stream, and attempt to reverse them or apply new ones via the messaging option, but reversing a dodgy penalty shows the penalty and the reversal on the message center for everyone to see, which looks messy.

    Being able to verify, cancel, modify, or add penalties before they're applied would be a good addition to the interface.


    Slightly separately, having some of the rules interface functions called periodically instead of only at specific times would allow more flexibility for plugins. For example, being able to change a vehicle's 'scoring' status at any time, instead of only when they join. Let plugins work out when they need to do stuff.
     

Share This Page