Raised This Month: $100 Target: $400
 25% 

[CS1.6|CZ] Bullet Damage with Ranking 3.0.2 [07-12-12][ML 07-12-12]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Statistical        Approver:   Hawk552 (427)
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 12-20-2009 , 23:19   [CS1.6|CZ] Bullet Damage with Ranking 3.0.2 [07-12-12][ML 07-12-12]
Reply With Quote #1

Bullet Damage with Ranking v3.0.2


For the Day of Defeat 1.3 version click here.

What's new?

Code:
+ Added feature or noticeable improvement
- Bug fix or something removed
* Changed or Information
! Important - Take note!

* v3.0.2: (12th Jul 2012)
   ! FPS drop with HUD Sync Objects
   ! Unique crash on private data
   - Records/configs not being saved on windows (hopefully)
Description:
Display single, multiple, grenade or take Damage via Hud message.
Can give a Chat announce, if you score a new weapon/personal record.
The Chat command /bd show up a menu to configuration your bd.

Plugin Features:
- Support for multiple languages
- Support Lan Server
- Support FFA (Free For All) server
- Support Zombie Plague 4.3 (look Plugin Customization section)
- Support Zombie Plague Advance 1.6 (look Plugin Customization section)
- Player and admin menu
- Records are stored by Steam ID
- Only authorized Steam players can made records
- HUD-Damage indicator can distinguish whether the shot was visible or behind a wall
- Better settings on the bulletdamage.cfg
- Server admins can reset all the records about a command or only a certain weapon record (bd_reset "argument")
- The time of the weapons firing rate is adjustable, for the calculation of the record task (look Plugin Customization section)
- And much more...

Requirements:
Mods: Counter-Strike 1.6 or Condition Zero
AMXX: Version 1.8.0 or later
Module: cstrike, fakemeta, hamsandwich


Commands:
say: /bd - open bd menu
con: bd_reset "argument" - look bd_reset.txt for all possible bd_reset commands!

Cvars:
// General
bd_on 1 // enable plugin [0-disabled / 1-enabled]
bd_save_bots 1 // bots can made records? [0-disabled / 1-enabled]
bd_save_stats 1 // save all records [0-disabled / 1-enabled]
bd_save_stats_personal 1 // save personal records [0-disabled / 1-enabled]
bd_chat_weapon 1 // display to all a chat record announce [0-disabled / 1-enabled]
bd_chat_personal 1 // display a chat personal record announce [0-disabled / 1-enabled]
bd_motd_sorting 0 // setup motd sorting method [0-by weapon id / 1-by most damage]
bd_ffa_dmg 0 // enable "free for all" damage for FFA servers [0-disabled / 1-enabled]
bd_no_over_dmg 0 // damage can not higher as enemy left healths [0-disabled / 1-enabled]
bd_more_time 1.0 // give more time befor the task calculate the total damage in seconds

// Admins
bd_hud_flag "c" // Access flag for bd_hud_dmg(_wall) only with admin flag
bd_reset_flag "g" // Access flag for bd_reset command and admin menu
// more flags possible! bd_hud_flag "cde" admin have 'c' or 'd' or 'e' flag!

// HUD Messages
bd_hud_dmg 1 // show HUD-Damage [0-disabled / 1-for all / 2-only admins]
bd_hud_dmg_wall 0 // show HUD-Damage when you hit the enemy and he is behind a wall [0-disabled / 1-for all / 2-only admins]
bd_single_dmg 1 // allow to show single damage [0-disabled / 1-enabled]
bd_multiple_dmg 1 // allow to show multiple damage [0-disabled / 1-enabled]
bd_grenade_dmg 1 // allow to show grenade damage [0-disabled / 1-enabled]
bd_take_dmg 1 // allow to show take damage [0-disabled / 1-enabled]

// Zombie Plague
//bd_nem_dmg_record 0 // Nemesis can made records? [0-disabled / 1-enabled]
//bd_surv_dmg_record 0 // Survivor can made records? [0-disabled / 1-enabled]

// Zombie Plague Advance
//bd_assa_dmg_record 0 // Assassin can made records? [0-disabled / 1-enabled]
//bd_snip_dmg_record 0 // Sniper can made records? [0-disabled / 1-enabled]


