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

Touch a player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-07-2018 , 04:35   Touch a player
Reply With Quote #1

Is possible to detect which part of the player's body an entity has touched? I mean, with my Bullet Speed plugin, I wanna detect which part of the player's body the bullet touched, is it possible? If so, how?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 08-07-2018 , 04:44   Re: Touch a player
Reply With Quote #2

You may check it with TakeDamage or TraceAttack.

PHP Code:
//HIT_*
// Fakemeta
(get_pdata_int(idm_LastHitGroup) == HIT_*);

//HITGROUP_*
//Reapi
(get_member(idm_LastHitGroup) == HITGROUP_*) 
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }

PurposeLessx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-07-2018 , 04:59   Re: Touch a player
Reply With Quote #3

I don't think this could work, because in my case, I shoot in front of the player that's running (psychs, because the plugin I mentioned, FIY, sets the bullet a new speed, so, if the player is running, I gotta aim in front of him to hit his body), so the Ham_TakeDamage will not work, and TraceAttack too, I guess. 'Cos the player, basically, is shooting the worldspawn.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 08-07-2018 at 05:01.
EFFx is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 08-07-2018 , 05:09   Re: Touch a player
Reply With Quote #4

Afaik, you cannot detect entity has touched which part of player.
May you send plugin codes? Let us check it out.
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }

PurposeLessx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-07-2018 , 05:28   Re: Touch a player
Reply With Quote #5

Bullet Speed Management, it's in my signature.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 08-07-2018 at 05:28.
EFFx is offline
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 08-08-2018 , 00:18   Re: Touch a player
Reply With Quote #6

Why not just check statsx.sma?
Maybe that can help you.
__________________
CrAzY MaN is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-08-2018 , 00:22   Re: Touch a player
Reply With Quote #7

No, and I explained why at #3.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-08-2018 , 09:19   Re: Touch a player
Reply With Quote #8

Use a traceline and see what you hit.
__________________
HamletEagle is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-08-2018 , 10:12   Re: Touch a player
Reply With Quote #9

Is it possible to see what I'll hit after some seconds after the shoot with Traceline?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-08-2018 , 10:15   Re: Touch a player
Reply With Quote #10

You could trace when the fake bullet hits the player or try to use TraceToss + TR_iHitGroup
__________________
HamletEagle is offline
Old 08-08-2018, 10:16
klippy
This message has been deleted by klippy. Reason: Misunderstood
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 10:03.


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