.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Common Questions (http://forums.bots-united.com/forumdisplay.php?f=51)
-   -   Team killing (http://forums.bots-united.com/showthread.php?t=6754)

useronator 24-04-2008 22:35

Team killing
 
Hi, I have plugin in amxx that changes player's team without ending of round (using cs_set_user_team), but pod bots still "thinks" that they're in previous team and trying to kill team mates ignoring enemies.
Is it possible to fix this in pod-bot ?

Or maybe, what can I add to plugin (what message to send to bots) to force them to check in what team they are ?

Thanks,
sorry for my bad english

KWo 25-04-2008 07:26

Re: Team killing
 
During transfering the player to the other team AMX X is sending the message TeamInfo - so all other AMX X plugins can handle, the player is now in the new team. Unfortunatelly, if that message is just sent by any of metamod plugins, the metamod is blocking that message to be send to other mm plugins, so none of them (like metamod bots, like StatsMe, like AdminMod etc) can know that (since they cannot see blocked messages).
The only way to do this right is - switch the player to the other team and just respawn him (for example in the Spawn area of the new team). Then the right TeamInfo message is sent by the game Engine, which is catchable for all metamod plugins (also for this bot).

More info read here:
http://forums.alliedmods.net/showthread.php?t=51171

[EDIT]
And this is not a bug in podbot mm, but You didn't need to know that. I'm moving the question to Common Questions forum.
[/EDIT]

useronator 25-04-2008 17:27

Re: Team killing
 
Is it possible to just spawn bot in same place, without model / money count changing and without freeze time ?

and can you maybe in future, port a module to amxx to have more control over bots in amxx plugins ?

KWo 25-04-2008 20:24

Re: Team killing
 
I remember AMX 2006.x was doing that, so - yes - it is possible. But You need to ask this man at AMX X forum. He was interrested with solving the problem, so I believe he already has got somewhere the fixed version of the plugin You are talking about.


All times are GMT +2. The time now is 22:49.

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