AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Create entity over player's head (https://forums.alliedmods.net/showthread.php?t=341847)

sebxx4 02-15-2023 11:16

Create entity over player's head
 
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?

sebxx4 02-17-2023 10:52

Re: Create entity over player's head
 
Any ideas?

sebxx4 02-20-2023 10:52

Re: Create entity over player's head
 
@ref again

JusTGo 02-20-2023 12:18

Re: Create entity over player's head
 
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.

sebxx4 02-21-2023 08:42

Re: Create entity over player's head
 
So, maybe some other way?


All times are GMT -4. The time now is 23:24.

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