AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Bullet Damage with new HudMessages | UPDATED 10/04/11 (https://forums.alliedmods.net/showthread.php?t=151190)

bboygrun 02-22-2011 21:13

Bullet Damage with new HudMessages | UPDATED 10/04/11
 
10 Attachment(s)
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 :D

: | ScreenShots | :


Click on the pictures.
Attachment 88213
Attachment 88214
Attachment 88215
Attachment 88216
Attachment 90480 ( Vertical )
Attachment 90479 ( Horizontal )
Attachment 90478 ( Circle )
Attachment 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. :wink:

*****Servers using this plugin*****

XtremeFiles 02-22-2011 21:21

Re: Bullet Damage with Director Hud Message
 
Thanks ! :D

Melisko 02-23-2011 06:41

Re: Bullet Damage with Director Hud Message
 
Rly Cool :)

ot_207 02-23-2011 18:10

Re: Bullet Damage with Director Hud Message
 
I suggest you copy the stocks from that include and put them in your own plugin so that people can compile directly here.

Nextra 02-23-2011 20:03

Re: Bullet Damage with Director Hud Message
 
Good thing.

Is it intentional that client_putinserver and RestartHudPos initialize the Y-Values differently?

ConnorMcLeod 02-24-2011 01:18

Re: Bullet Damage with Director Hud Message
 
Instead of task, reset Y pos when Y reaches a specific value.

bboygrun 02-24-2011 08:42

Re: Bullet Damage with Director Hud Message
 
Quote:

Originally Posted by ot_207 (Post 1422352)
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 (Post 1422426)
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 (Post 1422527)
Instead of task, reset Y pos when Y reaches a specific value.

Added, good idea (:.

Added the new SMA on the attachment.

bboygrun 02-27-2011 12:46

Re: Bullet Damage with Director Hud Message and HudMessage v1.1
 
New version added :D.

ot_207 02-28-2011 09:13

Re: Bullet Damage with Director Hud Message and HudMessage v1.1
 
Suggestions/Request:
1. Support for monstermod
2. Support for walls (not show the damage if you shot through a wall)

bboygrun 02-28-2011 20:44

Re: Bullet Damage with Director Hud Message and HudMessage v1.1
 
Quote:

Originally Posted by ot_207 (Post 1425429)
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 (:


All times are GMT -4. The time now is 07:12.

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