First, this is how it looks:
[img]http://imgur.com/rKAU1c0.jpg[/img]
And here is how you get it:
1. In your weapon code add this line
Code: Select all
var config float ShowChance;2. Next in your weapon code find the section where damage is dealt. For example in my coop rifle I have this section:
Code: Select all
function ProcessTraceHit(Actor Other, Vector HitLocation, Vector HitNormal, Vector X, Vector Y, Vector Z)
{
else if (Other!=None && Other!=Self)
{
if (Other.bIsPawn && (instigator.IsA('PlayerPawn') || (instigator.skill > 1)) && Pawn(Other).IsHeadShot(HitLocation,X))
{
Other.TakeDamage(3000, Pawn(Owner), HitLocation, 35000 * X, 'decapitated');
Code: Select all
chancehit = FRand();
if (chancehit