![]() |
Re: podbot grenade throwing bug
hi!
in my opinion studying ballistics to solve the grenade throwing bug is a somewhat "academic" approach.. As this isn't about reinventing the wheel I' d rather propose a more practical attempt: Check out how the others are doing... Joebot does throw grenades quite frequent and well aimed and at some point in the code there's a hint like "substrakt 15 to avoid the grenade hitting the ceiling" or so. So why not get "inspiration" by someone who solved the problem? (And probably follows this thread leaning back in his comfortable chair with this biiig grin 8) in his face?) |
Re: podbot grenade throwing bug
Aspirin, stop grinning immediately, or I'll break in your house by night and convert all JoeBot XP to ANSI C and delete the original! :D
|
Re: podbot grenade throwing bug
so is the joebot author wanting to give us a hand???
|
Re: podbot grenade throwing bug
dunno if there's much to say about it, just look at the code. checvectoss and checkvecthrow are just from the SDK I think.
In CSBotCS look at CheckGrenadeThrowing(), ( lol, another function where I should add some comments when I have time ) in CBotBase, take a look at the CBotBase :: HandleGOrder() function ( I know Pierre, i'm cheating :) but still grinning anyway :P ) |
Re: podbot grenade throwing bug
thanks!
I'll look at it right now :D |
Re: podbot grenade throwing bug
i guess more advanced will be where grenade will land after boucing off the wall etc
|
Re: podbot grenade throwing bug
yes, that would be cool, but the more bounces you calculate, the more possibilities you have to calculate. you won't be able to calc all those possibilities in realtime any more from a certain point on. Of course one could think about optimizations, but checkvectoss works fine most of the time, so this complicated stuff wouldnt be notices by any bot user I guess
|
Re: podbot grenade throwing bug
from bot_combat.cpp VecCheckToss() function:
Code:
// get a rough idea of how high it can be thrown Perhaps you need to change this part of code back to the original HLSDK one (looks like CF has modified the two VecCheckxxxx() functions) |
Re: podbot grenade throwing bug
yea, this code looks somewhat mistaken to me.
I would think of Code:
// get a rough idea of how high it can be thrown TRACE_HULL because a TraceLine would pass through the sky meshes whereas the grenade would bounce on it And checking for flFraction is a bug since IF the grenade can actually reach 500 ft high (which is not that high in fact), then vecMidPoint would be left lined up with vecSpot1 and vecSpot2, which is NOT something we want, definitely. |
Re: podbot grenade throwing bug
I think I've found a good way for nade throwing :D
NOTE: PHP tags because code tags are currently broken.. Code:
// get a rough idea of how high it can be thrown |
All times are GMT +2. The time now is 06:33. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.