Script Name: Posthumous Detonation
Script Description: Player after death can throw a grenade.
Version: 1.0.1
Author: dominikkk26 new version
PMG| DonEvolaraoCompile Test: PassedCore Version: 2.7.7
Download: Attachment! Click
here to download the latest version.
Full Description: color = $FFF8F35A;
GroundStand = false; // Does the player must stand on the ground? [True|False]
Messages1 = true; // Were you able to throw away a grenade just before his death.
Messages2 = false; // Do not managed to throw a grenade.
ProbabilityFactor = 20; // Probability factor - The bigger the smaller the probability of throwing grenade.
// By setting 1, player has a 100% chance of throwing grenade
When a player dies can throw a grenade after death. The probability of a grenade thrown is dependent on the amount of kills.
Posthumous Detonation 1.0.1:- Fixed: The new system of probability:
function LosujTF(ID: byte): boolean;
var losuj, cd: integer;
begin
cd := (ProbabilityFactor-GetPlayerStat(ID,'kills'));
losuj:=random(1,iif(cd > 0,cd,1));
if (losuj = 1) then Result:=true else Result:=false;
end;
Probability can edit in script: ProbabilityFactor.