Page 1 of 1

Set fake ping for bots

Posted: Tue Dec 02, 2014 8:53 pm
by nullable
Hi,

I found next plugin https://forums.alliedmods.net/showthread.php?p=767048
The question is how to set fake ping for bot which was added by bot_add command?

Posted: Tue Dec 02, 2014 9:07 pm
by Ayuto
I think you just need to set proper CPlayerResource.m_iPing.<player index> property. E.g. CPlayerResource.m_iPing.001 would be the property for the player with the index 1.

Posted: Tue Dec 02, 2014 9:20 pm
by nullable
I don't understand. Can you show me an example of code?

Posted: Wed Dec 03, 2014 12:51 am
by satoon101
Much like this ES script of mine:
http://addons.eventscripts.com/addons/view/LooneyBotPing

Though, obviously, there are some differences in SP. I do intend to port it to SP, myself, at some point. However, I'm not sure how widely used it would be on CS:GO, as that game is much better about making sure players know who is a human and who is a bot. Maybe I'll work on that script tonight and release it when I am done.