Credits:
MeRcyLeZZ: for some useful stuff
worldspawn: for few ideas - motd style, damage sorting, new command and bd_no_over_dmg ;)
Pneumatic: for the "bd_multi_dmg 2" idea
ConnorMcLeod: for Ham_TakeDamage forward idea (v2.2.0 -> HE-Grenade compatibility)
Alucard^: for the enable/disable (global) HUD-Damage idea
Hawk552: for approve and optimization plugin
GAARA54: for colored chat idea and Zombie Plague Advance 1.6 Compatibility request

ML Translations:
[fr] - ANTICHRISTUS, [ro] - georgik57, [bp] - .MMYTH.,
[pl] - naven, [lt] - tomax079, [es] - makiza, [ru] - LaFA,
[sk] - majsky, [cz] - miRRa, [hu] - banci, [bg] - shadybg,
[tr] - YaHSi, [de] - Torge

Changelog:
Code:
+ Added feature or noticeable improvement
- Bug fix or something removed
* Changed or Information
! Important - Take note!

* v1.1: (?)
   + display multiple damage    

* v1.2: (?)
   + new cvar bd_more_time
   + announce (name, damage, weapon) in chat
   + anti cheat (ARC) if u change your weapon in a long task like awp

* v1.3: (21st Dec 2009)
   + new cvar bd_chat
   + new command /top
   + save and load records
   + motd to show the records in table style
   * announce (name, damage, weapon and hits) in chat

* v1.4: (22nd Dec 2009)
   + new cvars bd_multi_dmg, bd_save_stats, bd_save_bots, bd_motd_method
   + new motd sytle like top15 from statsx.sma
   * chat command from /top to /bdtop

* v1.5: (23rd Dec 2009)
   + new cvars bd_color, bd_color_style, bd_color_holdtime, bd_motd_sorting
   + new motd sorting method
   * some stuff

* v1.5.1: (24th Dec 2009)
   * show_top

* v2.0: (25th Jan 2010)
   ! teammate attack protection (record cheat)
   + new command to reset all records
   * plugin name from achievement to ranking
   * some stuff

* v2.1: (16th Feb 2010)
   + bd_multi_dmg 2 = display single & multiple damage together
   * some stuff

* v2.1.1: (17th Feb 2010)
   + firerate time multiply for record task (look Plugin Customization section)
   + full knife atk1 & atk2 compatible
   * weapon firerate using fastest orginal rates
   - query player zooming

* v2.1.2: (2nd Mar 2010)
   + multi language support

* v2.1.3: (12th Mar 2010)
   + cvar bd_no_over_dmg

* v2.2.0: (30th Mar 2010)
   + HE-Grenade compatibility
   + HE-Grenade has now a own record task
   * some stuff

* v2.3.0: (30th Mar 2010)
   + RC1 new client command to enable/disable HUD-Damage
   + RC1 new cvar to enable/disable global HUD-Damage
   * RC2 HE-Grenade HUD-Damage Sync Object
   - RC3 /bdhud showing wrong chat info (enable/disable print)

* v2.3.1: (3rd Apr 2010)
   + more Customization
   + bulletdamage.cfg file
   * some stuff (lower CPU usage)
   * admin console command bd_reset
   - /bdtop not showing all weapons

* v2.4.0: (5th Apr 2010)
   + cvar bd_hud_dmg_wall
   + show HUD-Damage when you hit the enemy and he is behind a wall
   + cvar bd_ffa_dmg enable "free for all" damage for FFA servers
   * damage stuff

* v2.4.1: (7th Apr 2010)
   + Shield support
   - clear unusing stuff

* v2.4.2: (18th Apr 2010)
   * Knife attack 2 is now _Post not _Pre
   * damage stuff (timers)
   - fixing read/save/reset "top bullet damage"

* v2.5.0: (23rd Apr 2010)
   ! Knife attack 2 is again _Pre forward
   + Zombie Plague 4.3 Compatibility
   + records now saved by Steam ID, only steam authorized players can made records
   * motd misstep, when it calls 2 times to fast

* v2.5.1: (24th Apr 2010)
   ! Damage vars not reseting for non-steam players

