Sign in to follow this  
Viking

Bot Ads Bug

Recommended Posts

Hey guys,

i noticed that the movement speed of the bot does not change when they go into ads.

 

To confirm the bug i did two (simple) tests:

1. i added a little script that prints the velocity

result: ads and normal movement velocity is the same

 

2. i modified an existing weapon file and change the adsMovementSpeed value to 0.1

result: real players slow down, bots don't

 

For both tests i used the playerAds() function and went to spectators to confirm that the bots are really in ads.

Edit: Not 100 percent sure, but i think they don't change the anim too.

Best Regards

Edited by Viking

Share this post


Link to post
Share on other sites

Also they do not want to sprint.

 

Either i am doing something wrong or they just do not like to change their movement.

Couch, prone and jump works btw.

Share this post


Link to post
Share on other sites

edit:

Here is a simple code i use to check the actions...

Would be great if we could get that fixed.

 

init()
{
	while(level.players.size < 2)
		wait 1;

	entity = level.players[0];
	while(1)
	{
		wait .1;

		action = undefined;

		if( entity sprintButtonPressed() )
			action = "sprint";

		if( entity jumpButtonPressed() )
			action = "gostand";

		if( entity isCrouching() )
			action = "gocrouch";

		if( entity isProning() )
			action = "goprone";

		if( entity isinads() )
			action = "ads";

		if( entity meleeButtonPressed() )
			action = "melee";

		for(i=1;i<level.players.size;i++)
		{
			level.players[i] botMoveTo(entity.origin);
			level.players[i] botLookAt(entity.origin + (0,0,50));
		}
                                 
		if(isDefined(action))
		{
			iPrintlnbold(action);
		
			for(i=1;i<level.players.size;i++)
				level.players[i] botAction("+" + action);

			wait 3;

			for(i=1;i<level.players.size;i++)
				level.players[i] botAction("-" + action);
		}
	}
}

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this