Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bots - hudprint/hudsay - sending commands to bots- creating crash #11

Open
Chrissstrahl opened this issue May 31, 2024 · 0 comments
Open

Comments

@Chrissstrahl
Copy link
Member

Chrissstrahl commented May 31, 2024

A workaround fix has been implemented, see 49b917f

Sending certain commands to bots will create a crash.
Level which raised awareness: ctf_faceoff - if a bot jumps off into a trigger that does a hudprint to activating client
The Hudprint that creates the issue:
e.hudPrint("^5Thanks to: ^7Avenger,Explorer,GSIO,Mystiqe,Stupidus,Modboy,Ronnin,Marvelman,Metar\n");
This translates to the following gamecode:

command = "hudprint \"^5Thanks to: ^7Avenger,Explorer,GSIO,Mystiqe,Stupidus,Modboy,Ronnin,Marvelman,Metar\n\"\n";
gi.SendServerCommand( edict - g_entities, command.c_str() );

Related Functions:
void Player::hudPrint( const str &string )
void MultiplayerManager::HUDSay( int entnum, const str &string )
Might also be related:
int BotAI(int client, float thinktime)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant