Bots: Console gets spammed with buy zone warning

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Bots: Console gets spammed with buy zone warning

Postby BackRaw » Thu Nov 02, 2017 10:26 pm

Hi,

is there any way to disable this message when I have removed the func_buyzone entities?

Code: Select all

Terrorist bot spawned outside of a buy zone (-923, -769, 146)
....


Thanks.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: Bots: Console gets spammed with buy zone warning

Postby L'In20Cible » Thu Nov 02, 2017 10:57 pm

How about not removing the buyzones, but simply turning them off?

Syntax: Select all

for buyzone in EntityIter('func_buyzone'):
buyzone.call_input('Disable')
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Re: Bots: Console gets spammed with buy zone warning

Postby BackRaw » Fri Nov 03, 2017 12:08 am

L'In20Cible wrote:How about not removing the buyzones, but simply turning them off?

Syntax: Select all

for buyzone in EntityIter('func_buyzone'):
buyzone.call_input('Disable')

I didn't know how :D thanks!
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Bots: Console gets spammed with buy zone warning

Postby Ayuto » Fri Nov 03, 2017 6:55 am

Otherwise you could also use a OnServerOutput listener:
http://wiki.sourcepython.com/developing ... rveroutput
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: Bots: Console gets spammed with buy zone warning

Postby satoon101 » Fri Nov 03, 2017 11:01 pm

Ayuto wrote:Otherwise you could also use a OnServerOutput listener:
http://wiki.sourcepython.com/developing ... rveroutput

I completely forgot about that listener. I need to add that to GunGame. Thanks for the reminder!
Image
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Re: Bots: Console gets spammed with buy zone warning

Postby BackRaw » Sun Nov 12, 2017 8:04 pm

Ayuto wrote:Otherwise you could also use a OnServerOutput listener:
http://wiki.sourcepython.com/developing ... rveroutput

Thanks for pointing that out.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 20 guests