Ulysses

General => Developers Corner => Topic started by: WispySkies on November 11, 2015, 05:30:14 PM

Title: ULib.getExclusive
Post by: WispySkies on November 11, 2015, 05:30:14 PM
After starting lua development I've seen something like ULib.getExclusive in some code. What is is? (I probably sound stupid D:)
Title: Re: ULib.getExclusive
Post by: Megiddo on November 11, 2015, 06:14:45 PM
It's basically a way of making sure that conflicting actions are not performed on a player. For example, ragdolling someone and then mauling them doesn't make sense, and setting an "exclusive" mode is a way of taking care of that.
Title: Re: ULib.getExclusive
Post by: JamminR on November 11, 2015, 06:17:18 PM
There is no 'ULib' library function for the exclusivity. Only a ulx function.
https://github.com/Nayruden/Ulysses/blob/7051b70538080f8bf1238ca1363766369125540e/ulx/lua/ulx/lib.lua#L3
getExclusive checks for target players that have been setExclusive.
setExclusive basically flags a player object with a flag, basically stating 'big punishment, don't do any other'
Maul. Jail, to name but very few.
Stuff you wouldn't want to interrupt with other punishments.

EDIT - *blink*
Megiddo sniped me.
Wait...he's HERE!
Title: Re: ULib.getExclusive
Post by: Megiddo on November 12, 2015, 03:12:56 AM
I breathe (and post) but once a blue moon. ;)
Title: Re: ULib.getExclusive
Post by: WispySkies on November 12, 2015, 01:30:32 PM
(http://i.imgur.com/C45RdmM.jpg)