EXILED
EXILED copied to clipboard
Added `Scp3114::Slapped` Event
Added Scp3114 Slapped Event
We prefer to use Hurt method cuz it's more common and covering all such events. I don't really think that this is useful
@VALERA771, I saw that Scp939 has a Clawed event. That is why i created this event. And it is for the helpful for new developers because it is much more spesific for just Slapping. Hurt method can contains all type of hurting that Scp3114 can do.
@VALERA771, I saw that Scp939 has a Clawed event. That is why i created this event. And it is for the helpful for new developers because it is much more spesific for just Slapping. Hurt method can contains all type of hurting that Scp3114 can do.
Clawed event is also firied when you claws "air" (aka no target). As far as I can see, your event won't work like this
@VALERA771, You are wrong the event i did is firing every time Scp3114 tries to Slap. This contains air, targets and every slapping action.
Okay, then yeah
@louis1706, I changed the index of the method and fixed the orders of the using lines.
@louis1706, I changed the index of the method and fixed the orders of the using lines.
i thinks this place would be better to put the code
SlappedEventArgs ev = new(Player.Get(Owner), _syncAttack);
Handlers.Scp3114.OnSlapped(ev)
float num = this._humeShield.CurValue + ev.HumeShieldReward;
this._humeShield.CurValue = Mathf.Min(num, this._humeShield.MaxValue);
you can use the const to take the HumeShield value