Raised This Month: $ Target: $400
 0% 

forward_return and FMRES_OVERRIDE


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-23-2007 , 00:45   Re: forward_return and FMRES_OVERRIDE
Reply With Quote #3

Quote:
Originally Posted by stupok69 View Post
You are printing the message to 0, everyone, so that is why it says you got hit even though you did not get hit.
That's not even one of the problems. The message is only printed if it hits an immune player, and I'm the only immune player, so the message only appears if I get hit.

Quote:
Originally Posted by stupok69 View Post
But why isn't the bot getting damaged? I'm shooting in the dark, but I'm guessing the forward would be called as many times as there are players in the radius, so just ignore the one time its called for you.
This is how the grenade's radius damage works:
Code:
while ((pEntity = UTIL_FindEntityInSphere( pEntity, vecSrc, flRadius )) != NULL)
I assume by "ignore" you mean to supercede it (stop it from running). In that case, it will return NULL, and the while loop will stop, thus it will stop looking for other entities. This is basically what is happening now, even though it shouldn't be.

Quote:
Originally Posted by stupok69 View Post
Shouldn't you be able to extract the id of the player that is supposed to be hit without this line?
Code:
new hit = engfunc(EngFunc_FindEntityInSphere,start,origin,radius)
If you have another method, let me know. I can't get what it will return unless it's a post hook, in which case it's too late to stop. So, I just replicate this call, the return value will be exactly the same.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
 



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


All times are GMT -4. The time now is 22:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode