Instead of hearing 1 sound from each type (hit, receive, mini), there's more than 1 sound to play, and it's entirely random.
Comes with prefs for enabling random crits, minicrits or normal crits, and the chance for them to occur when the user is damaged.
There are special functions to use in future code to check if these functions exist:
- GameConnection::doMiniCritHitSound(%client)
- Player::doMiniCritHitSound(%player)
- GameConnection::doCritHitSound(%client)
- Player::doCritHitSound(%player)
- GameConnection::doCritReceiveSound(%client)
- Player::doCritReceiveSound(%player)
In reality you only should use these 2 functions below for most stuff (these are events too)
Player::doCritHitEmote(%player)
Player::doMiniCritHitEmote(%player)
Example of crits used in another part of code, which basically emotes the image and the sound, and sends the client the receive sound:
%obj.doCritReceiveSound();
%obj.doCritHitEmote();Download and enjoy (Emote_Critical)