Author Topic: Critical Hit v0.2a & v0.5e  (Read 1861 times)

0 Members and 1 Guest are viewing this topic.

Offline zop

  • Major
  • *
  • Posts: 81
Critical Hit v0.2a & v0.5e
« on: September 10, 2008, 08:09:41 am »
Script Name:Critical Hit
Script Description:Give different chance rate for each weapon to make more damage.
Original Author(s):Zop
Core Version:2.6.3
Credits:Nova credits to Avarax.
Code:Download and read if you need. ^_^

How it work:
-Critical hit rate base on weapon Damage and FireInterval in weapon.ini.
-Damage bigger, rate smaller. FireInterval bigger, rate bigger.
-I take m79 and Barret off because these 2 weapons already strong enough.
-Player have to take an any default secondary weapon with him. That make sure counts with currect weapon.
-This is not really a serious counting work. Just for fun. ^_^

20081005-02_update:v0.5e
-Fixed level bugs.

20081005-01_update:v0.5d
-Fixed temp level and skill level bug.
-Fixed stupid message.

20081004-02_update:v0.5c
-Add when player make a critical hit, there is a flame show on him.

20081004-01_update:v0.5b
-When player kills an enemy by barret, he will get a chance make that enemy's dead body do an arrow nova to hurt enemy's team.

20080930-02_update:v0.5a
-Fixed div zero problem.

20080930-01_update:v0.5
-When player with m79 was killed by enemy, he will get a chance to throw some grenades.
-When player with barret was killed by enemy, he will get a chance to steal bullets from enemies nearby.
-Optimized codes.


20080916-01_update:v0.4a
-Fixed it will not change rate if level the same.

20080915-02_update:v0.4
-Add when player return flag which was grabbed, player get 3 points for critical hit level.
-Add when player get flag with him, he will get a temporary level bonus.

20080915-01_update:v0.3d
-Made codes clear.

20080914-04_update:v0.3c
-Add show how many kills needed to next level.

20080914-03_update:v0.3b
-Fixed score level problem.

20080914-02_update:v0.3a
-Fixed kill counting problem.

20080914-01_update:v0.3
This version is for CTF with Level up & down.
-Everyone start with Critical Hit Level 0. That means no critical hit bonus at begnning.
-When flag score, team members will up a Critical Hit level.
-When flag was scored, team members will down a Critical Hit level.
-Up or down Critical Hit level is up or down the Critical Hit rate. (you know what I mean :P)
-Every 10 kills is a level range. 1 ~ 10, 11 ~ 20,... etc
Every time scored will add 10 kills to all team members.
So, at the first time scored, you got 10 kill points.
Then if you got killed, it down to 9. So you down level to level 0, it's in 1 ~ 10.

Notes:
I change some rates for more balance.(I guess)

20080911-01_update:v0.2a
-Fixed 1 random number bug.
« Last Edit: October 05, 2008, 01:53:01 am by zop »

http://122.116.167.31:23238:23238/galavela/?inc=player&name=%5BTomato+Bird%5D+Cibo[/size=1]

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Critical Hit v0.2
« Reply #1 on: September 10, 2008, 08:43:53 pm »
for those who wish for a much more simple script...
Code: [Select]
function OnPlayerDamage(Victim, Shooter: byte; Damage: integer) : integer;
begin
  if (Random(1, 10) = 1) then Damage:= 2 * Damage;
  Result := Damage;
end;

zop's a lot cooler though  :P

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: Critical Hit v0.2a
« Reply #2 on: September 12, 2008, 07:54:02 pm »
omg, this is almost like knowing the shooter's weapon. That's very cool man!
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline zop

  • Major
  • *
  • Posts: 81
Re: Critical Hit v0.2a & v0.5
« Reply #3 on: September 29, 2008, 12:35:26 pm »
I give some skills to m79 and barret.
These are still by chances and levels.
Have fun. ^_^

http://122.116.167.31:23238:23238/galavela/?inc=player&name=%5BTomato+Bird%5D+Cibo[/size=1]

Offline Ray

  • Major
  • *
  • Posts: 51
  • PANNED
Re: Critical Hit v0.2a & v0.5a & v0.5b
« Reply #4 on: October 01, 2008, 04:08:37 pm »
Soldat TF2 anyone?
<.<
Paint.net > Gimp Paint.net > Gimp Paint.net > Gimp Paint.net > Gimp
Paint.net > Gimp Paint.net > Gimp Paint.net > Gimp Paint.net > Gimp
Paint.net > Gimp Paint.net > Gimp Paint.net > Gimp Paint.net > Gimp
Paint.net > Gimp Paint.net > Gimp Paint.net > Gimp Paint.net > Gimp