0 Members and 1 Guest are viewing this topic.
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer);begin if GetPlayerStat(Shooter, 'Primary') = *WEAPON NUMBER* then DoDamage(Victim,4000); SetScore(Shooter,GetPlayerStat(Shooter,'Kills')+1);end;
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer);begin if GetPlayerStat(Shooter, 'Primary') = *WEAPON 1 NUMBER* then DoDamage(Victim,4000); SetScore(Shooter,GetPlayerStat(Shooter,'Kills')+1); if GetPlayerStat(Shooter, 'Primary') = *WEAPON 2 NUMBER* then DoDamage(Victim,4000); SetScore(Shooter,GetPlayerStat(Shooter,'Kills')+1);{etc... etc...}end;
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer);begin if GetPlayerStat(Shooter, 'Primary') = *WEAPON NUMBER* then Damage := 9001;end;
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer);begin if GetPlayerStat(Shooter, 'Primary') = *WEAPON NUMBER* then Result := 9001;end;
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer);begin if (GetPlayerStat(Shooter, 'Primary') = 12) and (GetPlayerStat(Victim, 'Health') < 10) then Result := 10;end;
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer);begin Result := Damage; if Victim <> Shooter then if (GetPlayerStat(Shooter, 'Primary') = 12) and (GetPlayerStat(Victim, 'Health') < 10) then Result := 10;end;
I've been trying to mod gun projectiles to arrows (from the rambo bow )
varuses_arrow: array [1..16] of boolean;//...function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer);begin Result := Damage; if Victim <> Shooter then if (uses_arrow[GetPlayerStat(Shooter, 'Primary')]) and (GetPlayerStat(Victim, 'Health') < 10) then Result := 10;end;//...
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer);
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer)
: Integer;