Raised This Month: $51 Target: $400
 12% 

Hitzone Practice


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   HamletEagle (36)
blake_won
New Member
Join Date: Mar 2014
Location: Rank #1 Land
Old 03-07-2014 , 10:50   Hitzone Practice
Reply With Quote #1

Plugin: Hitzone Practice
Version: 0.1

Commands: /hzp - Opens the Hitzone Practice Menu
Description: HzP makes it possible for every player to adjust their own attack hitzones. You can practice headshots, legshots, or any other specific hitzone while everyone else is still able to play normally and do damage to any hitzone. *Knife attacks are not effected by this.
nVault: Hitzones are saved so you do not have to readjust your hitzones everytime you play. Entries older than a week are auto removed.
Attached Files
File Type: sma Get Plugin or Get Source (hitzonepractice.sma - 1284 views - 3.0 KB)

Last edited by blake_won; 03-07-2014 at 10:51.
blake_won is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 03-07-2014 , 12:37   Re: Hitzone Practice
Reply With Quote #2

Nice job.

You can make some of the variables static instead of using "new".
__________________
Kia is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-07-2014 , 18:32   Re: Hitzone Practice
Reply With Quote #3

So by description I could set hit zone to head and get head shots every time?
__________________
Blizzard_87 is offline
Compidence
Junior Member
Join Date: Feb 2014
Old 03-07-2014 , 18:53   Re: Hitzone Practice
Reply With Quote #4

From looking at the code I would say it's more like if you set the hitzone to the head and chest then your are not able to do damage to the rest of the body parts.
Compidence is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 03-08-2014 , 15:39   Re: Hitzone Practice
Reply With Quote #5

Good job Mr.Camel
__________________
Like my clean plugins and work?
Baws is offline
Sun Aloe
Member
Join Date: Jul 2013
Location: Porto, Portugal
Old 03-08-2014 , 23:40   Re: Hitzone Practice
Reply With Quote #6

Very nice idea !

I tested and the Chest and the Left Leg are not working properly. From some angles isn't possible to take damage, while with the rest of the body parts, this fail doesn't happen.

I believe there are better ways to achieve this.

get_user_hitzones is bugged.




For those of you who want to understand better what this plugin does:


This plugin aims to block the damage on specific body parts, so you can only be able to take damage to the ones you wish, helping you practice.


With the command /hzp you get a menu like this:

------------------------
Hitzone Practice Menu

1. Head
2. Chest
3. Stomach
4. Left Arm
5. Right Arm
6. Left Leg
7. Right Leg

0. Exit
-------------------------

The menu keys work like toogles. The color of their letters switches between White and Grey.

White = The body part is not selected. You do damage by shooting at this body part.

Grey = The body part is selected and blocked from damage. You do no damage by shooting at this body part.


Examples:

1. If you select all body parts except the Head, you will only be able to kill by headshot.

2. If you select all body parts except the Left Leg and the Right Leg, then you can only kill a enemy by shooting his legs.
Sun Aloe is offline
blake_won
New Member
Join Date: Mar 2014
Location: Rank #1 Land
Old 03-09-2014 , 17:15   Re: Hitzone Practice
Reply With Quote #7

Thank you Sun Aloe for that summary.

I tried testing the hitzones from various angles and they seemed to work fine. Are you sure it's the method used and not the way hitzones work in general?

Try enabling the right and left arms when you are unable to do damage to the chest, then see if that works. If it does then I would assume that the left or right arm hitzones were blocking the chest, so essentially you were hitting one of the arms, not the chest. In the meantime I'll look for other methods.

Here's an example showing how the arms are blocking the chest when the player is idling.
blake_won is offline
Sun Aloe
Member
Join Date: Jul 2013
Location: Porto, Portugal
Old 03-10-2014 , 02:45   Re: Hitzone Practice
Reply With Quote #8

Good point. The Chest could had been covered by the arms. I tested closely and it works fine.

About the Left Leg, I discovered the exact problem. It happens when you shoot it from ahead around the knee in certain angles. It seems that part is considered as the Right Leg, which is awkward. I could only hit the Left Leg, when I selected damage on the Right Leg too. And I was testing it really really close.

But...

I was testing with a bot. I tested with a real player and it works like a charm !

So I think there's just a minor fail and maybe the problem resides on the bots.


Well done, I like this plugin, as I said initially, great idea !

Last edited by Sun Aloe; 03-28-2014 at 21:28.
Sun Aloe is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 03-18-2014 , 05:55   Re: Hitzone Practice
Reply With Quote #9

Quote:
Originally Posted by blake_won View Post
Description: HzP makes it possible for every player to adjust their own attack hitzones.
so basically this plugin allow different players to choose their own hitzones independently of the other players, even if being in the same server/round ? (understood a bit from Sun Aloe's post, thanks).
their "own" attack hitzones as victims or attackers ??

seriously, I didn't understand anything from the main post, and it's not necessary to test a plugin just to understand it..

please make a full description in the main post about everything related .
__________________
ANTICHRISTUS is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 03-18-2014 , 12:29   Re: Hitzone Practice
Reply With Quote #10

It's basically a plugin to practice your hitzones. For example if you want only head shot,
you will click on head and then whenever you shoot on the enemy you will not make any
damage to him if you hit him other than the head part.
__________________
Like my clean plugins and work?
Baws 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 14:23.


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