Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-02-2011 , 01:44   Re: Bullet Damage with Director Hud Message and HudMessage v1.1
Reply With Quote #11

Use channel = -1 in normal hudmessages or any new message will make previous one disappear.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 03-02-2011 , 09:47   Re: Bullet Damage with Director Hud Message and HudMessage v1.1
Reply With Quote #12

Thanks Connor, added ^^.
__________________
bboygrun is offline
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 03-02-2011 , 20:15   Re: Bullet Damage with Director Hud Message and HudMessage v1.1
Reply With Quote #13

New cvar :
- Bullet_Show_Spec

When you Spec a player and he hits or take damage, it shows to you the HudMessage or Director Hud Message.
__________________
bboygrun is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-03-2011 , 01:31   Re: Bullet Damage with Director Hud Message and HudMessage v1.1
Reply With Quote #14

If you start to add crappy code that you don't understand, that is not working, and that you obviously have not tested, ( GetAllSpectators ) , plugin with directly go to unapproved section.

Also, don't use fm_is_ent_visible, use engine or ham
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
XtremeFiles
Member
Join Date: May 2010
Old 03-03-2011 , 01:38   Re: Bullet Damage with Director Hud Message and HudMessage v1.1
Reply With Quote #15

It is possible to add a cvar to customize the colors ? it's just an idea.
XtremeFiles is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-03-2011 , 01:41   Re: Bullet Damage with Director Hud Message and HudMessage v1.1
Reply With Quote #16

Quote:
Originally Posted by XtremeFiles View Post
It is possible to add a cvar to customize the colors ? it's just an idea.
For a hud-based-plugin, i guess it would be a must.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 03-03-2011 , 08:32   Re: Bullet Damage with Director Hud Message and HudMessage v1.1
Reply With Quote #17

Quote:
Originally Posted by ConnorMcLeod View Post
If you start to add crappy code that you don't understand, that is not working, and that you obviously have not tested, ( GetAllSpectators ) , plugin with directly go to unapproved section.

Also, don't use fm_is_ent_visible, use engine or ham
I understood what i did, it worked, so i tested it :O, but you say that a crappy code, so i did another thing.
I'm now using is_visible( id, target ) and ... ... i didn't know how to take all the colors RGB in one cvar, so i had to copy that .... from your plugin :
http://forums.alliedmods.net/showthr...=weapon+tracer
"weapon_laser_tracers".
__________________
bboygrun is offline
makiza
BANNED
Join Date: Mar 2009
Old 03-03-2011 , 21:38   Re: Bullet Damage with Director Hud Message and HudMessage v1.1
Reply With Quote #18

add support for "tank" entities.
makiza is offline
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 03-17-2011 , 16:19   Re: Bullet Damage with Director Hud Message and HudMessage v1.1
Reply With Quote #19

New cvar added, Bullet_Hs_Mode :

PHP Code:
Bullet_Hs_Mode
*                - Disabled
*                  - Always show Director Hud Message on HeadShot
*                - Show "HEADSHOT" to Victim Attacker = Default 
Screen :
[img]http://img688.**************/img688/1508/bulletshowhs.jpg[/img]
__________________
bboygrun is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-18-2011 , 02:20   Re: Bullet Damage with Director Hud Message and HudMessage v1.1
Reply With Quote #20

http://www.amxmodx.org/funcwiki.php?...cker&go=search

You don't need to register TraceAttack, you can just retrieve hitzone in get_user_attacker.
Use flag "c" in get_players so you don't have to figure out if players in the list are bots or humans, you can also add flag "h" so you don't collect HLTVs.
For bot registering, you have to figure out if there are cz bots, and not podbots for example, may be a check against bot_quota cvar would be ok, like check at plugin init if the cvar exists (aka try to retrieve pointer), and check its value when a bot is passed in putinserver.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 03-18-2011 at 02:23.
ConnorMcLeod is offline
Reply



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 08:01.


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