Conversation
|
I'll wait for a 2nd opinion on this. But looks good imo. |
|
Nice feature for griefing. It would also be useful to have this on HE grenades and molotovs/incendiary grenades. |
|
I wanted to have this for mollies as well but I have no idea where to even start since the molotov gets destroyed when flames spawn |
|
If you're trying to track mollys, do an event hook for molotov_detonate it returns the userid, and the x, y and z coords of the molly. Then listening for inferno_extinguish, or inferno_expire for when its gone |
|
Thanks, that's pretty useful to know. I will give it a try tomorrow assuming nobody else better than me is interested in doing that. |
406a400 to
43fa785
Compare
|
I managed to get to this with molotov tracking code, but I can't figure out how to make entity id that's reported into something usable, otherwise I would have to hook molotov_detonate for owner and then check if it actually exploded later in inferno_startburn. I can't just use molotov_detonate because it gets called even if the flame doesn't get created so I would prefer just to do it inside inferno_startburn. |

Implemented it because it's pretty useful to know who are you getting teamkills for when killing yourself with decoy.
Only problem I have noticed so far is that when player disconnects the name field will be empty and I'm not really sure what's the best way to check if owner is still in game.