Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
With OnPlayerWeaponShot, t's not possible to detect if the bullet hit a global or player object. because only BULLET_HIT_TYPE_OBJECT exists. Can BULLET_HIT_TYPE_PLAYER_OBJECT be added please?
Posts: 191
Threads: 24
Joined: Jun 2013
Reputation:
0
I agree with this, please add this one for the next release.
Posts: 1,164
Threads: 20
Joined: Oct 2008
Reputation:
0
I have a shooting target system and I had to make them non dynamic objects (Incognito's Streamer) for the callback to correctly detect the hitid. With player objects i am sure we can get streamed objects detection done and it would be really useful.
I would really love if OnPlayerWeaponShot is also extended to detect melee, missiles and throwables.
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
Adding playerobjects to that shouldnt be too hard, but its indeed pretty important.
Though melee and rockets/grenades could be tricky. As it sounds, the new system is all about "bullets", as internally their just one class. Melee and grenades are handled all different, im pretty sure this isnt a thing that could be added with 10 lines.
Posts: 2,938
Threads: 162
Joined: May 2010
Just wait guys, it will be added.
Posts: 1,180
Threads: 55
Joined: Apr 2005
Reputation:
0
The global object IDs and player object IDs don't overlap. So you could use IsValidPlayerObject.
I'll add a seperate definition for player objects in the next RC.