Set fake ping for bots

Please post any questions about developing your plugin here. Please use the search function before posting!
nullable
Senior Member
Posts: 137
Joined: Sat Nov 08, 2014 7:22 pm

Set fake ping for bots

Postby nullable » Tue Dec 02, 2014 8:53 pm

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?
User avatar
Ayuto
Project Leader
Posts: 2209
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Tue Dec 02, 2014 9:07 pm

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.
nullable
Senior Member
Posts: 137
Joined: Sat Nov 08, 2014 7:22 pm

Postby nullable » Tue Dec 02, 2014 9:20 pm

I don't understand. Can you show me an example of code?
User avatar
satoon101
Project Leader
Posts: 2703
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Wed Dec 03, 2014 12:51 am

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.
Image

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 139 guests