.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > RACC
RACC Autonomous fragmachines by PMB Counter-StrikeDMCHLDMThe Specialists

Reply
 
Thread Tools
Re: BotAim 2 announced. Best aiming ever.
Old
  (#71)
[NvT]_KaszpiR_
Member
 
[NvT]_KaszpiR_'s Avatar
 
Status: Offline
Posts: 322
Join Date: Apr 2004
Default Re: BotAim 2 announced. Best aiming ever. - 06-01-2006

KWo, concering to the verision i run on my serv:
sniper scout works nice
they fail with awp, mayb add extra code to stop bots from funning when holding th eawp and wanting to shoot.
  
Reply With Quote
Re: BotAim 2 announced. Best aiming ever.
Old
  (#72)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: BotAim 2 announced. Best aiming ever. - 08-01-2006

They may fail with awp, because recoil code needs to be re-written. sPlOrYgOn is working on it (when he has time), but it has nothing to botaim2.
  
Reply With Quote
Re: BotAim 2 announced. Best aiming ever.
Old
  (#73)
dr.death
Member
 
dr.death's Avatar
 
Status: Offline
Posts: 16
Join Date: Sep 2008
Default Re: BotAim 2 announced. Best aiming ever. - 29-03-2012

Quote:
Originally Posted by KWo View Post
They may fail with awp, because recoil code needs to be re-written. sPlOrYgOn is working on it (when he has time), but it has nothing to botaim2.
Just make the bot stop in place before shooting, recoil will be fixed xD
  
Reply With Quote
Re: BotAim 2 announced. Best aiming ever.
Old
  (#74)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: BotAim 2 announced. Best aiming ever. - 01-05-2013

this is how I do mine in rcbot2. it's similar but no damping, just has a momentum and a 'mouse sensitivity'

Code:
void CBot :: changeAngles ( float fSpeed, float *fIdeal, float *fCurrent, float *fUpdate )
{
	float current = *fCurrent;
	float ideal = *fIdeal;
	float diff;
	float delta;
	float alpha;
	float alphaspeed;

	extern ConVar bot_anglespeed;

        // fSpeed = 1 to 20 (mouse sensitivity)
	alphaspeed = (fSpeed/20);
	alpha = alphaspeed * bot_anglespeed.GetFloat();

	diff = ideal - current;

	if ( diff < -180.0f )
		diff += 360.0f;
	else if ( diff > 180.0f )
		diff -= 360.0f;

	delta = (diff*alpha) + (m_fAimMoment*alphaspeed);

	//check for QNAN
	if ( delta != delta )
		delta = 1.0f;

	m_fAimMoment = (m_fAimMoment * alphaspeed) + (delta * (1.0f-alphaspeed));

	//check for QNAN
	if ( m_fAimMoment != m_fAimMoment )
		m_fAimMoment = 1.0f;

	current = current + delta;

	if ( current > 180.0f )
		current -= 360.0f;
	else if ( current < -180.0f )
		current += 360.0f;

	*fCurrent = current;

	if ( *fCurrent > 180.0f )
		*fCurrent -= 360.0f;
	else if ( *fCurrent < -180.0f )
		*fCurrent += 360.0f;
}
the problem with most of these algorithms are they are all linear as far as I've seen, would be nice to see a bi-linear algorithm
  
Reply With Quote
Re: BotAim 2 announced. Best aiming ever.
Old
  (#75)
genmac
gunsmith
 
genmac's Avatar
 
Status: Offline
Posts: 120
Join Date: Sep 2005
Location: North of Venus
Default Re: BotAim 2 announced. Best aiming ever. - 04-05-2013

man I wish I know how to code but I really suck on that last time I tried ions ago hehe. glad this forum is still has life in it though not as much compared a decade ago.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 4 (0 members and 4 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com