* v2.5.2: (17th Jun 2010)
   * ARC and some stuff
   - wrong counting of hits, most by HE-Grenade (CZ)
   - Remove ML 'BDwR_CHEAT'

* v2.5.3: (26th Jun 2010)
   ! new ARC system
   + admin reset and hud flag cvar
   + admin show HUD-Damage
   + admin show HUD-Damage when you hit the enemy and he is behind a wall
   + Lan Server support
   - bd_motd_method only Top15 style possible

* v2.5.4: (27th Jun 2010)
   - HUD-Damage for HE-Grenade with the new cvars
   - fix cvar combination bd_hud_dmg 1 and bd_hud_dmg_wall 2 not showing HUD-Damage for normal players
   - Remove scripter query in fwd_TraceAttack (plugin test query)

* v2.5.5: (3rd Jul 2010)
   + Zombie Plague Advance 1.6 Compatibility
   + colored chat
   - Remove zp4.3 infect querys, not need more with the new ARC system

* v2.5.6: (21st Jul 2010)
   * clearing the code

* v2.5.7: (29th Jul 2010)
   ! fix authorized bug (thanks craigy09)

* v2.5.8: (5th Sep 2010)
   ! showing fault overpower damage on zombie servers

* v2.5.9: (13th Sep 2010)
   - damage not showing through glass and players

* v3.0.0: (27th Jan 2011)
   + Menu to configurate own player hud messages for 
       + colors
       + position (x,y)
       + flicker
       + holdtime
       + personal records
       + all weapon records
       + admin menu

* v3.0.1: (31st Jan 2011)
   ! admin menu (bug found, by converting this plugin to DoD)

* v3.0.2: (12th Jul 2012)
   ! FPS drop with HUD Sync Objects
   ! Unique crash on private data
   - Records/configs not being saved on windows (hopefully)
Other Information:
Code:
/*=======================================
 [Plugin Customization]
=======================================*/

// Save Records File
new const BD_RECORD_FILE[] = "bullet_damage_ranks"

// Firerate Time Multiply for Record Task
// 1.0 is normal | 2.0 is double
const Float:FIRERATE_MULTI = 1.5

// uncomment the line to have Zombie Plague 4.3 Compatibility
//#define ZOMBIE_PLAGUE_MOD
// uncomment the line to have Zombie Plague Advance 1.6 Compatibility
//#define ZOMBIE_PLAGUE_ADVANCE_MOD
New lang file need translations.

Supported Languages: [en] [fr] [ro] [bp] [pl] [lt] [es] [ru] [sk] [cz] [hu] [bg] [tr] [de]
[new] - If your language is missing, look here.

Please post all bugs, feedbacks, suggestions, comments or improvements you may have.


v1.0.0 - 3.0.1 views 13420
Attached Thumbnails
Click image for larger version

Name:	halflife01.jpg
Views:	12928
Size:	73.0 KB
ID:	55805   Click image for larger version

Name:	halflife02.jpg
Views:	8488
Size:	60.1 KB
ID:	55867   Click image for larger version

Name:	de_dust20006.jpg
Views:	20506
Size:	86.3 KB
ID:	59884   Click image for larger version

Name:	v240.jpg
Views:	34129
Size:	93.4 KB
ID:	63037  
Attached Files
File Type: zip BDwR-3.0.2.zip (31.6 KB, 6043 views)
File Type: sma Get Plugin or Get Source (bullet_damage_ranking.sma - 12987 views - 105.2 KB)
__________________

Working on:
nothing

Last edited by schmurgel1983; 07-12-2012 at 15:54. Reason: update to 3.0.2
schmurgel1983 is offline
worldspawn
Senior Member
Join Date: Aug 2009
Location: Russia, Yekaterinburg
Old 12-21-2009 , 14:29   Re: bullet damage with achievement 1.3
Reply With Quote #2

fixed

Last edited by worldspawn; 12-29-2009 at 10:37.
worldspawn is offline
Send a message via ICQ to worldspawn Send a message via Skype™ to worldspawn
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-21-2009 , 15:56   Re: bullet damage with achievement 1.3
Reply With Quote #3

