.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   CS 1.5 get the bot that inflicted damage by grenade!? (http://forums.bots-united.com/showthread.php?t=6079)

Skeletor23 21-01-2007 13:25

CS 1.5 get the bot that inflicted damage by grenade!?
 
Hello,

I'm trying to find out what bot launched a grenade that inflicted damage to any other bot.
When I go into Damage_Message, I can get the damage inflictor in the
dmg_inflictor part of the damaged entity.
But in the case, that the damage was inflicted by a grenade, the inflictor is the grenade itself??
How can I get the bot that threw that grenade!?

I need that information to train a neural net?

Thanks for any help, Daniel!

@$3.1415rin 16-02-2007 13:21

Re: CS 1.5 get the bot that inflicted damage by grenade!?
 
that's long ago :)

you could look for the v.owner pointer, which might point to the owner, or to 'weaponbox' and then to owner ... something like that I guess

worst case you could always search for grenades and evaluate their whole trajectories to see from whome to whome ;)


All times are GMT +2. The time now is 19:47.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.