Raised This Month: $ Target: $400
 0% 

Bullet Damage with new HudMessages | UPDATED 10/04/11


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   ConnorMcLeod (74)
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 02-22-2011 , 22:13   Bullet Damage with new HudMessages | UPDATED 10/04/11
Reply With Quote #1

PLUGIN : Bullet Damage with Director Hud Message and HudMessage 2.0


: | Description | :

This plugin show Director Hud Message or HudMessage when you hit or you are hit by damage.

First, you can write /showbd to disable/enable the bullet damages display for you.

Colors : ( DEFAULT )
Victims see a red HUD.
Attackers see a green HUD.
When the Victim does damage to himself OR a player shoot a teammate, he sees an orange HUD.

: | Cvars | :

** Bullet_Damage_Mode :
- 0 = It only uses the Director Hud Message --> DEFAULT
- 1 = It Uses HudMessage when the victim is far from the attacker AND when the victim & attacker are near it uses Director Hud Message.

** Bullet_Damage_Distance :[Only work when Bullet_Damage_Mode is set to 1]
- When the attacker and the victim are at X distance, we will use HudMessage. --> DEFAULT = 600

** Bullet_Damage_ShowWalls :
- 0 : Disabled ( DEFAULT )
- 1 : Don't show the damage you did when you shot through a wall

** Bullet_Show_Spec :
- 0 : Disabled
- 1 : Show the HudMessage / Director Hud Message to the spectator ( DEFAULT )

** Bullet_Hs_Mode
- 0 : Disabled
- 1 : Always show Director Hud Message on HeadShot
- 2 : Show : "HEADSHOT" to : Victim & Attacker ( DEFAULT )

** Show_Accumulated_Damage :
- 0 : Disabled
- 1 : Show the accumulated damages for the last 5.0 seconds ( Automatically HudMessage ).
( Position : mid-top of the screen )

** Color_RGB_Victim :
- Color of the Message : RGB ( DEFAULT = 255000000 )

** Color_RGB_Attacker
- Color of the Message : RGB ( DEFAULT = 000255000 )

** Color_RGB_Ourself_Teammate
- Color of the Message : RGB ( DEFAULT = 255102021 )

** Bullet_Text_Mode
- 0 : DIRECTOR HUD MESSAGE SIZE
- 1 : HUD MESSAGE SIZE

THERE IS TWO TYPE OF SIZE : HUD MESSAGE SIZE ( 1 ) = NORMAL SIZE AND DIRECTOR HUD MESSAGE ( 0 ) = BIG SIZE

** Bullet_Show_Mode ( DEFAULT = Arch of Circle )
- 0 : Circle ---> http://**************/photo/my-images/843/circlen.jpg/
- 1 : Vertical ---> http://**************/photo/my-images/706/verticalt.jpg/
- 2 : Horizontal ---> http://**************/photo/my-images...rizontala.jpg/
- 3 : Arch of circle ---> http://img855.**************/img855/6...clevictime.jpg

: | Natives | :

PHP Code:
bd_show_damageindexdamagestyleAttacker 
:::
Show damages to a player.

----------------------------------------------------------------

PHP Code:
bd_show_textindexAttackertext[] ) 
:::
Show a text to the player, example :

It will display the message : SPAWN to the player 1 = Attacker style, ( Default color = green & position = right )

PHP Code:
#if defined _bulletdamage_included
    #endinput
#endif
#define _bulletdamage_included


/*
*    style :
*        0 = Show Director HudMessage
*        1 = Show HudMessage
*    Attacker :
*        0 = Index isn't the attacker ( Default = Show red color at the left )
*        1 = Index is the attacker ( Default = Show green color at the right )
*/
native bd_show_damageindexdamagestyleAttacker )

/*
*    Attacker :
*        0 = Index isn't the attacker ( Default = Show red color at the left )
*        1 = Index is the attacker ( Default = Show green color at the right )
*/
native bd_show_textindexAttackertext[] ) 
: | Credits | :


- Arkshine for this : http://forums.alliedmods.net/showthread.php?t=149210

- ConnorMcLeod for a lot of optimizations and take the RGB in one CVAR : http://forums.alliedmods.net/showthread.php?t=62224

- Schmurgel1983 : http://forums.alliedmods.net/showthr...34#post1436434 ( Help with the bd_show_text native )

- Big Thanks to Micapat

: | ScreenShots | :


Click on the pictures.
Click image for larger version

Name:	bullet1m.jpg
Views:	24330
Size:	74.5 KB
ID:	88213
Click image for larger version

Name:	bulletshowhs.jpg
Views:	11913
Size:	32.8 KB
ID:	88214
Click image for larger version

Name:	showbulletdamage.jpg
Views:	14254
Size:	38.5 KB
ID:	88215
Click image for larger version

Name:	showbulletdamageequalvn.jpg
Views:	7779
Size:	31.3 KB
ID:	88216
Click image for larger version

Name:	vertical.jpg
Views:	12662
Size:	95.7 KB
ID:	90480 ( Vertical )
Click image for larger version

Name:	horizontal.jpg
Views:	13917
Size:	97.4 KB
ID:	90479 ( Horizontal )
Click image for larger version

Name:	circle.jpg
Views:	16713
Size:	94.8 KB
ID:	90478 ( Circle )
Click image for larger version

Name:	arc_cercle_victime.jpg
Views:	18073
Size:	79.9 KB
ID:	90489 ( Arch of circle )
http://img607.**************/img607/3982/sansreih.jpg ==> Accumulated damage

PHP Code:
            "CHANGE LOG :"                                   
            "1.0" 
First                            
            
"1.1" Adding Bullet Damage Mode                           
            
"1.2" Adding Bullet Damage Walls                       
            
"1.3" Spectators see damage                           
            
"1.4" Cvar Bullet_Hs_Mode                            
            
"1.5" New Natives                               
            
"1.6" Text SIZE    
            
"1.7" Bullet Show Mode    
            
"1.8" : New structure
            
"1.9" Say command Accumulated damages
            
"2.0" : Final Version 
I hope this plugin will be useful.

*****Servers using this plugin*****
Attached Files
File Type: inc bulletdamage.inc (862 Bytes, 9651 views)
File Type: sma Get Plugin or Get Source (bullet_damage.sma - 19739 views - 15.6 KB)
__________________

Last edited by bboygrun; 10-04-2011 at 18:39. Reason: Adding the new SMA.
bboygrun is offline
XtremeFiles
Member
Join Date: May 2010
Old 02-22-2011 , 22:21   Re: Bullet Damage with Director Hud Message
Reply With Quote #2

Thanks !
XtremeFiles is offline
Melisko
Senior Member
Join Date: Feb 2010
Old 02-23-2011 , 07:41   Re: Bullet Damage with Director Hud Message
Reply With Quote #3

Rly Cool
Melisko is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 02-23-2011 , 19:10   Re: Bullet Damage with Director Hud Message
Reply With Quote #4

I suggest you copy the stocks from that include and put them in your own plugin so that people can compile directly here.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 02-23-2011 , 21:03   Re: Bullet Damage with Director Hud Message
Reply With Quote #5

Good thing.

Is it intentional that client_putinserver and RestartHudPos initialize the Y-Values differently?
__________________
In Flames we trust!
Nextra is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-24-2011 , 02:18   Re: Bullet Damage with Director Hud Message
Reply With Quote #6

Instead of task, reset Y pos when Y reaches a specific value.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 02-24-2011 , 09:42   Re: Bullet Damage with Director Hud Message
Reply With Quote #7

Quote:
Originally Posted by ot_207 View Post
I suggest you copy the stocks from that include and put them in your own plugin so that people can compile directly here.
Done

Quote:
Originally Posted by Nextra View Post
Good thing.

Is it intentional that client_putinserver and RestartHudPos initialize the Y-Values differently?
Nop that wasn't :O, i didn't see it, thanks (:.

Quote:
Originally Posted by ConnorMcLeod View Post
Instead of task, reset Y pos when Y reaches a specific value.
Added, good idea (:.

Added the new SMA on the attachment.
__________________
bboygrun is offline
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 02-27-2011 , 13:46   Re: Bullet Damage with Director Hud Message and HudMessage v1.1
Reply With Quote #8

New version added .
__________________
bboygrun is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 02-28-2011 , 10:13   Re: Bullet Damage with Director Hud Message and HudMessage v1.1
Reply With Quote #9

Suggestions/Request:
1. Support for monstermod
2. Support for walls (not show the damage if you shot through a wall)
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 02-28-2011 , 21:44   Re: Bullet Damage with Director Hud Message and HudMessage v1.1
Reply With Quote #10

Quote:
Originally Posted by ot_207 View Post
Suggestions/Request:
1. Support for monstermod
2. Support for walls (not show the damage if you shot through a wall)

1 - I will work on that tomorrow
2 - Added (:
__________________
bboygrun is offline
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 12:56.


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