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

Create entity over player's head


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sebxx4
Senior Member
Join Date: Feb 2013
Old 02-15-2023 , 11:16   Create entity over player's head
Reply With Quote #1

I would like to detect if some player is shooting over another player's head.
I thought to create some invisible cube with specific dimensions and place it a few units over player's head. And detect when another player hit this cube with a gun.

The problem is, I dont know how to create it. And how to make it "following" the player it's assigned to? Or maybe you guys have better idea?

Last edited by sebxx4; 02-15-2023 at 11:17.
sebxx4 is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 02-17-2023 , 10:52   Re: Create entity over player's head
Reply With Quote #2

Any ideas?
sebxx4 is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 02-20-2023 , 10:52   Re: Create entity over player's head
Reply With Quote #3

@ref again
sebxx4 is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-20-2023 , 12:18   Re: Create entity over player's head
Reply With Quote #4

I guess creating a cube over the player's head might work but there is an issue, the cube has to be solid in order to be shootable, so if a player jumps over another player they will collide and be blocked by the cube and I guess this can only be solved by editing ReHLDS & ReGameDLL to ignore colliding with the entity but still keep it shootable.
__________________
JusTGo is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 02-21-2023 , 08:42   Re: Create entity over player's head
Reply With Quote #5

So, maybe some other way?
sebxx4 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 13:24.


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