.:: 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 > POD-Bot mm > Releases, Installers, Docs & Coding
Releases, Installers, Docs & Coding Where the official development happens

Reply
 
Thread Tools
podbot grenade throwing bug
Old
  (#1)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default podbot grenade throwing bug - 28-04-2004

I've found this bug is still not fixed...

in the VecCheckToss() function:
Code:
    if (vecMidPoint.z < vecSpot2.z) // VERY BIG FAT BUG !
    {
 	  // to not enough space, fail
 	  return g_vecZero;
    }
 
    // How high should the grenade travel to reach the apex
    float distance1 = (vecMidPoint.z - vecSpot1.z);
    float distance2 = (vecMidPoint.z - vecSpot2.z);
 
    // How long will it take for the grenade to travel this distance
    float time1 = sqrt( distance1 / (0.5 * flGravity) );
    float time2 = sqrt( distance2 / (0.5 * flGravity) );
...Count Floyd only checks the vecSpot2.z here, which is wrong. We should check vecSpot1.z as well. Otherwise the following sqrt() will just eat a lot of negative values. I don't know what result this will cause (it doesn't crash in MSVC 6, but crashes in Borland Compiler and freezes in Visual Studio .NET beta during the following traceline).
  
Reply With Quote
Re: podbot grenade throwing bug
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: podbot grenade throwing bug - 28-04-2004

Good one Whistler
You'll tell me I should have checked the YaPB source... and you'd be right



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: podbot grenade throwing bug
Old
  (#3)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: podbot grenade throwing bug - 28-04-2004

it's not CF not checking that one, but valve, right ?

the negative root produces an NaN I think, so the following calculations will be invalid.

PS: just looked it up and it's already fixed there. so maybe I did it, or a later SDK version from valve had fixed the bug.


  
Reply With Quote
Re: podbot grenade throwing bug
Old
  (#4)
[NvT]_KaszpiR_
Member
 
[NvT]_KaszpiR_'s Avatar
 
Status: Offline
Posts: 322
Join Date: Apr 2004
Default Re: podbot grenade throwing bug - 24-05-2004

hmm sthill noticing in RC 2.1 bots are throwing nades stangely (not mch, and usually wih suicidal effect)
  
Reply With Quote
Re: podbot grenade throwing bug
Old
  (#5)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default Re: podbot grenade throwing bug - 28-05-2004

Quote:
Originally Posted by [NvT]_KaszpiR_
hmm sthill noticing in RC 2.1 bots are throwing nades stangely (not mch, and usually wih suicidal effect)
yes, and thats really funny indeed.
I saw two guys walking in a same line and stuck at a point. when they see an enemy, they pull out nades at the same time, turned around and threw towards the wall. and then nades came back to them...


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Re: podbot grenade throwing bug
Old
  (#6)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: podbot grenade throwing bug - 28-05-2004

yea we need better grenade throwing algorithms
  
Reply With Quote
Re: podbot grenade throwing bug
Old
  (#7)
Huntkillaz
Member
 
Huntkillaz's Avatar
 
Status: Offline
Posts: 594
Join Date: Mar 2004
Location: Middle Earth (New Zealand)
Default Re: podbot grenade throwing bug - 28-05-2004

here's my 2cents on g throwing based on playing the cs wc3 mod as orc:


1) if enemy is near u (easy to implement)

if the enemy is near u ie in visible range up clos or a bit off here's what u do


a) up close ....when up close ..face to face u gotta watch them ..

if enemy seems to move left take it's current distance and add distnce wise what u think will be the time when the gren explodes it should land at enemy's feet...when it blows

same for the right....

if enemy is coming towards u throw it at ur feet and start moving away from it...any direction that where u was standing is best

if enemy is going away from u ....u'll have to calculate the distance backwards but the nade has to be thrown at an angle to achieve this since it'll move in an arc.

b) far..bascially just aim at them or thier predicted position have to use similar startegy as when enemy is going away from u...

2) don't know where the enemy is.....i was thinking if it was possible that we could probably use the danger pos...to help..basically the most dangerous areas with alot of player n enemy collsions can be used as target positions for nades .....and camp spots also using walls for rebounds

----edit---
and u can talk to two mask (bot n metamod coding forum he has some posts) on grenade detection for the victim about what he's done....if he'll want to tell


●_•

Last edited by Huntkillaz; 28-05-2004 at 03:36..
  
Reply With Quote
Re: podbot grenade throwing bug
Old
  (#8)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: podbot grenade throwing bug - 28-05-2004

yes thats basicly how everyone throws nades..
the problem is with calculating how high to aim to make it reach the guy and it seem that when that is calculated it is way off.. so off that they end up throwing a nade in the wrong direction...
  
Reply With Quote
Re: podbot grenade throwing bug
Old
  (#9)
Huntkillaz
Member
 
Huntkillaz's Avatar
 
Status: Offline
Posts: 594
Join Date: Mar 2004
Location: Middle Earth (New Zealand)
Default Re: podbot grenade throwing bug - 28-05-2004

Quote:
Originally Posted by sPlOrYgOn
yes thats basicly how everyone throws nades..
the problem is with calculating how high to aim to make it reach the guy and it seem that when that is calculated it is way off.. so off that they end up throwing a nade in the wrong direction...
then the bug is a timing issue....but if what i had just said that they use the pos of the enemy at a specific time frame then the nade would be not way off but close by...i think that there's something funny going on at the either thier calculating the pos


●_•
  
Reply With Quote
Re: podbot grenade throwing bug
Old
  (#10)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: podbot grenade throwing bug - 28-05-2004

Quote:
Originally Posted by Huntkillaz
then the bug is a timing issue....but if what i had just said that they use the pos of the enemy at a specific time frame then the nade would be not way off but close by...i think that there's something funny going on at the either thier calculating the pos
nope not a time issue..
it's an aiming issue..
more like a calculating aiming height issue or something like that..
  
Reply With Quote
Reply


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

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