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

Is it possible to code a hitbox?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hellmoss
Senior Member
Join Date: Oct 2009
Location: ZOMBIE PLAGUE
Old 02-20-2019 , 08:20   Is it possible to code a hitbox?
Reply With Quote #1

Creating a solid_bbox entity around the player with movetype = follow isn't the greatest trick because it blocks the player and if it's not solid it wont be able to take damage.. I saw a semiclip plugin in which players are inside one another but can still take damage from enemy fire (https://forums.alliedmods.net/showthread.php?t=137980) I'm being kinda lazy to look into it but from a quick look I don't see anything else manipulated but the solid state of players.
hellmoss is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-20-2019 , 10:59   Re: Is it possible to code a hitbox?
Reply With Quote #2

Have you tried to set entity ownership to the player that it follow?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 02-20-2019 at 11:00.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
JocAnis
Veteran Member
Join Date: Jun 2010
Old 02-20-2019 , 11:52   Re: Is it possible to code a hitbox?
Reply With Quote #3

Make that like you started, good idea.. Then : do a pev_groupinfo thing between only that player and his box
Meaning: set pev_groupinfo to player and reversed pev_groupinfo to his, followed box... So he wont ne able to touch nor see it, for others all normal
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)

Last edited by JocAnis; 02-20-2019 at 11:57.
JocAnis 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 19:58.


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