I will give it a try.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 12-21-2009 , 18:19   Re: bullet damage with achievement 1.3
Reply With Quote #4

Quote:
Originally Posted by worldspawn View Post
RegisterHam(Ham_TakeDamage, "player", "your_function")
and use pcvars
thanks,
im using pcvars ^^ and the different of:
register_event("Damage", "damage_done", "b", "2!0", "3=0", "4!0")
and
RegisterHam(Ham_TakeDamage, "player", "your_function")

is, event damage give me a value: integer
and hamsanwich give me a value: float
whether integer or using float... i dont see a hardcore different O.o

and when i using hamsandwich for multiple damage so i can do it easy,
but it makes no sense for me sry

EDIT: i testing with ham see the picture
ham display the current damage u make, but the event show u the end damage!
Attached Thumbnails
Click image for larger version

Name:	event_or_ham.jpg
Views:	4612
Size:	54.0 KB
ID:	55758  
__________________

Working on:
nothing

Last edited by schmurgel1983; 12-21-2009 at 23:16. Reason: make not take
schmurgel1983 is offline
ditmesteam
Senior Member
Join Date: Oct 2009
Old 12-21-2009 , 22:10   Re: bullet damage with achievement 1.3
Reply With Quote #5

Can you make some pictures snapshoot?
ditmesteam is offline
worldspawn
Senior Member
Join Date: Aug 2009
Location: Russia, Yekaterinburg
Old 12-22-2009 , 01:26   Re: bullet damage with achievement 1.3
Reply With Quote #6

i think first in top should be most used weapons such as: m4a1, ak47, deagle, usp, awp.....
restyle the motd:
-set the width to 100%
-make it dark(like top15) cause it may damage eyes a little bit(for example i looked top15 and then your top)

commands:
-change it to /bdtop(or smth else) cause some plugins are using /top command
-you should register_clcmd("say /top", "show_top") and register_clcmd("sayteam /top", "show_top")

about suggestions: i'm not too good at scripting, so don't listen to me
and if u use pcvars why -
PHP Code:
    cvar_bullet_damage register_cvar("bd_on""1")
    
cvar_more_time register_cvar("bd_more_time""0.3")
    
cvar_chat register_cvar("bd_chat""1"

Last edited by worldspawn; 12-22-2009 at 01:39.
worldspawn is offline
Send a message via ICQ to worldspawn Send a message via Skype™ to worldspawn
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-22-2009 , 02:07   Re: bullet damage with achievement 1.3
Reply With Quote #7

There is no need of using Ham_TakeDamage when Damage event can do the same.
If you really want to use it, hook it post, and the check dmg_take player value to know the exact damage (that value is used to send Damage message).



fm_cs_get_current_weapon_ent

FAILED lol

HAM_cs_get_current_weapon_ent
__________________
- tired and retired -

Last edited by ConnorMcLeod; 12-22-2009 at 02:09.
ConnorMcLeod is offline
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 12-22-2009 , 08:09   Re: bullet damage with achievement 1.4 [updated 12.22.09]
Reply With Quote #8

pcvar:
PHP Code:
new pcvar

pcvar 
register_cvar("my_pcvar""1")

get_pcvar_num(pcvar
cvar:
PHP Code:
register_cvar("my_cvar""1")

get_cvar_num("my_cvar"
i hope its correct xD
__________________

Working on:
nothing
schmurgel1983 is offline
worldspawn
Senior Member
Join Date: Aug 2009
Location: Russia, Yekaterinburg
Old 12-22-2009 , 08:12   Re: bullet damage with achievement 1.4 [updated 12.22.09]
Reply With Quote #9

Ok)
worldspawn is offline
Send a message via ICQ to worldspawn Send a message via Skype™ to worldspawn
worldspawn
Senior Member
Join Date: Aug 2009
Location: Russia, Yekaterinburg
Old 12-22-2009 , 08:14   Re: bullet damage with achievement 1.4 [updated 12.22.09]
Reply With Quote #10

Quote:
i think first in top should be most used weapons such as: m4a1, ak47, deagle, usp, awp.....
won't you do it?
will be great)
worldspawn is offline
Send a message via ICQ to worldspawn Send a message via Skype™ to worldspawn
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:09.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode