Author Topic: Damage Rate  (Read 1476 times)

0 Members and 1 Guest are viewing this topic.

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Damage Rate
« on: July 20, 2008, 04:57:35 am »
Script Name: Damage Rate
Script Description: Basically, in an attempt to even out the score in games, this script makes it so that the more kills you accumulate, the less damage each of your bullets does. Or you can make it do the opposite.
Original Author(s): Me
Core Version: The latest one.
Code:
NOT the whole thing (DL it for pete's sake)
Code: [Select]
const
INVERSE = true; // When INVERSE is true, the rate of damage dealt goes down as a person kills more.
RATE = 8; // The speed at which their power changes.
var
PlayerRates: array[1..32] of Integer;

function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer) : integer;
begin
if INVERSE then begin
result := Damage - PlayerRates[Shooter];
end else begin
result := Damage + PlayerRates[Shooter];
end;
end;

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: Damage Rate
« Reply #1 on: July 20, 2008, 09:56:59 am »
hummm nice, it's hard to make a big rating
and it will automaticaly reset each map. GJ
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Damage Rate
« Reply #2 on: July 20, 2008, 04:12:31 pm »
and it will automaticaly reset each map. GJ
no, it keeps going over time.

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: Damage Rate
« Reply #3 on: July 20, 2008, 04:34:55 pm »
ohh ok, but it's hard to make a 6 rate or watever, and that's very close to nothing compared to 150
it's balanced ;)

Date Posted: July 20, 2008, 07:34:12 pm
or it's 6*8? 48 that can be a problem... because you will restore health when hit? wtf?
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade